Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: how to setup 2 domains

$
0
0
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;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>