You are not logged in.

#1 2011-02-26 22:10:22

royallthefourth
Member
From: North Carolina
Registered: 2011-02-26
Posts: 18
Website

Apache Virtual Host 403

I've just installed Arch and I'm almost done configuring everything to my liking. It's really great smile
In the process of getting my web dev environment set up, I've encountered a little problem with my Apache configuration.

Do y'all see anything wrong with my vhost.conf? The vhost I made to replace the default host works fine, but I get 403 when I go to http://test

NameVirtualHost *:80

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot "/srv/http"
</VirtualHost>

<Directory /home/royall/NetBeansProjects>
    AllowOverride All
    Order Allow,Deny
    Allow from All
</Directory>

<VirtualHost *:80>
    DocumentRoot "/home/royall/NetBeansProjects/test"
    ServerName test
</VirtualHost>

Offline

#2 2011-02-26 23:39:54

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: Apache Virtual Host 403

403 is forbidden. I suspect you are trying to get a directory listing when you haven't allowed that. Try getting a specific file or add an Options line to the directory.

http://httpd.apache.org/docs/2.2/mod/core.html#options

Offline

#3 2011-02-27 00:52:40

royallthefourth
Member
From: North Carolina
Registered: 2011-02-26
Posts: 18
Website

Re: Apache Virtual Host 403

Woops! Turns out my projects directory had the right permissions, but the home directory did not.

Offline

#4 2011-02-27 03:13:53

hoffman
Member
Registered: 2011-02-13
Posts: 14

Re: Apache Virtual Host 403

Yeah!I have met this kind of problem!It turns out to be some kind of permissions error.

Offline

Board footer

Powered by FluxBB