Spaces:
Runtime error
Runtime error
Update nginx.conf
Browse files- nginx.conf +6 -35
nginx.conf
CHANGED
|
@@ -1,38 +1,9 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
events {
|
| 7 |
-
worker_connections 1024;
|
| 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 |
-
|
| 18 |
-
access_log /var/log/nginx/access.log main;
|
| 19 |
-
|
| 20 |
-
sendfile on;
|
| 21 |
-
#tcp_nopush on;
|
| 22 |
-
|
| 23 |
-
keepalive_timeout 65;
|
| 24 |
-
|
| 25 |
-
#gzip on;
|
| 26 |
-
|
| 27 |
-
include /etc/nginx/conf.d/*.conf;
|
| 28 |
-
|
| 29 |
-
server {
|
| 30 |
-
listen 8080;
|
| 31 |
-
server_name localhost;
|
| 32 |
-
|
| 33 |
-
location / {
|
| 34 |
-
root /usr/share/nginx/html;
|
| 35 |
-
index index.html index.htm;
|
| 36 |
-
}
|
| 37 |
}
|
| 38 |
}
|
|
|
|
| 1 |
+
server {
|
| 2 |
+
listen 8080;
|
| 3 |
+
server_name localhost;
|
| 4 |
|
| 5 |
+
location / {
|
| 6 |
+
root /usr/share/nginx/html;
|
| 7 |
+
index index.html index.htm;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|
| 9 |
}
|