Are you sure that your Virtual Hosts are properly configured in httpd.conf?
(I am giving a sample of non IP based hosting, obviously for both subdomains
DNS should point to the same IP)

1) NameVirtualHost *

2)

<VirtualHost *>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /var/www/html
    ServerName tomcat.cwlglobal.com
    ErrorLog logs/tomcat.cwlglobal.com-error_log
    CustomLog logs/tomcat.cwlglobal.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /var/www/html/gifu
    ServerName gifu.cwlglobal.com
    ErrorLog logs/gifu.cwlglobal.com-error_log
    CustomLog logs/gifu.cwlglobal.com-access_log common
</VirtualHost>

In above, I st block is the default.

If the DocumentRoot you are sure is properly configured, check for .htaccess
file configuration or other parameters to allow directory.

Probably your DocumentRoot is not proper.

Regards,
Sagar Srivastava
CWLGlobal, Bangalore
[EMAIL PROTECTED]


----- Original Message -----
From: "Logu" <[EMAIL PROTECTED]>
To: "Linux-India" <[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2002 6:35 PM
Subject: [LIH] listing directories in apache documentroot


> hi
> I created a virtual host in apache. Now if I give a directory in the
browser
> say http://xyz.domain.com/test/ , then it is not listing the files.
Instead
> I am getting a message Forbidden. You don't have permission to access / on
> this server.
>
> -logu
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
>




_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to