Problem configuring virtual host.

Posted by Zeeshan Rang on Server Fault See other posts from Server Fault or by Zeeshan Rang
Published on 2009-09-21T20:25:15Z Indexed on 2010/03/22 0:01 UTC
Read the original article Hit count: 516

Filed under:
|

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

© Server Fault or respective owner

Related posts about apache

Related posts about Windows