You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniele Imbrogino <d....@gmail.com> on 2012/12/13 11:14:29 UTC

[users@httpd] Default configuration: who replies with a "403 Forbidden" document?

I've just downloaded and installed Apache 2.4.3 on Ubuntu 12.04 for
didactical purposes.

I used the default configuration provided with ./configure and I edited the
httpd.conf ( /usr/local/apache2/conf/httpd.conf ) ONLY adding  an "order"
directive in a directory block

<Directory "/usr/local/apache2/htdocs">

   #Other default directives

   Order Allow,Deny
   Allow from all
   Deny from 192.168.1.3

</Directory>

Then I restarted the server and it worked as I guessed: the requests from
192.168.1.3 received a "403 Forbidden" response.
But why the client on 192.168.1.3 receives also a (very basic) HTML page
explaining the error, if I don't have any ErrorDocument directive?
(and the few present in httpd.conf by default are commented)

P.S. I don't attach httpd.conf because it's the default one, except for the
three lines added above. If it's necessary, I'll attach it.

Re: [users@httpd] Default configuration: who replies with a "403 Forbidden" document?

Posted by Daniele Imbrogino <d....@gmail.com>.
Oh, I'm sorry.

I never thought about going to read the documentation for a directive I
DON'T use, but from now I will.

Thank you.


2012/12/13 Pete Houston <ph...@openstrike.co.uk>

> On Thu, Dec 13, 2012 at 11:14:29AM +0100, Daniele Imbrogino wrote:
> > But why the client on 192.168.1.3 receives also a (very basic) HTML page
> > explaining the error, if I don't have any ErrorDocument directive?
> > (and the few present in httpd.conf by default are commented)
>
> This is explained in the documentation for ErrorDocument at
> http://httpd.apache.org/docs/2.4/mod/core.html#errordocument
> in the paragraph which begins "The first option is the default ..."
>
> HTH,
>
> Pete
> --
> Openstrike - improving business through open source
> http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107
>

Re: [users@httpd] Default configuration: who replies with a "403 Forbidden" document?

Posted by Pete Houston <ph...@openstrike.co.uk>.
On Thu, Dec 13, 2012 at 11:14:29AM +0100, Daniele Imbrogino wrote:
> But why the client on 192.168.1.3 receives also a (very basic) HTML page
> explaining the error, if I don't have any ErrorDocument directive?
> (and the few present in httpd.conf by default are commented)

This is explained in the documentation for ErrorDocument at
http://httpd.apache.org/docs/2.4/mod/core.html#errordocument
in the paragraph which begins "The first option is the default ..."

HTH,

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107