If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I do my development on a virtualized server that i can access over zeroconf. I would like to be able to type in project1.devbox.local and have it serve out of the project1/ directory in my home directory. I currenty modify my hosts file on my so that 'project1' points to the server and i have a vhost named-server that handles redirecting. I have to have one file per host on my dev box and I have to modify my hosts file.
I'm wondering if there is a one-shot vhost that I can make to point *.devbox.local to /home/me/*/ ?
If you are talking about having subdomains point to various directories in /home/me, you will have to create virtual host entries for each of these sites. You could redirect or rewrite to particular directories with mod_rewrite rules though.
That one-file solution may very well be the mod_rewrite rules in an .htaccess file. You can get a whole lot of mileage out of mod_rewrite. If this is important enough to you, I'd look into this. mod_rewrite is immensely useful anyway.