0

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?

4

1 回答 1

2

这是如何配置 Web 服务器的问题。新的托管公司完全有能力允许所有文件从同一目录运行。但是,将脚本限制为只能从专用cgi-bin目录执行,而不能从其他位置执行,在某些圈子中被认为是一种良好的安全实践,新的托管公司显然也认同这一信念。

换句话说,当他们告诉您必须分离文件时,这是“这是我们的政策”意义上的“必须”,而不是“这是技术限制”。

于 2013-04-05T16:50:36.330 回答