|
|
@@ -1,21 +1,22 @@
|
|
|
server {
|
|
|
- listen 80;
|
|
|
+ listen 8079;
|
|
|
client_max_body_size 4G;
|
|
|
- server_name tstateadmin.d5c360.com;
|
|
|
+ server_name stateadmin.hiwavo.com;
|
|
|
#keepalive_timeout 5;
|
|
|
- access_log /opt/apps/statement/admin/log/ngx_access.log main;
|
|
|
- error_log /opt/apps/statement/admin/log/ngx_error.log;
|
|
|
-
|
|
|
+ access_log /home/rails/fohow/state_admin/log/ngx_access.log main;
|
|
|
+ error_log /home/rails/fohow/state_admin/log/ngx_error.log;
|
|
|
+
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
location = /500.html {
|
|
|
- root /opt/apps/statement/admin/public;
|
|
|
+ root /home/rails/fohow/state_admin/public;
|
|
|
}
|
|
|
error_page 404 /404.html;
|
|
|
location = /404.html {
|
|
|
- root /opt/apps/statement/admin/public;
|
|
|
+ root /home/rails/fohow/state_admin/public;
|
|
|
}
|
|
|
|
|
|
- root /opt/apps/statement/admin/public;
|
|
|
+
|
|
|
+ root /home/rails/fohow/state_admin/public;
|
|
|
|
|
|
location / {
|
|
|
#allow 113.106.106.3;
|
|
|
@@ -26,7 +27,7 @@ server {
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
- proxy_pass http://127.0.0.1:5959;
|
|
|
+ proxy_pass http://127.0.0.1:6874;
|
|
|
}
|
|
|
|
|
|
# static resource routing - both assets folder and favicon.ico
|