worker_processes 1; error_log error.log; error_log error.log notice; error_log error.log info; events { worker_connections 1024; } http { # include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; server { listen 8080; server_name localhost; root build/public; location = / { autoindex off; } location = /account { proxy_pass http://127.0.0.1:3000/; } location ~ ^/account(/.*)$ { proxy_pass http://127.0.0.1:3000$1; } location = /salix { proxy_pass http://127.0.0.1:3001/; } location ~ ^/salix(/.*) { proxy_pass http://127.0.0.1:3001$1$is_args$args; } location = /customer { proxy_pass http://172.0.0.1:3002/; } location ~ ^/customer(/.*)$ { proxy_pass http://127.0.0.1:3002$1; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } }