server { listen 80; listen [::]:80; server_name @server_name@ www.@server_name@; root @public_dir@/www; try_files $uri /not_found; location / { index index.html; } location /json/pc { proxy_pass http://127.0.0.1:1665/json/pc; } location /json/hr { proxy_pass http://127.0.0.1:1665/json/hr; } location /json/batch { proxy_pass http://127.0.0.1:1665/json/batch; } location /update { proxy_pass http://127.0.0.1:1665/update; } location /not_found { return 404; } }