Right now I have a script thats
http://www.example.com/cgi-bin/foo?var1=A&var2=B
Is there a way that I can have it run outside of the cgi-bin directory? Like could I have
http://www.example.com/foo/?var1=A&var2=B
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Apache you can change the directories that can contain executable scripts with the
ScriptAliasdirective in httpd.conf (or whatever file holds your configuration).You can also use mod_rewrite to rewrite URLs to point to the scripts you want to execute. Mod_rewrite also allows you to pass variables and stuff in the form of URLs if you like that, e.g.
www.example.com/foo/A/B/ -> www.example.com/foo?var1=A&var2=B