Converting MS install from Apache2 to Nginx
-
Trying to move a working Apache2 config to Nginx and failing miserably. The structure is:
/– root is something else, not wordpress
/wordpress/– the real folder with wordpress files, should not be accessed directly
/about/– a fake directory for one of the multi-sites
/blog/a fake directory for one of the multi-sitesThis is the Apache2 rule set that works:
RewriteRule ^/(wp-(content|admin|includes).*) /wordpress/$1 [L] # MultiSites RewriteRule ^/about/(wp-(content|admin|includes).*) /wordpress/$1 [L] RewriteRule ^/about/(.*\.php)$ /wordpress/$1 [L] RewriteRule ^/about/(.*) /wordpress/index.php [L] RewriteRule ^/blog/(wp-(content|admin|includes).*) /wordpress/$1 [L] RewriteRule ^/blog/(.*\.php)$ /wordpress/$1 [L] RewriteRule ^/blog/(.*) /wordpress/index.php [L] RewriteRule ^/blog/tag/(.*)/ /wordpress/index.php [L]I’ve tried a whole bunch of things and not gotten anywhere. Right now I’m trying just:
location /wordpress { index index.php; try_files $uri $uri/ /wordpress/index.php?$args; }just to get *something* from WordPress as a starting point, but all I get is a 403 Forbidden. The file permissions are all readable by the server and directories and PHP scripts are executable. So I don’t think it’s a file system permission problem, but beyond that I don’t know what else to try.
Any suggestions appreciated.
The topic ‘Converting MS install from Apache2 to Nginx’ is closed to new replies.