You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark Lucas <ma...@mlucas.net> on 2002/02/04 21:51:31 UTC

Virtual Server

I've been trying to set up virtual Apache servers on my system. The problem
is that I every time I try to access one of the virtual servers I get an
http error 403.

The configuration of the virtual hosts in the httpd.conf file is as follows:

:
:
#Default Host
<VirtualHost *>
    ServerAdmin mark@stjohns.net
    DocumentRoot /home/httpd/html
    ServerName calvin
    ErrorLog /var/log/httpd/error_log
    CustomLog /var/log/httpd/access_log common
</VirtualHost>
#
#   Mark's virtual host
#
<VirtualHost *>
    ServerAdmin mark@stjohns.net
    DocumentRoot /home/mark/html
    ServerName mark
    ErrorLog /var/log/httpd/mark_error_log
    CustomLog /var/log/httpd/mark_access_log common
    <Directory "/home/mark/html">
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>
#
# Hannah's virtual Host
#
<VirtualHost *>
    ServerAdmin hannah@stjohns.net
    DocumentRoot /home/hannah/html
    ServerName hannah
    ErrorLog /var/log/httpd/han_error_log
    CustomLog /var/log/httpd/han_access_log common
</VirtualHost>

The access log reads:

:
:
192.168.0.2 - - [04/Feb/2002:14:51:46 +0000] "GET / HTTP/1.1" 403 210
192.168.0.2 - - [04/Feb/2002:14:52:06 +0000] "GET / HTTP/1.1" 403 210
192.168.0.2 - - [04/Feb/2002:14:52:32 +0000] "GET / HTTP/1.1" 403 210

Access privileges on the html directories are all set to 777
What am I doing wrong?

        Mark Lucas


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Virtual Server

Posted by "Korey G." <ko...@awpg.com>.
Perhaps the httpd daemon needs access to directories higher up that it cant 
get to
  if your file is /home/mark/html perhaps mark is set to 700 and httpd is 
not allowed to come in
403 is generally forbidden, so it would have to have something to do with 
the permissions
or maybe 777 isnt suitable for web directories
  _hope it help,


At 20:51 2/4/02 +0000, you wrote:
>I've been trying to set up virtual Apache servers on my system. The problem
>is that I every time I try to access one of the virtual servers I get an
>http error 403.
>
>The configuration of the virtual hosts in the httpd.conf file is as follows:
>
>:
>:
>#Default Host
><VirtualHost *>
>     ServerAdmin mark@stjohns.net
>     DocumentRoot /home/httpd/html
>     ServerName calvin
>     ErrorLog /var/log/httpd/error_log
>     CustomLog /var/log/httpd/access_log common
></VirtualHost>
>#
>#   Mark's virtual host
>#
><VirtualHost *>
>     ServerAdmin mark@stjohns.net
>     DocumentRoot /home/mark/html
>     ServerName mark
>     ErrorLog /var/log/httpd/mark_error_log
>     CustomLog /var/log/httpd/mark_access_log common
>     <Directory "/home/mark/html">
>         AllowOverride All
>         Order allow,deny
>         allow from all
>     </Directory>
></VirtualHost>
>#
># Hannah's virtual Host
>#
><VirtualHost *>
>     ServerAdmin hannah@stjohns.net
>     DocumentRoot /home/hannah/html
>     ServerName hannah
>     ErrorLog /var/log/httpd/han_error_log
>     CustomLog /var/log/httpd/han_access_log common
></VirtualHost>
>
>The access log reads:
>
>:
>:
>192.168.0.2 - - [04/Feb/2002:14:51:46 +0000] "GET / HTTP/1.1" 403 210
>192.168.0.2 - - [04/Feb/2002:14:52:06 +0000] "GET / HTTP/1.1" 403 210
>192.168.0.2 - - [04/Feb/2002:14:52:32 +0000] "GET / HTTP/1.1" 403 210
>
>Access privileges on the html directories are all set to 777
>What am I doing wrong?
>
>         Mark Lucas
>
>
>---------------------------------------------------------------------
>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: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Virtual Server

Posted by Joshua Slive <jo...@slive.ca>.
> From: Mark Lucas [mailto:mark@mlucas.net]

> I've been trying to set up virtual Apache servers on my system. 
> The problem
> is that I every time I try to access one of the virtual servers I get an
> http error 403.
> 

Start here and ask again if you are still having problems:
http://httpd.apache.org/docs/misc/FAQ.html#forbidden

Joshua. 

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org