VirtualHosts for WordPress Multisite Network – Subdir Alias isn’t working
-
Hey there,
I’m currently in a bit of a mess.
I set up a WordPress Multisite Network on an Apache 2.4 Webserver and I am trying to manage domain mapping via VirtualHost.
So far so good, I can reach the homepage of one of my sites (localhost/wordpress/example is now https://www.example.com) just fine but as soon as I try to get to a subsite on my site (localhost/wordpress/example/subsite -> https://www.example.com/subsite) I get “403 – Forbidden – you don’t have permission to access /subsite on this server”I will show you what I’ve done so far:
1. I changed the URL in the wp-admin from wordpress/localhost/example to https://example.com
2. In httpd-vhosts.conf I have:<VirtualHost *:80>
DocumentRoot “${SRVROOT}/htdocs/wordpress”
ServerName example.comAlias /subsite “example.com/subsite”
ErrorLog “logs/example-error.log”
CustomLog “logs/example-access.log” combined<Directory “${SRVROOT}/htdocs/wordpress”>
#Options Indexes FollowSymLinks
#Order allow,deny
#Allow from all
Require all granted
#AllowOverride All
</Directory></VirtualHost>
I pretty much tried every possible combination of the Options in the Directory Tags, nothing worked yet. In the error log I get “Client denied by server configuration: C:/Apache24/example.com, referer: https://example.com/”
Am I missing something vital?
Please help!
- The topic ‘VirtualHosts for WordPress Multisite Network – Subdir Alias isn’t working’ is closed to new replies.