Jun 03 2010

How To Setup Virtual Host on Local Web Server using Apache on Windows

there are 2 files that needed to be edited in order to create virtual host on local computer .
1.  apache side  :
./apache/conf/httpd.conf
enable for include httpd-vhosts.conf :
Include conf/extra/httpd-vhosts.conf

./apache/conf/extra/httpd-vhosts.conf    , to configure the virtual host
ex :
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot “E:/folder/to/web1/”
ServerName web1.local
</VirtualHost>

<VirtualHost 127.0.0.1>
DocumentRoot “E:/folder/to/web2/”
ServerName web2.local
</VirtualHost>

2. windows site, for the resolving [...]

WordPress Themes