Comment 7 for bug 8132

Revision history for this message
In , Adam Conrad (adconrad) wrote : RE: Bug#271912: apache2 does not set request_rec->server->port

reassign 271912 libapache2-mod-musicindex
thanks

Thibaut VARENE wrote:
>
> I tried downgrade to 0.99.2, it didn't fix the problem. It looks like
a
> bug in apache2, which no longer sets request_rec->server->port, making
> the following piece of code both fail and misbehave:

No, if there is no "Port" directive in the conf, r->server->port is set
to 0, libapache-mod-musicindex should be using ap_get_server_port()
instead of the r->server struct. Note that this should work in both 1.3
and 2.0.

... Adam