Return to Snippet

Revision: 47333
at June 5, 2011 19:13 by BruceJillis


Initial Code
apache httpd.conf:
<VirtualHost *:80>
   DocumentRoot "<absolute path to site web root>"
   ServerName <subdomain>.local

   SetEnv APPLICATION_ENV development

   <Directory "<absolute path to site web root>">
       Options Indexes MultiViews FollowSymLinks
       AllowOverride All
       Order allow,deny
       Allow from all
   </Directory>
</VirtualHost>

windows host file:
C:\WINNT\system32\drivers\etc\hosts
C:\Windows\system32\drivers\etc\hosts
>
> 127.0.0.1       <subdomain>.localhost

Initial URL
http://apptools.com/phptools/virtualhost.php

Initial Description


Initial Title
Subdomain (Virtual Host) On Localhost

Initial Tags


Initial Language
Apache