hi,
try-out with

"NameVirtualHost *:80" or "NameVirtualHost *"



Best Regards

Ashutosh

SynaptiCAD Inc.

----- Original Message ----- 
From: "Yashesh Bhatia" <[EMAIL PROTECTED]>
To: <users@httpd.apache.org>
Sent: Thursday, August 31, 2006 4:35 PM
Subject: [EMAIL PROTECTED] Virtual hosts question - permission denied error
httpd version 2.2.3


> hello:
>
>    i'm experimenting name based virtual hosts and i have the following
> apache setup
>
> /opt/apache2/htdocs/index.html
> /opt/apache2/htdocs2/index2.html
>
>
> Now i have the following entry in my
/opt/apache2/conf/extra/httpd-vhosts.conf
>
> ======================================================================
> NameVirtualHost 192.168.1.3:80
> <VirtualHost 192.168.1.3:80>
>     DocumentRoot "/opt/apache2/htdocs"
> </VirtualHost>
>
> <VirtualHost localhost:80>
>     DocumentRoot "/opt/apache2/htdocs2"
> </VirtualHost>
> ======================================================================
>
> the syntax check passes
> [EMAIL PROTECTED] apache2]# apachectl -t
> Syntax OK
>
> After restarting when i check the url
> http://192.168.1.3/
> it gives content of htdocs/index.html
>
> however when i do http://127.0.0.1/
> it gives me an error
> Forbidden You don't have permission to access / on this server.
>
> The file permissions look ok to me.. out of ls -al /opt/apache2/ is below
>
> [EMAIL PROTECTED] apache2]# ls -al
> total 128
> drwxr-xr-x 17 root root 4096 Aug 31 15:44 .
> drwxr-xr-x  6 root root 4096 Aug 31 16:21 htdocs
> drwxr-xr-x  2 root root 4096 Aug 31 16:12 htdocs2
> drwxr-xr-x  2 root root 4096 Aug 31 16:12 htdocs3
>
> and [EMAIL PROTECTED] apache2]# ls -l htdocs/index.html htdocs2/index.html
> htdocs3/index.html
> -rw-r--r-- 1 root root 23 Aug 31 15:47 htdocs2/index.html
> -rw-r--r-- 1 root root 23 Aug 31 15:47 htdocs3/index.html
> -rw-r--r-- 1 root root 44 Nov 21  2004 htdocs/index.html
>
> on checking the error log i see the message
> [Thu Aug 31 16:29:46 2006] [error] [client 127.0.0.1] client denied by
> server configuration: /opt/apache2/htdocs2/
>
>
> Any reason why the documentroot of /opt/apache2/htdocs2 does not work
fine.
>
> Thanks..
>
> Yashesh
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to