Need help in configuring apache to serve multiple websites

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Need help in configuring apache to serve multiple websites

Postby gaurav_ch » 08. December 2008 08:21

Hi,

I need you help in configuring multiple websites in apache.

Following is the entry I am making in httpd-vhosts.conf file :

Code: Select all
NameVirtualHost *:80


<VirtualHost *:80>
   ServerAdmin webmaster@test.com
   DocumentRoot /htdocs/test
   ServerName test.com
</VirtualHost>


Apache starts perfectly. But when I type the address it shows a page as Access denied.

But when I make the path of DocumentRoot as /htdocs it shows the default page.

I want that I should be able to access the index page in /htdocs/test and not /htdocs

Can somebody help me?

Thanks

Gaurav
gaurav_ch
 
Posts: 4
Joined: 08. December 2008 08:13

Re: Need help in configuring apache to serve multiple websites

Postby Sharley » 08. December 2008 08:32

Does this thread help?
http://community.apachefriends.org/f/viewtopic.php?f=16&t=32030

Just substitute your own names in the example.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests