Redirect html->cgi?
lydia
lydia at sylvia.harvard.edu
Thu Aug 20 16:18:36 EDT 1998
Has anyone attempted to redirect users from a single html page to a
single cgi script? Can it be done? (We're running Apache 1.3 on
Solaris.)
I've tried out the intuitively obvious theories already, with these
results:
1. symlink from "moveme.html" to "moved.cgi" --
The link works fine, but the webserver displays the destination
file as html, rather than handling it as a cgi script.
2. ScriptAlias from httpd.conf --
("ScriptAlias /path/moveme.html /path/moved.cgi")
I had a theory that it would be possible to tell the server that
in this single instance, it could execute an html document as cgi.
Since ScriptAlias is designed to specify an entire directory,
rather than a single filename, it's unsurprising that this just
returns our 404 error message.
2. Redirect from httpd.conf --
("Redirect /path/moveme.html http://server.foo.edu/moved.cgi")
Of course, ScriptAlias is also designed to work with entire
directories--so this is essentially the same solution as the symlink.
It begins to seem like I'm just requesting functionality that can't
exist. Any intrepid souls out there already faced this?
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Lydia Ievins, Systems Librarian Office for Information Systems
phone 617/495-3724; fax 617/495-0491 Harvard University Library
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
More information about the Web4lib
mailing list