Justin
02-09-1999, 08:36 AM
My turn to ask a question again http://www.aota.net/ubb/smile.gif
I know a cgi can have any extention if it's in the cgi-bin, and I know that some servers can be set up to run a cgi in other directories as well. Can you do both?
Here's why I ask: If I release a new version of my program, naturally I'm going to remove the old version. But with so many shareware sites linking to it, I don't want to lose potential customers, considering how long Download.com takes to update.
So what if I had a cgi called vdj140.exe, which will simply be a Perl script to redirect to vdj150.exe? Or is there another way to automatically redirect requests to one file to another? I don't want to have ErrorDocument 404 /files/vdj150.exe http://www.aota.net/ubb/smile.gif That would be a little wierd.
But there's got to be a simple way to redirect that, so that they wouldn't even know anything happened, until they installed it and realized it's a new version (I'm sure they wouldn't be too upset). I remember reading something in the Apache docs about automatic redirection, but I don't think it was too specific.
Or possibly a cgi error handler that can redirect to the new file only if the REDIRECT_URL is vdj140.exe? And if not, redirect to 404.shtml? Or just print out the normal error message....
Ok, I might have answered my own question, but hey, if anyone has other ideas, let me know. I guess I'll post this anyway (don't you hate it when that happens?)
Of course, I would only pass 404's to the cgi, or at least not 500's - just in case (I locked up my machine playing with Apache Guardian)
http://www.aota.net/ubb/biggrin.gif
------------------
Justin Nelson, SFE Inc.
www.vdj.net (http://www.vdj.net)
[This message has been edited by Justin (edited 02-09-99).]
I know a cgi can have any extention if it's in the cgi-bin, and I know that some servers can be set up to run a cgi in other directories as well. Can you do both?
Here's why I ask: If I release a new version of my program, naturally I'm going to remove the old version. But with so many shareware sites linking to it, I don't want to lose potential customers, considering how long Download.com takes to update.
So what if I had a cgi called vdj140.exe, which will simply be a Perl script to redirect to vdj150.exe? Or is there another way to automatically redirect requests to one file to another? I don't want to have ErrorDocument 404 /files/vdj150.exe http://www.aota.net/ubb/smile.gif That would be a little wierd.
But there's got to be a simple way to redirect that, so that they wouldn't even know anything happened, until they installed it and realized it's a new version (I'm sure they wouldn't be too upset). I remember reading something in the Apache docs about automatic redirection, but I don't think it was too specific.
Or possibly a cgi error handler that can redirect to the new file only if the REDIRECT_URL is vdj140.exe? And if not, redirect to 404.shtml? Or just print out the normal error message....
Ok, I might have answered my own question, but hey, if anyone has other ideas, let me know. I guess I'll post this anyway (don't you hate it when that happens?)
Of course, I would only pass 404's to the cgi, or at least not 500's - just in case (I locked up my machine playing with Apache Guardian)
http://www.aota.net/ubb/biggrin.gif
------------------
Justin Nelson, SFE Inc.
www.vdj.net (http://www.vdj.net)
[This message has been edited by Justin (edited 02-09-99).]