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=17148>.
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=17148

SCRIPT_URI is missing port number for implied files from DirectoryIndex





------- Additional Comments From [EMAIL PROTECTED]  2004-07-17 17:03 -------
Perhaps this isn't mod_rewrite's fault after all. From mod_rewrite (2.0.50):

    1125     /*
    1126      *  create the SCRIPT_URI variable for the env
    1127      */
    1128 
    1129     /* add the canonical URI of this URL */
    1130     thisserver = ap_get_server_name(r);
    1131     port = ap_get_server_port(r);
    1132     if (ap_is_default_port(port, r)) {
    1133         thisport = "";
    1134     }
    1135     else {
    1136         apr_snprintf(buf, sizeof(buf), ":%u", port);
    1137         thisport = buf;
    1138     }

This looks pretty simple. As far as I can tell, ap_get_server_port is defined in
server/core.c, and ap_is_default_port is a macro defined in include/httpd.h
which expands to: "(port == ap_run_default_port(r))". Unfortunately, I'm not
very adept at internal Apache development, and ap_run_default_port is defined
via some hook function macro magic that I don't fully understand.

Can anyone verify what the output of "ap_get_server_port(r)" and
"ap_is_default_port(port, r)" are in this context (i.e., when browsing to an
implied file via DirectoryIndex a la the above)?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to