By f15cspec
So I have a problem that has had me beating my head in for several hours and I can’t seem to make nay headway. Short question. My main wordpress site works, but none of my wordpress network sites seem to work.
From what I can gather the common problem seems to be AllowOverride in the 000-default.conf not being set to AllowOverride ALL , but it is set to ALL ex:
code
<VirtualHost *:80>
ServerAdmin admin@mysite.com
DocumentRoot /var/www/html
<Directory /var/www/html/>
Options Indexes FollowSymLinks Multiviews
AllowOverride ALL
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Also some other places mentioned that it could be a2enmod is not set to rewrite. Well when I run the command
sudo a2enmod rewrite
I get: Module rewrite already enabled
At this point I am kind of scratching my head. I have destroyed the droplet several times and rebuilt it, but I keep having this trouble. I have to be missing something, but for the life of me I can’t figure it out. I am using the prebuilt wordpress 16.04 droplet. Here is a copy of the Multisite part of the wp-config.php file as well.
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'mydomain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
code
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Just a followup. I was able to resolve the problem. For anyone else having the same issue I had to add a * and point it to my ip address in the A section of the DNS. Once that was done all my multi sites started to work.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.