View previous topic :: View next topic |
Author |
Message |
golgo13 Apprentice


Joined: 24 Nov 2004 Posts: 158
|
Posted: Thu Aug 28, 2008 3:00 am Post subject: client denied by server configuration [solved] |
|
|
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 |
|
 |
pappy_mcfae Watchman


Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Aug 28, 2008 8:00 am Post subject: |
|
|
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 |
|
 |
golgo13 Apprentice


Joined: 24 Nov 2004 Posts: 158
|
Posted: Thu Aug 28, 2008 3:08 pm Post subject: |
|
|
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 |
|
 |
notHerbert Advocate


Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
|
Back to top |
|
 |
golgo13 Apprentice


Joined: 24 Nov 2004 Posts: 158
|
Posted: Fri Aug 29, 2008 5:13 am Post subject: |
|
|
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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23671
|
Posted: Sat Aug 30, 2008 3:36 am Post subject: Re: client denied by server configuration |
|
|
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 |
|
 |
golgo13 Apprentice


Joined: 24 Nov 2004 Posts: 158
|
Posted: Mon Sep 01, 2008 9:04 pm Post subject: |
|
|
Changing 192.168.1. to 192.168.1 didn't help. Any help would be appreciated. _________________ www.latestintech.com |
|
Back to top |
|
 |
bunder Bodhisattva

Joined: 10 Apr 2004 Posts: 5956
|
Posted: Tue Sep 02, 2008 1:56 am Post subject: |
|
|
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 |
|
 |
golgo13 Apprentice


Joined: 24 Nov 2004 Posts: 158
|
Posted: Tue Sep 02, 2008 2:06 am Post subject: |
|
|
That seems to have worked! Thank you everyone and especially bunder for helping me out _________________ www.latestintech.com |
|
Back to top |
|
 |
|