I have configuration like this:
Alias /blog /usr/share/wordpress
Alias /blog/wp-content /var/lib/wordpress/wp-content
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
<Directory /var/lib/wordpress/wp-content>
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
In general I follow up this procedure help.ubuntu.com. Problem is in fact when I restart apache2
I get message
"The Alias directive in /etc/apache2/sites-enabled/wordpress at line 2 will probably never match because it overlaps an earlier Alias."
I had been added on test.php
file on /var/lib/wordpress/wp-content
. If I try mydomain.com/blog/wp-content/test.php
, I got error 404
. This means that in general I miss all plugins/themes static files.
What could be a fix for it?