[cgiwrap-users] cleaner SCRIPT_NAME from REDIRECT_URL
Brought to you by:
nneul
From: san <san...@co...> - 2002-09-20 11:05:59
|
For redirect-based setups I made a patch to ciwrap-3.7 so to have a cleaner SCRIPT_NAME. Right now it is always constructed using apache setted SCRIPT_NAME (tipically /cgi-bin/cgiwrap) and appending to it the username and the script relative path. This brings to a working but unclean url because in cases in which redirection takes place it would be better to have a yet-to-redirect SCRIPT_NAME. OLD WAY: /~user/script.cgi -> /cgi-bin/cgiwrap/user/script.cgi PATCHED: /~user/script.cgi -> /~user/script.cgi This is accomplished by the use of the (NON-STANDARD) REDIRECT_URL variable when set. The patch can be found here: http://cobalt.rmnet.it/~san/cgiwrap/cgiwrap-3.7-redirecturl.patch --san; |