4 messages in ru.sysoev.nginxMapping sites to other sites without ...
FromSent OnAttachments
Brian KirkbrideFeb 27, 2008 11:18 am 
Igor SysoevFeb 27, 2008 11:43 am 
Brian KirkbrideFeb 27, 2008 12:30 pm 
Igor SysoevFeb 27, 2008 12:39 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Mapping sites to other sites without using FastCGI/DBActions...
From:Brian Kirkbride (bria@public.gmane.org)
Date:Feb 27, 2008 11:18:01 am
List:ru.sysoev.nginx

Hello,

I'm new to Nginx but have been very impressed with it -- thanks for contributing this great software.

I have a mass virtual hosting setup, all sites have the same config and will be served with server_name * (wildcard). The config is very simple, just serving some static files. I want to keep the Nginx boxes as simple and light as possible -- no FastCGI, no database.

Some domains will simply be an alias to another domain. I know that for one or two domains, you could simply do a rewrite from ALIASDOMAIN.com/(.*) to REALDOMAIN/$1, but our situation is more dynamic and we can't update the config file all the time.

Is there as way to have:

docroot/ realdomain.com/ [content] aliasdomain.com/ aliased_to

where aliased_to is a text file containing the real domain?

Or what about:

docroot/ realdomain.com/ [content] aliasdomain.com/ aliasto_realdomain.com

Something like that?

In apache mod_rewrite I would do this using maps, but my Nginx skills are weak!