Re: Essential stuff in /usr/doc (Was Re: Installing things into a...)
renfro@tntech.edu wrote:
> > I think I'll simply check $ENV{SERVER_NAME} and use it if
> > defined. That will cover a good proportion of cases anyway.
>
> Um, just a suggestion, but why not just return a page via http that has no
> hostname explicitly specified, so that all links and hrefs in it are
> relative? i.e., instead of returning a URL of the form
> http://SERVER_NAME/doc/mh-book, just return /doc/mh-book
>
> Works for most of my applications, at least.
Man, I thought that _didn't_ work for cgi-bin calls, but it does!
Must have made a mistake when I tested it.
Now that's embarassing.
Thanks. I don't see a problem with this, so I'll do it.
Peter
Reply to: