[ale] Apache redirects
Geoffrey
esoteric at denali.atlnet.com
Tue Nov 20 14:31:30 EST 2001
A simple javascript for this purpose:
index.html would contain:
<html>
<head>
<title>Load a cgi instead</title>
<script language=Javascript>
location.href = "http://whatever.com/cgi-bin/cgiprog"
</script>
</head>
<body bgcolor="#ffffff">
</body>
</html>
Or with the refresh:
<meta http-equiv=refresh
content="0;url=http://whatever.com/cgi-bin/cgiprog">
should work as well.
Cleveland Flowe wrote:
>
> Gene Matthews wrote:
> >
> > I have an apache question. It's hopefully easy if you know apache well
> > (I don't). I have a cgi prog in cgi-bin. What I would like to happen
> > is when someone goes to the website via http://whatever.com/ the cgi
> > program in ../cgi-bin/cgiprog gets run to produce the page.
> >
> > I tried doing this in /var/www/html/:
> >
> > ln -s ../cgi-bin/cgiprog index.html
> >
> > That didnt' work. It produced a bunch of garbage. I don't know much
> > (anything?) regarding url redirection, but is that what I should be
> > trying here?
>
> You could add index.cgi to your DirectoryIndex, assuming that
> "AddHandler cgi-script .cgi" was issued in your config.
>
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> sent to listmaster at ale dot org.
--
Until later: Geoffrey esoteric at denali.atlnet.com
"...the system (Microsoft passport) carries significant risks to users
that
are not made adequately clear in the technical documentation available."
- David P. Kormann and Aviel D. Rubin, AT&T Labs - Research
- http://www.avirubin.com/passport.html
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list