-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
35 lines (29 loc) · 731 Bytes
/
Copy pathnginx.conf
File metadata and controls
35 lines (29 loc) · 731 Bytes
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
server {
# server_name localhost;
listen 80;
# listen 443 ssl;
# ssl_certificate /etc/nginx/localhost.crt;
# ssl_certificate_key /etc/nginx/localhost.key;
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# ssl_ciphers HIGH:!aNULL:!MD5;
root /var/www/html;
location ~ /\.ht* {
deny all;
}
location / {
index index.php;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_param HTTP_PROXY "";
fastcgi_pass php-fpm:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# Needed for dev box under VirtualBox
sendfile off;
}