More subdomain mapping (dynamic 'root'?)

miradev nginx-forum at nginx.us
Fri Jul 3 18:19:47 MSD 2009


Frank Louwers Wrote:
-------------------------------------------------------
> Can you give an example of two urls and the
> docroot you'd want them to  
> use?

These are test/dev sites where clients view sample themes, copy and plugins. What they want is to be able to do is see them in action without affecting their 'live' site.. So these are all hosted on a single 'dev' domain.

Admin domain: wpdev.mysite.com

Client: ExoGarage
Domain1: www.exogarage.com
Dmoain2: www.fixurcar.com

URL1: exogarage.wpdev.mysite.com/www.exogarage.com
Docroot: /var/www/wordpress/clients/exogarage/admin/www.exogarage.com/html

URL2: exogarage.wpdev.mysite.com/www.fixurcar.com
Docroot: /var/www/wordpress/clients/exogarage/admin/www.fixurcar.com/html

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3586,3725#msg-3725






More information about the nginx mailing list