Can try_files be used instead of the if directive to unconditionally return 503 response code and maintenance.html if that file exists? It should also do that for any request to php files. Currently I'm using the following which does what I want: error_page 503 @maintenance; if (-f $document_root/maintenance.html) { return 503; } location @maintenance {by seron - How to...
I'm pretty new to nginx and have it set up locally on my computer. When I go to a certain page which is part of a plugin to Wordpress I consistently get an 'error 500 Internal Server Error'. I suspect it's a problem with my setup but am too ignorant to understand it. Are there any troubleshooting/debugging procedures for nginx that I could use? Below are logs and configuration. Something that cby seron - How to...
The location clause you suggested didn't cut out the index.php part, but a WordPress plugin called "nginx compatibility" did.by seron - Nginx Mailing List - English
I've discovered something interesting. Permalinks works as expected for posts but not for pages. I've been trying all along with pages. Are pretty permalinks not supposed to work with pages?by seron - Nginx Mailing List - English
That's interesting. It doesn't remove the index.php part. I've tried both first and last. Very odd.by seron - Nginx Mailing List - English
I made a fresh install of WordPress in a new directory and made a separate server section in nginx.conf for it. I tired what you suggested, but to no avail. There's a small change which is that I don't get a 404 error any more and the page is displayed. My guess is that it's a different problem present in my original WordPress installation which is not present in the new one. The problem witby seron - Nginx Mailing List - English
I've tried to follow the guide at http://www.howtoforge.com/running-wordpress-on-nginx-lemp-on-debian-squeeze-ubuntu-11.04 as suggested in the post http://forum.nginx.org/read.php?2,222511,222517#msg-222517 , but it still doesn't work. I've copied and replaced the server settings from the guide, and changed the parts pertaining to my server. Any permalink setting other than default results in aby seron - Nginx Mailing List - English