Forum OpenACS Q&A: Re: Strange Message: nsiislog.dll ??

Collapse
Posted by Samer Abukhait on
this was in my server error log file.

I actually searched for the code that was servered.

found out that a request without host was servered on my server .. !!
How might this happen?


    set Host [ns_set iget [ad_conn headers] Host]
..
    # Server config location
    if { ![regexp {^([a-z]+://)?([^:]+)(:[0-9]*)?$} [ad_conn location] match location_proto location_hostname location_port] } {
        ns_log Error "util_current_location couldn't regexp '[ad_conn location]'"
    }

...

    if { [empty_string_p $Host] } {
        # No Host header, return protocol from driver, hostname from [ad_conn location], and port from driver
        set hostname $location_hostname
    }