6paster NGINX Server Configuration
----------------------------------

server {

        listen        80;
        server_name   <your.server.name>;

        root <www-document-root>/webroot;

        location / {
                index index.html index.htm index.php;
        }

        location /p {
                rewrite ^/p/([a-z0-9A-Z]+)/?$ /index.php?p=$1 break;
                try_files $uri =404;
		        fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass   <fastcgi_socket>; # example: 127.0.0.1:9000 or /tmp/php-socket
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  <www-document-root>/webroot$fastcgi_script_name;
                include        fastcgi_params;

        }

        location ~ \.php$ {
                fastcgi_pass   <fastcgi_socket>; # example: 127.0.0.1:9000 or /tmp/php-socket
                try_files $uri =404;
		        fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  <www-document-root>/webroot$fastcgi_script_name;
                include        fastcgi_params;
        }
}


- 6paster works on https only. Please add https support to your webserver.
