httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakhmat Farunuddin <rakhm...@softhome.net>
Subject Re: [users@httpd] Access won't work at root URL
Date Wed, 25 Aug 2004 02:13:19 GMT
hi 

there is no <LocationMatch ^/$> in my httpd.conf file. 
this is the log, i tried to access using public proxy in south korea
access.log :
211.34.96.11 - - [24/Aug/2004:08:56:22 +0700] "GET / HTTP/1.0" 403 2898
"-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040803
Firefox/0.9.3"
211.34.96.11 - - [24/Aug/2004:08:56:26 +0700] "GET /icons/apache_pb.gif
HTTP/1.0" 200 2326 "http://mydomain.com/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
211.34.96.11 - - [24/Aug/2004:08:56:26 +0700] "GET /icons/powered_by.gif
HTTP/1.0" 200 581 "http://mydomain.com/" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"

error.log :
[Tue Aug 24 08:57:36 2004] [error] [client 211.34.96.11] client denied
by server configuration: /home/vhost/mydomain


thanks

Rakhmat Farunuddin



On Fri, 2004-08-20 at 17:43, Rich Bowen wrote:
> On Fri, 20 Aug 2004, Rakhmat Farunuddin wrote:
> 
> > hi all
> > 
> > i have this conf. in my httpd.conf
> > <VirtualHost x.x.x.x>
> >    ServerAdmin webmaster@mydomain.com
> >    ServerName mydomain.com
> >    DocumentRoot /home/vhost/mydomain
> >    <Directory /home/vhost/mydomain/>
> >      Order Deny,Allow
> >      Deny from All
> >      Allow from x.x.x.x/x  <---- my corporate ip range
> >    </Directory>
> >    ServerAlias www.mydomain.com
> >    ErrorLog /var/log/httpd/mydomain.error.log
> >    CustomLog /var/log/httpd/mydomain.access.log combined
> > </VirtualHost>
> > 
> > when i pointed my browser to http://www.mydomain.com from outside my
> > corporate ip, the test page of apache is show up. but when i do the
> > http://www.mydomain.com/index.php, the forbidden page (what i expected)
> > is show up
> > 
> > is there any conf should i add to make http://www.mydomain.com show the
> > forbidden page???
> 
> I suspect, based on seeing this behavior before, that you are running a
> third-party distribution of Apache, which has some things in the config
> that are not in the default Apache config. In particular, I would
> encourage you to look for a block that looks like:
> 
> <LocationMatch ^/$>
> ...
> </LocationMatch>
> 
> and delete that block. I've never quite understood what they're trying
> to accomplish with that block, but it generates the behavior that you're
> seeing.
> 
> This block will be in your mail Apache configuration file, or, perhaps,
> in one of the subsidiary config files that comes with it. In particular,
> the distro that I'm thinking of puts this stuff on commonhttpd.conf, I
> think. Try going to your configuration directory and running: grep -ri
> locationmatch *
> 
> If this turns out not to be the solution, I would encourage you to post
> error log entries corresponding with the time at which you're seeing the
> behavior. Perhaps access log entries too.


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


Mime
View raw message