forked from docker-archive/dockercloud-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
32 lines (26 loc) · 736 Bytes
/
nginx.conf
File metadata and controls
32 lines (26 loc) · 736 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
user root;
worker_processes 1;
events {
worker_connections 1024;
}
http {
access_log /dev/stdout;
include mime.types;
default_type application/octet-stream;
server {
listen #LISTEN_PORT#;
server_name localhost;
root /www;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
}