-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
51 lines (40 loc) · 1.12 KB
/
nginx.conf
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
39
40
41
42
43
44
45
46
47
48
49
50
51
worker_processes 1;
user root root;
pid /tmp/nginx.pid;
error_log /tmp/nginx.error.log;
events {
worker_connections 1024; # increase if you have lots of clients
accept_mutex off; # set to 'on' if nginx worker_processes > 1
}
http {
include mime.types;
default_type application/octet-stream;
access_log /tmp/nginx.access.log combined;
sendfile off;
add_header Cache-Control private;
server {
charset utf-8;
client_max_body_size 128M;
listen 80; ## listen for ipv4
server_name streams-store.local;
root /project/public;
index index.php;
access_log /tmp/web_access.log;
error_log /tmp/web_error.log;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
}
error_page 404 /404.html;
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass web:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri =404;
}
location ~* /\. {
deny all;
}
}
}