server listen 80 default_server listen 80 default_server ipv6only on r

 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
27
28
29
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /home/user/work/unomy/web;
index index.php index.html index.htm;
server_name ubuntu ubuntu.local.com;
location / {
try_files $uri /app.php$is_args$args;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /home/user/work/unomy/web;
}
location ~ \.php$ {
try_files $uri /app.php$is_args$args;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index app.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
}