cannot use IP to install OS over http

Mikkel L. Ellertson mikkel at infinity-ltd.com
Fri Sep 19 01:08:05 UTC 2008


Aldo Foot wrote:
> I was doing a Linux install over HTTP.
> When asked to enter the HTTP server host  identification I chose to give
> the IP rather than the FQDN, which resulted in an error halting the install.
> The problem is fixed by giving the FQDN of the host rather than the IP.
> 
> The part of interest is the  [id "960017"] in the /var/log/httpd/error_log.
> 
> [Thu Sep 18 13:25:28 2008] [error] [client xxx.xxx.xxx.xxx]
> ModSecurity: Access \
> denied with code 400 (phase 2). Pattern match "^[\\\\d\\\\.]+$" at \
> REQUEST_HEADERS:Host. [id "960017"] [msg "Host header is a numeric \
> IP address"] [severity "CRITICAL"] [hostname "xxx.xxx.xxx.xxx"] \
> [uri "/inst/disc1/images/stage2.img"] [unique_id "vQ66SI-onWgAAFVnrkUAAAAH"]
> 
> I use the error id to locate a line in the config file
>          /etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf
> which prevents the use of IP address in the above scenario:
> I guess the problem is eliminated by commenting the line out.
> 
> Is there a better solution?
> Why is using the IP a problem as indicated earlier?
> 
> ~af
> 
Dumb question - are you set up to use virtual hosts on your web server?

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080918/eee85f8f/attachment-0001.sig>


More information about the fedora-list mailing list