Skip to content

Tag: mod_rewrite

Mass virtual hosting with apache through mod_rewrite

If you are a developer and you’re working with several subdomains for development purposes, you can create a single virtualhost, without the need to add subdomains and restart/reload the apache web server. Directory structure (example): /var/www /var/www/ /var/www/ /var/www/ /var/www/ One single virtualhost for any subdomain: <VirtualHost *> DocumentRoot /var/www ServerName ServerAlias * CustomLog…