LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache access question (https://www.linuxquestions.org/questions/linux-software-2/apache-access-question-769214/)

Ippy98 11-14-2009 09:15 PM

Apache access question
 
Hello,

I am running Fedora 11 with apache, it works fine when accessing from external network. But when accessing internally i.e.

just going to http://192.168.1.50
I get a http 400 bad request error

I checked my apache logs and saw:

[error] [client 192.168.1.10] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "192.168.1.50"] [uri "/favicon.ico"] [unique_id "Sv9sYn8AAAEAAAfdyt8AAAAF"]


So something is blocking it, maybe htaccess?
Not sure, any ideas how to fix this?

Thanks

anomie 11-14-2009 09:25 PM

You can see in the error message that mod_security denied the request: "Host header is a numeric IP address".

Are you wittingly running it? Documentation here: http://www.modsecurity.org/documentation/

Ippy98 11-14-2009 09:45 PM

I was unaware I was running it. I didn't even know it existed, I will try to read up on the link you gave. Thanks :)


All times are GMT -5. The time now is 01:47 PM.