| 1 | user nginx nginx;
|
|---|
| 2 | worker_processes 4;
|
|---|
| 3 |
|
|---|
| 4 | error_log /tmp/error_log info;
|
|---|
| 5 |
|
|---|
| 6 | events {
|
|---|
| 7 | worker_connections 1024;
|
|---|
| 8 | use epoll;
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | http {
|
|---|
| 12 | log_format main
|
|---|
| 13 | '$remote_addr - $remote_user [$time_local] '
|
|---|
| 14 | '"$request" $status $bytes_sent '
|
|---|
| 15 | '"$http_referer" "$http_user_agent" '
|
|---|
| 16 | '"$gzip_ratio"';
|
|---|
| 17 | server {
|
|---|
| 18 | listen 127.0.0.1 reuseport;
|
|---|
| 19 | server_name localhost;
|
|---|
| 20 |
|
|---|
| 21 | access_log /tmp/localhost.access_log main;
|
|---|
| 22 | error_log /tmp/localhost.error_log info;
|
|---|
| 23 |
|
|---|
| 24 | root /var/www/localhost/htdocs;
|
|---|
| 25 | }
|
|---|
| 26 | }
|
|---|