Sub-domains through different /etc/nginx/sites-enabled entries?
Unai Rodriguez
unai at leanservers.com
Fri Aug 3 09:26:23 UTC 2012
Johannes,
Is this what you are asking for?
# cat /etc/nginx/sites-enabled/site1
server {
listen 80;
server_name subdomain1.domain.com
# config...
}
# cat /etc/nginx/sites-enabled/site2
server {
listen 80;
server_name subdomain2.domain.com
# config...
}
...
# cat /etc/nginx/sites-enabled/siteN
server {
listen 80;
server_name subdomainN.domain.com
# config...
}
where:
/etc/nginx/sites-enabled/siteX
is a symlink to:
/etc/nginx/sites-available/siteX
Yes, this is possible :)
--
Unai Rodriguez
Cofounder
LeanWired LLP
www.leanservers.com
unai at leanservers.com
More information about the nginx
mailing list