I tried to set 2 servers like the below but nginx doesn't start when I do :(
server {
listen 80;
server_name server1.com;
root C:/xampp/htdocs;
access_log off;
error_log off;
location / {
#root html;
index index.html index.htm;
}
server {
listen 80;
server_name server2.com;
root C:/xampp/htdocs/Test;
access_log off;
error_log off;
location / {
#root html;
index index.html index.htm;
}
Edited 1 time(s). Last edit at 09/24/2018 09:46PM by matrixebiz.