简体   繁体   English

AWS beantalk cgi-bin权限

[英]AWS beanstalk cgi-bin permissions

I am having an issue with aws's beanstalk and running my webapp. 我在aws的beanstalk上遇到问题并正在运行我的webapp。

I have set everything up the same way as my last hosting account but I am getting a permissions error in the cgi-bin in var/www/cgi-bin/server.pl when trying to run the script. 我已经用上一个托管帐户的方式进行了所有设置,但是尝试运行脚本时,在var / www / cgi-bin / server.pl中的cgi-bin中收到权限错误。

There must be something somewhere that i need to change to run this. 我必须更改某些地方才能运行此程序。

I have set the permissions to 755 to cgi-bin and sever.pl 我已将cgi-bin和sever.pl的权限设置为755

and in the httpd.conf i added 并在httpd.conf中添加了

Options +ExecCGI AddHandler cgi-script cgi pl 选项+ ExecCGI AddHandler cgi-script cgi pl

so it looks like this 所以看起来像这样

<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI
AddHandler cgi-script cgi pl
Order allow,deny
Allow from all

i have the close Directory at the end it just isnt showing up here 我最后有关闭目录,只是这里没有显示

is there anything else you can see I am missing? 还有什么可以看到我失踪的吗?

Thanks in advance 提前致谢

我必须添加此行才能使脚本在Apache中工作:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

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

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