Nginx and subdomains (and dyndns)
Fernando Perez
lists at ruby-forum.com
Wed Mar 12 02:39:59 MSK 2008
Hi list,
Has anyone setup a server running Nginx and subdomains?
Currently my test server on a dynami IP has a domain at DynDns it is
something like: mysite.ath.cx
What I am trying to do is have subdomains/virtualhosts with Nginx only
listening on port 80 and redirecting where it needs to go.
For instance, Phpmyadmin should appear when typing:
http://phpmyadmin.mysite.ath.cx.
And Punbb:
http://punbb.mysite.ath.cx
And obviously my main website is located at:
http://mysite.ath.cx
The problem is that currently, whathever I type like:
http://whatever.mysite.ath.cx
it is always the main website that appears.
If I type http://phpmyadmin.mysite.ath.cx, it is still the main website
that appears.
For the main site, I have currently:
server_name mysite.ath.cx
And for Phpmyadmin:
server_name phpmyadmin.localhost
(phpmyadmin.mysite.ath.cx didn't work)
And for PunBB:
server_name punbb.localhost
but this doesn't do the trick.
So how to define the virtualhosts? Are there any other file to check?
Best regards,
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list