Red Hat Bugzilla – Bug 103791
Deny ip results in RH welcome page
Last modified: 2007-11-30 17:06:58 EST
Description of problem:
"Deny"ing web requests results in RH welcome page
Version-Release number of selected component (if applicable):
[chrismcc@webtest168 tmp]$ rpm -q httpd
Steps to Reproduce:
Add Deny from line to httpd.conf e.g.
Options Indexes FollowSymLinks
Allow from all
Deny from 192.168.0.0/16
2. access page
This page is used to test the proper operation of the Apache HTTP server after
it has been installed. If you can read this page, it means that the Apache HTTP
server installed at this site is working properly.
Get "Authorization denied, go away"
sounds like an enhancement request, not a bug.
having a "default page" , good.
having anything show up when it should be denied, bad.
I thought it would be relatively easy to do this "a slightly better way". The
<Location ... directive takes precidence over any <Directory ... directives.
So there isn't really a "better way" to configure the same thing. But I think
having the "welcome page" be /var/www/html/index.html is preferable.
Just get rid of it if you don't want it - the new page explains this :)
# echo > /etc/httpd/conf.d/welcome.conf
It is *not* preferable to version /var/www/html/index.html itself, since that
means we'd blow away your own index.html on upgrades etc.
So given the need for a welcome page and the need for not putting in
/var/www/html, this is the best way we could come up with for implementing it.
If you can come up with a better way, please reopen!