httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@wired.com>
Subject Re: .htforward anyone???
Date Tue, 04 Apr 1995 00:05:28 GMT

On Mon, 3 Apr 1995, Andrew Wilson wrote:

...about the need to have redirecting a non-conf-file thang....

> All this is semantically the same as specifying a cgi-script file-type in the
> .conf files, and making each 'redirecting' script fool the server into issuing
> a redirect.  I don't understand how the .map/.var thing works yet so I'll bluff.
> Just assume that the server knows that when you 'ask' for index.html you really
> mean 'index.redirect'.  index.redirect could look like:
> 
> --- cut here ---
> #!/usr/local/bin/perl
> print "Location: http://www.cm.cf.ac.uk/User/Andrew.Wilson/\n\n";
> --- cut here ---

Turn on MultiViews for that directory, and instead of "index.redirect", 
rename it "index.html.cgi".  This will (probably) even work where the 
DirectoryIndex has been set to "index.html" and the request comes in for 
just the directory, without the "index.html".

Don't forget to put in a "Status: 302" line too, that'll speed things up 
(right guys?)

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@hotwired.com  brian@hyperreal.com  http://www.hotwired.com/Staff/brian/


Mime
View raw message