0

我有一个尝试加载模板文件的 CGI 脚本。但是,我收到一个错误,其中 CGI 脚本本身的文件位置被添加到我尝试加载模板的路径中:

let template_string = Jg_template.from_file "/home/d37433/templates/startpage.tmpl" in

错误:

file /home/d37433/public_html/cgi-bin//home/d37433/templates/startpage.tmpl not found

我的 Apache 配置中有错误吗?相同的代码在我的另一台机器上工作(不幸的是,我目前无法访问它)。

4

1 回答 1

0

通过以编程方式更改 CGI 脚本中的工作目录来解决。

于 2013-09-09T16:32:35.797 回答