Mailing List Archive

write access to $r->hostname
any magic reason why you can't set $r->hostname? i wanted to write
a quick post-read-request handler that would throw away any leading
'www' (to make mod_vhost_alias bend to my will a bit more :).

the simple patch to change this (untested) is attached.

jim
Re: write access to $r->hostname [ In reply to ]
On Sun, 26 Nov 2000, Jim Winstead wrote:

> any magic reason why you can't set $r->hostname? i wanted to write
> a quick post-read-request handler that would throw away any leading
> 'www' (to make mod_vhost_alias bend to my will a bit more :).

the reason for most of the methods that cannot be written to was just not
being sure of the usefulness or implications, etc.
this sounds useful and don't see any problem, applied, thanks jim.