weird error in httpd

Discuss Applications
Post Reply
User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

weird error in httpd

Post by Basher52 »

Sitting and installing Fedora 10 on an old machine and all that went OK.
I installed mysql, apache & PHP but when I try to show the apache "start" page, it wont show up, I just get
Bad Request
Your browser sent a request that this server could not understand.

Apache/2.2.0 (Fedora) Server at 192.168.67.124 Port 80
I use this link to connect to it: http://192.168.67.124 and this gives me the error, but if I use this: http://192.168.67.124:80 is works.
What am I missing here, I just can't find it.



UPDATE: I found it :D :D

Problem is Apache module mod_security. It allows access by domain name, but not IP.
I remarked this line in: /etc/httpd/modsecurity.d/blocking/modsecurity_crs_21_protocol_anomalies.conf
SecRule REQUEST_HEADERS:Host "^[\d\.]+$" "deny,log,auditlog,status:400,msg:'Host header is a numeric IP address', severity:'2',,id:'960017',"

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Cool! I have not run into that problem yet, did you install that as an extra option? It's not installed on any of my F10 machines.

User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 »

dont know really, since I wanna remove and add particular packages but this option must be in F10 only, right? Never had this in other Fedora's.
I can't say tho that I added some special thing for Apache other than to use php and encryption.

btw... I had no option to disable SELinux at install and that also played a trick on me. Even as root I got lots of error and it took me a while before I found how to remove it :P

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

"mod_security" is a package available in the F10 repositories on but it didn't get installed by default on any of my Fedora 10 machines.

User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 »

k, so I might have added that, maybe the description of it fooled me :P

Post Reply