weird error in httpd

Discuss Applications

weird error in httpd

Postby Basher52 » Thu Dec 18, 2008 3:38 pm

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
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Thu Dec 18, 2008 7:51 pm

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
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Fri Dec 19, 2008 10:14 am

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
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Fri Dec 19, 2008 1:24 pm

"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
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Fri Dec 19, 2008 2:19 pm

k, so I might have added that, maybe the description of it fooled me :P
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE


Return to Applications

Who is online

Users browsing this forum: No registered users and 1 guest

cron