Tech

En till Good Old Blogs webbplats

Dynamic vhost configuration

I’ve recently tried out a new way define my virtual hosts on my development machine. I’ve always had a configuration file in my home dir (that gets included from httpd.conf) that looks something like this: NameVirtualHost *:80 ServerName drupal.local DocumentRoot /Users/hugowett/Sites/drupal/public_html AllowOverride All Order deny,allow Allow from all <VirtualHost *:80> ServerName somesite.local DocumentRoot /Users/hugowett/Sites/somesite/public_html <Directory…

Läs mer