[ale] Apache redirects

Gene Matthews gene at mmc-inc.com
Tue Nov 20 12:20:26 EST 2001


Thanks, Jerry!  I can't believe I didn't think of that!

I just made index.html into index.php and coded it with:

<?php

header("location:../cgi-bin/cgiprog");
?>

And it works great.


gene

Yu, Jerry wrote:

> The simplest,  would be doing a relocation (redirect) in index.html to point
> to the CGI location.
> This way you don't need to touch apache config.
> 
> 
>>-----Original Message-----
>>From:	Gene Matthews [SMTP:gene at mmc-inc.com]
>>Sent:	Tuesday, November 20, 2001 11:50 AM
>>To:	ale at ale.org
>>Subject:	[ale] Apache redirects
>>
>>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?
>>
>>Any/all thoughts are appreciated.
>>
>>Thanks,
>>
>>gene
>>
>>
>>---
>>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.
>>
> 
> 




---
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