-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdefault
More file actions
38 lines (31 loc) · 758 Bytes
/
Copy pathdefault
File metadata and controls
38 lines (31 loc) · 758 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
36
37
38
user www;
upstream http {
# hehe
server 127.0.0.1:8000 weight=3;
#server 127.0.0.1:8001 weight=3;
server 127.0.0.1:8002 weight=3;
}
http {
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm index.php;
server_name localhost;
location / {
try_files $uri $uri/ =404;
}
location /doc/ {
alias /usr/share/doc/;
strange string;
}
error_page 404 /404.html;
location = /50x.html {
root /usr/share/nginx/html;
}
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}