Forum: NGINX Rewrite rule for Wordpress

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Felipe Oliveira Carvalho (Guest)
on 2009-02-02 21:22
(Received via mailing list)
I use the same configuration on localhost and it works, but on the
server the "friendly URLs" doesn't work anyway.
Time passes and I understand less about the nginx configuration. I'm
looking for a document with good explanation about how it works.

This is my configuration:

server {
        root /var/www/osaber;   # <---- The root!

        location / {
                root /var/www/osaber;
                index index.php;

                # --> Wordpress configuration for site_osaber
                if (!-e $request_filename) {
                        rewrite  ^(.*)$  /index.php?q=$1  last;

        # pass the PHP scripts to FastCGI server listening on
        location ~ \.php {
                fastcgi_param  SCRIPT_FILENAME
                include fastcgi_params; # many things here

How can I debug nginx configuration setting process to find errors?
This topic is locked and can not be replied to.