Wednesday, July 02, 2008

Add A Virtual Host in Apache in Vista

1. Open C:/Program Files/Apache Group/Apache/conf/httpd.conf2. Add the following lines:


DocumentRoot "C:/Path/To/Directory"
ServerName MyServer
DirectoryIndex index.php

Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
AddType text/html .php
AddHandler application/x-httpd-php .php



3. Open the file C:\Windows\System32\drivers\etc\hosts (this is a text file with no extension).
4. Add the following lines at the bottom:

127.0.0.1 MyServer
5. Restart Apache.

0 Comments:

Post a Comment

<< Home