简体   繁体   English

尝试在浏览器中运行Perl脚本时,为什么会出现“ .htaccess:此处不允许使用选项”的信息?

[英]Why do I get “.htaccess: Options not allowed here” when I try to run my Perl script in a browser?

I am getting "Internal Server Error" along with the following error when I execute my Perl script in my browser: 在浏览器中执行Perl脚本时,出现“内部服务器错误”以及以下错误:

The server encountered an internal error or misconfiguration and was unable to complete your request. 服务器遇到内部错误或配置错误,无法完成您的请求。

Please contact the server administrator, xxxxx@att.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. 请与服务器管理员xxxxx@att.com联系,并通知他们错误发生的时间以及您可能做的任何可能导致错误的事情。

More information about this error may be available in the server error log. 服务器错误日志中可能会提供有关此错误的更多信息。

When I enable the error log, I see the following error: 当我启用错误日志时,我看到以下错误:

[Wed Apr 15 15:36:08 2015] [alert] [client 135.75.222.51] /var/www/html/oncall/cgi-bin/.htaccess: Options not allowed here [2015年4月15日星期三15:36:08] [提醒] [客户端135.75.222.51] /var/www/html/oncall/cgi-bin/.htaccess:此处不允许使用选项

Try something like this: 尝试这样的事情:

<Directory /var/www/html/oncall/cgi-bin/>
    AllowOverride All
</Directory>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM