Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [diff] [blame] | 1 | server { |
2 | listen 4000; | ||||
3 | server_name localhost; | ||||
4 | |||||
5 | #charset koi8-r; | ||||
6 | access_log /var/log/nginx/log/xos-spa-gui.access.log main; | ||||
7 | error_log /var/log/nginx/log/xos-spa-gui.error.log debug; | ||||
8 | |||||
9 | location / { | ||||
10 | root /var/www/dist; | ||||
11 | index index.html index.htm; | ||||
12 | } | ||||
13 | |||||
14 | # Redirect for FE config | ||||
15 | |||||
16 | location /spa/ { | ||||
17 | rewrite ^/spa/(.*)$ /$1; | ||||
18 | } | ||||
19 | } |