First setup nginx in windows:

Download nginx from nginx website .  then go to your download folder unzip nginx  folder and place at c drive. follow below instructions :

  • go to nginx folder
  • open command prompt
  • type in command prompt  start nginx
  • for test go to browser and type localhost
  • if you got nginx welcome page then your nginx working properly.

For nginx config:

go to nginx folder and find conf folder. open nginx.conf in notepad++ or other ide and search location / on that file then config your route by below example:

location /example/

location /example1/

location /example2/