I have loaded WordPress MU inside of my DocumentRoot. This is working fine however, I now have two projects inside the DocumentRoot that both have a directory with the same name: ‘plugins’:
I believe that this is causing a conflict because of my current Apache setup.
When I load my WP MU up and sign in, everything appears to be normal but upon looking closely, I noticed that not a single plugin is loading due to Apache 404 error. Example:
404 Not found.
I am not sure how to fix this so I have provided my Apache setup.
What I have already tried:
AliasMatch ^.*/plugins/(.*)$ /var/www/html/cms/plugins/$1” to
AliasMatch ^\.\./plugins/(.*)$ /var/www/html/cms/plugins/$1. The reason: references inside of my cms directory to their ‘plugins’ usually are prefixed with ‘..’, so they are formatted ../plugins/someplugin/etc/etc.ext This continues to load plugins correctly inside of the cms, and verifying my Regular expression at http://www.regextester.com/ leads me to believe this should work to solve the issue however, items such as https://www.someplaceonline.ext/blogs/wp-content/plugins/active-directory-integration/css/adintegration.css?ver=1.7.1 continue to fail to load.
AliasMatch ^.*/wp-content/plugins/(.*)$ /var/www/html/cms/sites/blogs/wp-content/plugins/$1“. I thought I could simply append a new AliasMatch to resolve the path mapping for WordPress but this also, does not work.
The relevant directory structure:
The relevant Apache configuration:
<VirtualHost *:80> DocumentRoot /var/www/html/cms/sites/ #Host names ServerName www.someplaceonline.ext ServerAlias someplaceonline.ext ServerAlias www.spo.ext ServerAlias spo.ext <Directory "/var/www/html/cms/sites/"> AllowOverride All Allow from All </Directory> ### This set of directives match the blogs on this server, which is outside of the document root. ### Alias /blogs /var/www/html/cms/sites/blogs <Directory "/var/www/html/cms/sites/blogs"> AllowOverride All Allow from All </Directory> ### This set of directives match the memorybook folder which is outside of the doucment root. ### Alias /memorybook /var/www/html/memorybook <Directory "/var/www/html/memorybook"> AllowOverride All Allow from All </Directory> ### This set of directive match the plugins folder which is outside of the document root. ### #Alias /plugins /var/www/html/cms/plugins #<Directory "/var/www/html/cms/plugins"> # AllowOverride All # Allow from All #</Directory> ### This set of directive match the site_resources folder which is outside of the document root. ### Alias /site_resources /var/www/html/cms/site_resources <Directory "/var/www/html/cms/site_resources"> AllowOverride All Allow from All </Directory> ### This must be last or else unwanted matches will occur. ### AliasMatch ^.*/site_resources(.*)$ /var/www/html/cms/site_resources/$1 AliasMatch ^.*/plugins/(.*)$ /var/www/html/cms/plugins/$1 #AliasMatch ^.*/wp-content/plugins/(.*)$ /var/www/html/cms/sites/blogs/wp-content/plugins/$1 </VirtualHost>
- The topic ‘Plugins not loading’ is closed to new replies.