nginx configuration for SemanticScuttle???

M. Fioretti mfioretti at
Fri Aug 7 10:48:48 UTC 2015


I have several Web applications running on a Centos 6.6 server.
I am migrating them from Apache to Nginx. Apache is still
running, so I'm running nginx on port 81 for now.

The general setup is OK. I ALREAADY have Drupal 7 and Wordpress
sites served this way. The ONLY application that does not work
is SemanticScuttle (SC).

The closest I've got to make it "run" is with the configuration
below, turning clean urls off in the SC config file, and using
a rewrite rule created by winginx, when you give it the
.htaccess distributed with SC.

with that configuration, all these URLS work: (N=2, 3, etc)

but all the others, don't, meaning that e.g. redirect to (which must be
some SC fallback URL, I guess...)

What next? What is happening? I know it's something stupid,
but right now I could really use some kind pointer to whatever
it is that I am missing, or on how to debug more effectively.

here is the configuration of nginx for this virtual host:

server {
        listen 81;
        root         /var/www/ntml/scuttle/www/;
        index        index.php;

        location / {
        rewrite                  ^/([^/.]+)/?(.*)$ /$1.php?$2 break;
        include                  fastcgi_params;
        fastcgi_pass             unix:/tmp/phpfpm.sock;
        fastcgi_param            SCRIPT_FILENAME 
        fastcgi_intercept_errors on;
        fastcgi_split_path_info  ^(.+\.php)(.*)$;
        fastcgi_hide_header      X-Powered-By;
        fastcgi_index            index.php;

More information about the nginx mailing list