Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
client denied by server configuration [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
golgo13
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 158

PostPosted: Thu Aug 28, 2008 3:00 am    Post subject: client denied by server configuration [solved] Reply with quote

I'm a newbie when it comes to Apache's httpd.conf config file. I recently upgraded Apache to 2.2.9 and now I'm unable to reach certain directories via the web.

When I try to reach the directory via a browser I get a 403 forbidden message.
Apache's error log has the entry " client denied by server configuration: /var/www/localhost/htdocs/remote"
My httpd.conf file has the entry:
Code:
<Directory /var/www/localhost/htdocs/remote>
    Options Indexes FollowSymLinks
    AllowOverride All
    order Deny,Allow
    Deny from all
    Allow from 192.168.1.
</Directory>


If I comment out "order Deny,Allow", "Deny from all" and "Allow from 192.168.1." I get access to the directory via the web and everything works fine.

I'm not sure what's wrong or what to look at. Any help would be appreciated.
_________________
www.latestintech.com


Last edited by golgo13 on Tue Sep 02, 2008 2:06 am; edited 1 time in total
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Thu Aug 28, 2008 8:00 am    Post subject: Reply with quote

If you are attempting to start apache2 manually, you need to do it properly. The proper command to bring up apache2 manually is
Code:
/etc/init.d/apache2 start

That should get you the "It Works" screen. The only thing I did to get my apache setup going was to add ServerName 192.168.0.130 to /etc/apache2/httpd.conf. Everything else was already set.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
golgo13
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 158

PostPosted: Thu Aug 28, 2008 3:08 pm    Post subject: Reply with quote

Thanks for the reply, unfortunately the problem isn't with starting or stopping Apache. The problem is that I'm not able to reach certain directories, from the web, that should be accessible.
_________________
www.latestintech.com
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Aug 28, 2008 4:29 pm    Post subject: Reply with quote

The directories you wish to access need to bo configured as vhosts or webdav folders in apache.
Check :arrow: http://gentoo-wiki.com/Index:HOWTO#Apache_Related
And :arrow: http://gentoo-wiki.com/HOWTO_WebDav
Back to top
View user's profile Send private message
golgo13
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 158

PostPosted: Fri Aug 29, 2008 5:13 am    Post subject: Reply with quote

I mean no offense, but this doesn't seem to make sense. Why would I need Webdav or a vhost configured?

This worked before the update to Apache 2.2.9. It works if I edit out the filtering of who is allowed to see the directory. My only problem, now, is that I'm not able to properly authenticate users.
_________________
www.latestintech.com
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23671

PostPosted: Sat Aug 30, 2008 3:36 am    Post subject: Re: client denied by server configuration Reply with quote

golgo13 wrote:
Code:
<Directory /var/www/localhost/htdocs/remote>
    Options Indexes FollowSymLinks
    AllowOverride All
    order Deny,Allow
    Deny from all
    Allow from 192.168.1.
</Directory>


The examples in the documentation do not include a trailing dot when using a partial IP address to represent a subnet. It is not clear from the documentation whether Apache will accept that construct or, if accepted, what it will mean. Try using Allow from 192.168.1 without the trailing dot.
Back to top
View user's profile Send private message
golgo13
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 158

PostPosted: Mon Sep 01, 2008 9:04 pm    Post subject: Reply with quote

Changing 192.168.1. to 192.168.1 didn't help. Any help would be appreciated.
_________________
www.latestintech.com
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5956

PostPosted: Tue Sep 02, 2008 1:56 am    Post subject: Reply with quote

try 192.168.1.0/24

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
golgo13
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 158

PostPosted: Tue Sep 02, 2008 2:06 am    Post subject: Reply with quote

That seems to have worked! Thank you everyone and especially bunder for helping me out
_________________
www.latestintech.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum