|
@@ -2,8 +2,8 @@
|
|
|
worker_processes 1;
|
|
|
|
|
|
#error_log error.log;
|
|
|
-#error_log logs/error.log notice;
|
|
|
-#error_log logs/error.log info;
|
|
|
+error_log /var/log/nginx/error.log notice;
|
|
|
+error_log /var/log/nginx/error.log info;
|
|
|
|
|
|
pid nginx.pid;
|
|
|
|
|
@@ -15,11 +15,11 @@ http {
|
|
|
include mime.types;
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
- #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
- # '$status $body_bytes_sent "$http_referer" '
|
|
|
- # '"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
+ '$status $body_bytes_sent "$http_referer" '
|
|
|
+ '"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
- #access_log logs/access.log main;
|
|
|
+ access_log /var/log/nginx/access.log main;
|
|
|
|
|
|
sendfile on;
|
|
|
#tcp_nopush on;
|
|
@@ -44,9 +44,9 @@ http {
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
}
|
|
|
|
|
|
- location /admin {
|
|
|
- try_files $uri $uri/ /index.html;
|
|
|
- }
|
|
|
+ # location /admin {
|
|
|
+ # try_files $uri $uri/ /index.html;
|
|
|
+ # }
|
|
|
|
|
|
# location ~* /(api|upload) {
|
|
|
# client_max_body_size 20m;
|