Page 1 of 1

Need help in configuring apache to serve multiple websites

PostPosted: 08. December 2008 08:21
by gaurav_ch
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

Re: Need help in configuring apache to serve multiple websites

PostPosted: 08. December 2008 08:32
by Sharley
Does this thread help?
http://community.apachefriends.org/f/viewtopic.php?f=16&t=32030

Just substitute your own names in the example.