Fedora Linux Support Community & Resources Center
  #1  
Old 21st August 2007, 04:17 AM
barry905 Offline
Registered User
 
Join Date: Jul 2007
Posts: 115
apache access problem

i've just implemented a small test web site on FC6 using the distributed version of apache. after a little trial and error i got the thing working, but i have one remaining problem. the server hosting the site is has the hostname "bluebottle" and ip address 192.168.0.5 and i am using dnsmasq as a nameserver, on which this combination is configured.

when i try to access the site through a web browser on my lan using "bluebottle" i can access everything, but when i try "192.168.0.5" i get the following on my browser:

Bad Request

Your browser sent a request that this server could not understand.
Apache/2.2.0 (Fedora) Server at 192.168.0.5 Port 80

and this line in my error_log file:

[Mon Aug 20 22:26:01 2007] [error] [client 192.168.0.100] ModSecurity: Access denied with code 400 (phase 1). Pattern match "^[\\\\d\\\\.]+$" at REQUEST_HEADERS:Host. [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [hostname "192.168.0.5"] [uri "/"] [unique_id "YNzFIH8AAAEAAAqHEBUAAAAA"]


if anyone out there has any ideas i would appreciate it.

barry
Reply With Quote
  #2  
Old 21st August 2007, 03:53 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
I'm no mod_security expert but I do use it. Try going into /etc/httpd/conf.d/mod_securtity.conf and comment out the line ..Include modsecurity.d/modsecurity_localrules.conf with a # in front of it and see it that will work .
Reply With Quote
  #3  
Old 22nd August 2007, 12:20 AM
barry905 Offline
Registered User
 
Join Date: Jul 2007
Posts: 115
fixed it - thanks for the pointer

thanks for the direction - turns out the modsecurity.d/modsecurity_localrules.conf file is merely a dummy and contains no data, but a little searching and i found the rule that was being violated in modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf. i simply commented out that rule, and the identical rule in the file of the same name in the blocking sub-directory, and that fixed the problem.

once again, thank you for your insight. it got me to the solution

barry
Reply With Quote
Reply

Tags
access, apache, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2 access from local LAN alpha1solo Servers & Networking 19 12th August 2010 07:40 AM
Apache internet access problem. dmode Using Fedora 0 13th August 2007 09:34 AM
Apache Problem: access to /index.html denied prismbiz Servers & Networking 18 30th September 2005 08:58 PM
file access with apache Galadan Servers & Networking 2 26th March 2005 02:16 AM
Apache and access rights Leszek Servers & Networking 4 22nd February 2005 10:46 AM


Current GMT-time: 04:55 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat