Make index.cgi redirect to Apache webserver document root
- by Casey
I'm trying to expose a CGI file as my document root and web server. I do not want to expose the fact that the server is running a CGI script.
How can I map a URL http://host/index.cgi/ back to http://host/ in Apache2? I'm guessing it involves mod-rewrite, but I haven't finished grokking all the docs yet.
The following configuration is working, but I'm guessing there is a more complete solution:
RewriteEngine ON
Redirect /index.cgi/ /