Nginx as Reverse Proxy (and web server) for the webdev :)
In my case, I'm going to use nginx as the light red box handling all the request to the backend deployed somewhere.
- brew install nginx
- Use the config files provided and place them into /usr/local/etc/nginx/
- Change the line 76 and 83 with your environment settings
- sudo nginx for a quick test
- Download nginx stable
- Use the config files provided and place them inside the uncompressed version of nginx
- Change the line 76 and 83 with your environment settings
- Create the follwing directories inside the uncompressed version of nginx:
- spool
- run
- logs
- Add the nginx directory to c:/
- Open cmd /D
- Go to nginx root (c:\nginx)
- Run nginx.exe
-
Do not add nginx into the PATH env variable. Always execute it from the nginx root directory.
cd c:\nginx nginx.exe
-
If you use Console2, you don't need to put /D to use nginx.