我应该删除刚刚创建的子域中的 cgi-bin 文件夹吗?
在我的托管帐户上使用 cpanel,我创建了一个子域 - 例如 www.clothing.mysite.com
一个 cgi- bin 文件夹会在clothing.mysite.com 目录中自动创建。我需要它吗?我只使用子域来安装 wordpress。我不太明白 cgi-bin 文件夹的用途,如果它不会造成任何损害,我很乐意保留它。有什么想法吗?
Using cpanel on my hosting account, I created a subdomain - e.g. www.clothing.mysite.com
A cgi-bin folder was automatically created in the directory for clothing.mysite.com. Do I need it? I'm only using the subdomain to install wordpress on it. I don't really understand what the cgi-bin folder is for and I'm happy to leave it if it doesn't harm anything. Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
cgi-bin
历史上是唯一可以存储可执行文件或脚本代码(二进制文件、shell 脚本等)的地方。它主要是一个历史遗迹,因为大多数主机允许从任何地方执行脚本。cgi-bin
historically was the only place where executable or script code (binaries, shell scripts, etc.) could be stored. It is mostly a historic relic since most hosts allow execution of scripts from anywhere.您可以安全地删除它。如今,“cgi-bin”几乎不再被使用。
You can safely delete it. "cgi-bin" is hardly ever used these days.
您可以安全地删除“cgi-bin”文件夹,现在几乎不再使用它
还要注意,当您的服务器收到一些恶意软件脚本时,它会扫描不同的文件夹,然后隐藏在 cgi-bin 等文件夹中,因为它们很少被检查现在。
我什至之前编写了一个脚本,“监视”我的服务器中的不同文件夹,并在我的个人和客户端服务器上发现不同的脚本时提醒我。
You can safely delete "cgi-bin" folder, it's hardly ever used nowadays
Also beware that when your server got some malware scripts scans different folders and then hides on folders like cgi-bin because they rarely are checked now.
I even wrote a script before that "monitors" different folders in my server and alerts me if it found different scripts in there on my personal and clients servers too.
我没有看到提到过,但也可能值得注意的是,由于 cgi-bin 传统上用于执行脚本,因此如果您希望执行,某些托管提供商可能会要求您编辑 .htaccess 文件cgi-bin 外部的脚本(如果您删除了 cgi-bin,情况也是如此)。
I haven't seen it mentioned but it might also be worth noting that since cgi-bin is traditionally used to execute scripts, some hosting providers might require you to edit your .htaccess file if you wish to execute scripts outside cgi-bin (same is true if you deleted your cgi-bin).