【发布时间】:2013-02-21 12:45:34
【问题描述】:
我在 unixserverA 上运行 apache,我希望使用此 URL http://unixserverA/sg/hello.txt 在浏览器中查看 unix [/app1/bea/hello.txt] 上的文件
请帮助我需要在 httpd.conf 中进行哪些更改。
我在我的 httpd.conf 中包含了一个 conf 文件 [bulk.conf],并且该 bulk.conf 文件具有以下条目,但没有帮助。
ScriptAlias /sg/ "/app1/bea/"
以下是我在浏览器中看到的错误
内部服务器错误 服务器遇到内部错误或配置错误,无法完成您的请求。
请联系服务器管理员 user@unixserverA 并告知他们错误发生的时间,以及您所做的任何可能导致错误的事情。
服务器错误日志中可能会提供有关此错误的更多信息。
错误日志显示:
[Thu Feb 21 04:57:45 2013] [error] (2)No such file or directory: exec of '/appl/bea/hello.txt' failed
[Thu Feb 21 04:57:45 2013] [error] [client 109.71.70.209] 脚本头过早结束:hello.txt
【问题讨论】:
-
为什么是
ScriptAlias?您想显示静态文件还是运行脚本?无论如何,请按照错误消息建议并检查服务器错误日志。 -
我想运行一个脚本。日志中的错误消息说 ....[Thu Feb 21 04:57:45 2013] [error] (2)No such file or directory: exec of '/appl/bea/hello.txt' failed [Thu Feb 21 04:57:45 2013] [错误] [客户端 109.71.70.209] 脚本头过早结束:hello.txt
标签: apache