RE: RE: how to redirect ip ranges to warning page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> > I prefer to return there everything with 4xx return code, but can't get
> this for /
> 
> Use an empty directory as the documentroot, disable mod_autoindex. Use
> a highish debug level to check

I am for now sticking to virtualhost only configs as I don't want to change global settings.
So I disabled the mod_autoindex with this "Options -Indexes"

So I have my custom error docs in the catch all for blocked ips like this

ErrorDocument 4xx
ErrorDocument 5xx

When I then access a random site www.example.net/doesnotexist
I get correct 404 and the correct error doc

When I then access random site www.example.net/
I get correct 404, not the ErrorDocument I configured, but a Forbidden (default?) message.

When I add to the virtualhost config
DirectoryIndex /myerrordoc.html
I get (not) correct 200, but the correct errordocument 


> what your rewriteRules are actually doing. Also, if you had written
> what you're actually getting for /,
> what you've tried so far to get the desired result, and what exactly
> your current httpd configuration

Current catch all for blocked ips is almost empty. I like to 'drop' these requests as quickly as possible. Just this DirectoryIndex, ErrorDocument and DirectoryIndex
I am not sure how these redirects work client side or server side. But since I messing with the tcp traffic, I have the impression that the redirect is ending up at a different virtualhost. 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux