You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/09/16 21:42:14 UTC

DO NOT REPLY [Bug 31268] New: - ab: add an option to override the target host

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31268>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31268

ab: add an option to override the target host

           Summary: ab: add an option to override the target host
           Product: Apache httpd-2.0
           Version: 2.0.50
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: gauze@omnimental.tmetic.com


When testing a server, the "Host:" header can matter. I needed a way to
disconnect the target host as derived from the URL on the command line and the
"Host:" header that ab sends.

I wrote a patch against ab from 2.0.50 that adds a "-F hostname" option (which I
will attach once this ticket exists).

Say I have a new server and want to see how it compares with an existing one
with a vhost named www.example.com. Rather than play with hosts files or DNS,
this patch allows you to test "newbox" by running:

ab -F newbox http://www.example.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org