]>
Commit | Line | Data |
---|---|---|
73ad0f62 | 1 | user nginx nginx; |
73ad0f62 | 2 | error_log /var/log/nginx/nginx-light_error.log; |
3 | pid /var/run/nginx-light.pid; | |
4 | ||
5 | events { | |
6 | worker_connections 2048; | |
7 | use epoll; | |
8 | } | |
9 | ||
10 | http { | |
11 | include /etc/nginx/mime.types; | |
12 | default_type application/octet-stream; | |
13 | ||
14 | log_format main '$remote_addr - $remote_user [$time_local] $request ' | |
15 | '"$status" $body_bytes_sent "$http_referer" ' | |
16 | '"$http_user_agent" "$http_x_forwarded_for"'; | |
17 | access_log /var/log/nginx/nginx-light_access.log main; | |
73ad0f62 | 18 | |
19 | server { | |
20 | listen 80; | |
21 | server_name localhost; | |
22 | access_log /var/log/nginx/nginx-light_access.log main; | |
73ad0f62 | 23 | |
24 | location / { | |
25 | autoindex on; | |
26 | root /home/services/nginx/html; | |
27 | index index.html index.htm index.php; | |
73ad0f62 | 28 | } |
29 | ||
36b3be34 | 30 | include webapps.d/*.conf; |
73ad0f62 | 31 | } |
32 | ||
36b3be34 | 33 | include vhosts.d/*.conf; |
73ad0f62 | 34 | } |