SOLVED: nginx configuration for SemanticScuttle???
mf1
nginx-forum at nginx.us
Sat Aug 8 13:16:53 UTC 2015
After an IRC session in which I assisted Semantic Scuttle developer
Christian Weiske to investigate this issue, he provided the following nginx
configuration. Christian says it works on debian 8, nginx 1.6.2. I can
confirm that also works on Centos 6.6, nginx 1.0.15, the only thing I had to
change was the path to the unix socket. Many thanks to Christian for his
patience, and for SC in general of course!
Bye,
Marco
(from http://p.cweiske.de/216 )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
server {
listen 80 default_server;
root /var/www/sc/www;
index index.php;
server_name _;
location ~ \.php(/.*)?$ {
# regex to split $uri to $fastcgi_script_name and
$fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;
# Bypass the fact that try_files resets $fastcgi_path_info
# see: http://trac.nginx.org/nginx/ticket/321
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
fastcgi_index index.php;
include fastcgi.conf;
#include snippets/fastcgi-php.conf;
# With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260845,260882#msg-260882
More information about the nginx
mailing list