Fast subdomains in VirtualHost - how?
I have Apache2 but i don't have server DNS, so i connected my domain to IP adress.
In /etc/apache2/sites-available/default i have:
I would like so automatically:
www.subdomain2.domain.com -> /var/www/subdomain2
www.subdomain3.domain.com -> /var/www/subdomain3
www.subdomain4.domain.com -> /var/www/subdomain4
www.subdomain9999.domain.com -> /var/www/subdomain9999
Probably mod_rewrite will do the job and or you could have index pages that redirect with a refresh. But to really accomplish what you're trying to do if you're going to use name based hosting to redirect, you need some type of DNS setup or you'll have to put the names and IP's in your local hosts file, etc.
|All times are GMT -5. The time now is 06:06 PM.|