1

Apache mass subdomain hosting

view story
linux-howto

http://serverfault.com – I want to offer custom subdomains for my customers. I can add virtual host configuration for each subdomain but it gets a overwhelming job as the number of users increase. What I currently use is like this: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/mysite/user1 ServerName user1.mysite.com </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/mysite/user2 ServerName user2.mysite.com </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/mysite ServerName example.com ServerAlias www.mysite.com </VirtualHost> Is there a (HowTos)