nginx configuration for SemanticScuttle???

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


Greetings,

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:

http://bookmarks.example.com:81/
http://bookmarks.example.com:81/
http://bookmarks.example.com:81/index/?page=N (N=2, 3, etc)

http://bookmarks.example.com:81/populartags

but all the others, don't, meaning that e.g. 
http://bookmarks.example.com:81/tags.php/linux redirect to 
http://bookmarks.example.com:81/populartags (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.

TIA,
Marco
here is the configuration of nginx for this virtual host:

server {
        server_name  bookmarks.example.com;
        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 
$document_root$fastcgi_script_name;
        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