nginx windows reverse proxy code example
Example 1: nginx stop on windows
nginx -s stop #fast shutdown
nginx -s quit #graceful shutdown
nginx -s reload #changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
nginx -s reopen #re-opening log files
Example 2: nginx reverse proxy multiple folders
location ~ ^/app1(.*)$ {
proxy_pass http://proxy.example.com$1;
}
-OR-
location /app1 {
proxy_pass http://proxy.example.com/app1;
}