Split-server{ } subdomains.

David Murphy david at icewatermedia.com
Wed Sep 9 02:03:40 MSD 2009


Yes, because   nginx isn’t needing  the name to resolve to different locations.

Your DNS zones should send all  request to X ip address.
Then nginx will just read in the HOST header from the  http request and load the appropriate server entry from your configuration.

Does that make sense?

David Murphy

-----Original Message-----
From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of Nuno Magalhães
Sent: Tuesday, September 08, 2009 4:41 PM
To: nginx at sysoev.ru
Subject: Split-server{ } subdomains.

Hi,

Can i have:

server{
listen 80;
server_name domain.com www.domain.com;
root /dir1;
}
server{
listen 80;
server_name sub.domain.com;
root /dir2;
}

Without adding an A-record for sub.domain.com's DNS?

TIA,
Nuno

--
()  ascii-rubanda kampajno - kontraŭ html-a retpoŝto /\  ascii ribbon campaign - against html e-mail






More information about the nginx mailing list