Welcome! Log In Create A New Profile

Advanced

SOLVED: nginx configuration for SemanticScuttle???

mf1
August 08, 2015 09:16AM
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;
}
}
Subject Author Posted

nginx configuration for SemanticScuttle???

mf1 August 07, 2015 05:50AM

SOLVED: nginx configuration for SemanticScuttle???

mf1 August 08, 2015 09:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready