|
From: James B. <jmb...@ha...> - 2007-08-16 19:14:27
|
Tom Chiverton wrote: > I've tried various configs, and can't seem to get the > /httpbl_diagnostics/ page to not be a 404 on any of my virtual hosts. > In /etc/httpd/conf.d/httpbl.conf (there is a suitable Include in the > main httpd.conf): > LoadModule httpbl_module /usr/lib64/httpd/modules/mod_httpbl.so > > <IfModule mod_httpbl.c> > HTTPBLRBLEnabled On > # HTTPBLLogDir /var/log/httpd/ > HTTPBLAccessKey somethingrandom > </IfModule> ZyanKLee wrote: > this should NOT be something random, instead you need a Access-Key > from "project honeypot" As far as I can tell, this doesn't actually matter for the diagnostics page (which gets caught at an earlier stage of the handling process) or even in general (the BL lookup happens and returns NXDOMAIN, and the access is permitted). I presume however that Tom is substituting "somethingrandom" instead of revealing his unique key... (?) It just has to be the right length (as "somethingrandom" isn't) otherwise "apachectl -t" gives the following, which Tom would probably have spotted - The HTTPBLAccessKey you entered is an invalid length (your access key value length: 15 characters; required length: 12 characters). Please use a valid RBL access key. Tom, are you accessing /httpbl_diagnostics/ or /httpbl_diagnostics ? I've noticed that the latter just doesn't work (404) on my systems. Can you report your APR version and which version of the httpBL source you're using? Tom Chiverton wrote: > Oddly, if I uncomment HTTPBLLogDir, I get : > "Syntax error on line 5 of /etc/httpd/conf.d/httpbl.conf: > Could not find a directory with path "/var/log/httpd/". Please ensure > this directory exists and permissions allow the user running Apache to > view and write to this directory." You shouldn't need the HTTPBLLogDir directive unless you've compiled mod_httpbl with debug on. However, I'd guess that the problem you're seeing is because /var/log/httpd is a soft link to somewhere else; remove the trailing "/" - does that improve matters? Apache seems to complain if you refer to a target directory slink with a trailing slash. If we can't figure what's causing your 404, it might be worth turning on that debug/log option... (#define VERBOSITY ...) regards, James -- James Beckett <jm...@ha...> <http://www.hackery.net/jmb/> F601 C085 1482 B92A C812 556C A985 1497 209B 4E65 D6AC 333B FA95 595D 6D76 0F13 A5E2 044E 60D5 880B |