How do I make it so that if I go to mysite.com, then it will run the file in cgi-bin/myprog.py?
To add to it, how do I make it so that any file with the extension "py" are not directly viewable, but can be viewed if they go to mysite.com/file_without_extension?
How do I make it so that if I go to mysite.com, then it will run the file in cgi-bin/myprog.py?
To add to it, how do I make it so that any file with the extension "py" are not directly viewable, but can be viewed if they go to mysite.com/file_without_extension?
Well, I know a little bit about the rewrite rules, but I do not know of any way to make it so that if the user goes to "<any_file_or_folder>" they will be directed to "cgi-bin/<any_file_or_folder>"...
Also, what is the benefit from having it in the cgi-bin versus outside of it? I have read that it is secure, but how?
Well, I know a little bit about the rewrite rules, but I do not know of any way to make it so that if the user goes to "<any_file_or_folder>" they will be directed to "cgi-bin/<any_file_or_folder>"...
Also, what is the benefit from having it in the cgi-bin versus outside of it? I have read that it is secure, but how?
, you didn't read none of the pages from the links i give it to you, isn't it?
Well, I read from one of the URLs you gave me related to Python that having the files in the cgi-bin is more secure, though I do not know why. If it wasn't a problem, I would have probably just left the files in the root directory (public_html).
Well, I read from one of the URLs you gave me related to Python that having the files in the cgi-bin is more secure, though I do not know why. If it wasn't a problem, I would have probably just left the files in the root directory (public_html).
you can't run cgi script outside of the cgi-bin directory without changing server setting. The document root of the server, public_html, is for everything you want except scripts.