Directory to URL translation in CGI script

saad mufti (mufti@cis.ohio-state.edu)
17 Mar 1995 14:54:09 -0500

Hi CGI gurus,

Sorry for the wide distribution, but I really need an answer to this.

Is there any way in a CGI script to translate a given Unix directory
path to a base URL, or to tell that it doesn't correspond to any valid
URL with respect to the server that launched the CGI script?

The only way I can think of is to parse the server configuration file
and do a reverse mapping, but that is too specific to the kind of HTTP
server that you happend to be using.

Any help would be highly appreciated.

-------------------------
Saad Mufti
Personal Library Software

e-mail : mufti@pls.com