Reputation: 1
I received an old site from a customer that was written in perl and used CGI. The CGI files are mixed in with html files that call up a xls file as a data source.
My current hosting company says that the cgi files have to be in the cgi-bin to be executed, but the static html/html files cannnot be called from the cgi-bin directory.
How was this guy hosting these files all in the same directory?
Upvotes: 0
Views: 446
Reputation: 46187
It's a matter of how the web server is configured. The new hosting company is completely capable of allowing the files to all run from the same directory. However, restricting scripts to only be executable from a dedicated cgi-bin
directory and not from other locations is considered in some circles to be a good security practice and the new hosting company apparently shares that belief.
In other words, when they tell you that the files have to be separated, that's "have to be" in the sense of "this is our policy", not "this is a technical limitation".
Upvotes: 2