| 1 | user nginx;
|
|---|
| 2 | worker_processes 32;
|
|---|
| 3 | worker_rlimit_nofile 65535;
|
|---|
| 4 |
|
|---|
| 5 | error_log /var/log/nginx/error.log warn;
|
|---|
| 6 | pid /var/run/nginx.pid;
|
|---|
| 7 |
|
|---|
| 8 | events {
|
|---|
| 9 | worker_connections 8096;
|
|---|
| 10 | use epoll;
|
|---|
| 11 | multi_accept on;
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | http {
|
|---|
| 16 | include /etc/nginx/mime.types;
|
|---|
| 17 | default_type application/octet-stream;
|
|---|
| 18 |
|
|---|
| 19 | log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|---|
| 20 | '$status $body_bytes_sent "$http_referer" '
|
|---|
| 21 | '"$http_user_agent" "$http_x_forwarded_for"';
|
|---|
| 22 |
|
|---|
| 23 | keepalive_requests 10000;
|
|---|
| 24 | sendfile on;
|
|---|
| 25 | tcp_nodelay on;
|
|---|
| 26 | tcp_nopush on;
|
|---|
| 27 |
|
|---|
| 28 | server {
|
|---|
| 29 | listen 80;
|
|---|
| 30 | root /var/www/default;
|
|---|
| 31 | index index.html;
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | server {
|
|---|
| 35 | listen 80;
|
|---|
| 36 | merge_slashes off;
|
|---|
| 37 | server_name local.test;
|
|---|
| 38 | root /var/www/named;
|
|---|
| 39 | index index.html;
|
|---|
| 40 | }
|
|---|
| 41 | }
|
|---|