Wade Preston Shearer wrote:
I am trying to set up wildcard DNS and web roots for developer sandboxes, like this:

*2.*1.dev.example.com ➞ /home/*1/sites/*2/htdocs/
*2.*1.dev.example.com ➞ /home/*1/sites/*2/htdocs/
*2.*1.dev.example.com ➞ /home/*1/sites/*2/htdocs/


Where *2 is a project and *1 is a username, like this:

www.jdoe.dev.example.com ➞ /home/jdoe/sites/www/htdocs/
blogs.jdoe.dev.example.com ➞ /home/jdoe/sites/blogs/htdocs/
test2.jdoe.dev.example.com ➞ /home/jdoe/sites/test2/htdocs/

i would probably go at it at a different way using vhosts and aliases.

Why not just do something like dev.example/jdoe/www or dev.example.com/jdoe/blogs/? I personally would not do it at the dns level. It would be a nightmare to manage that and the apache config.

another option might be vhost like this:

jdoe.example.com/blogs/
jdoe.example.com/www/
jdoe.example.com/test2/

--
thebigdog

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to