Problem configuring virtual host.
- by Zeeshan Rang
I am tring to configure apache virtual host for my computer.
But i am facing problem in doing so.
i have made required changes in my C:\WINDOWS\system32\drivers\etc\hosts
then C:\xampp\apache\conf\extra\httpd-vhosts.conf
I added the following lines in httpd-vhosts.conf
########################Virtual Hosts Config below##################
NameVirtualHost 127.0.0.1
<VirtualHost localhost>
ServerName localhost
DocumentRoot "C:\xampp\htdocs"
DirectoryIndex index.php index.html
<Directory "C:\xampp\htdocs">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost virtual.cloudse7en.com>
ServerName virtual.cloudse7en.com
DocumentRoot "C:\development\virtual.cloudse7en.com\httpdocs"
DirectoryIndex index.php index.html
<Directory "C:\development\virtual.cloudse7en.com\httpdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost virtual.app.cloudse7en.com>
ServerName virtual.app.cloudse7en.com
DocumentRoot "C:\development\virtual.app.cloudse7en.com\httpdocs"
DirectoryIndex index.php index.html
<Directory "C:\development\virtual.app.cloudse7en.com\httpdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
########################################################################
I started my xampp and tried http://localhost in a browser. This works and open up http://localhost/xampp/
but when i try http:http://virtual.app.cloudse7en.com it again opens up http://virtual.app.cloudse7en.com/xampp/
I do not understand the reason.
Also i have a windows vista 64 bit, operating system. Do i need to make some other changes too?
Regards
Zee