[WEB4LIB] Redirect html->cgi?

TMGB bennettt at am.appstate.edu
Wed Feb 24 10:19:19 EST 1999


Interesting, when I pressed Get Msg on my mail client it went to this
message after loading new messages from the mail server as if this were
a new message.  It wasn't until after I sent the reply that I noticed
this one is from back last August.  My apologies.

Thomas
lydia wrote:
> 
> 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
> ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

-- 
----------------------------------------------------------------------
Thomas McMillan Grant Bennett           Appalachian State University
Computer Consultant II                  University Library
bennettt at am.appstate.edu               
http://www.library.appstate.edu/admin/
Voice:  828 262 6587			FAX:    828 262 3001

Windows 95 is a 32-bit extension to a 16-bit patch for an 8-bit
operating system that was originally coded for a 4-bit microprocessor.
 - Chris Dunphy     Boot Magazine


More information about the Web4lib mailing list