-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx-site
37 lines (27 loc) · 875 Bytes
/
nginx-site
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
30
31
32
33
34
35
36
37
server {
listen *:80 default_server;
root /var/www/httpdocs/;
index index.html index.htm index.php;
server_name localhost;
index index.html index.htm index.php;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log error;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?fliglio_request=$uri&$args;
}
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { access_log off; log_not_found off; }
location ~ [^/]\.php(/|$) {
include /etc/nginx/fastcgi.conf;
fastcgi_pass unix:/var/run/php5.6-fpm.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_param HTTPS off;
fastcgi_param FLIGLIO_ENV local;
}
# Deny .htaccess file access
location ~ /\.ht {
deny all;
}
}