。
无论出于邪恶的原因,.htaccess文件都无法正常工作。
我的.htaccess文件只是:
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
<Directory ~ "\LAB3\backups">
Order allow,deny
Deny from all
</Directory>
从理论上讲,它应该拒绝所有访问.htaccess和目录“ \ lab3 \ backups”,除了没有,然后返回200而不是403。
我怀疑问题可能是我在XAMPP文件夹外运行它。 我的XAMPP安装文件夹在C:/XAMPP中,而我正在运行的服务器的实际位置为〜/tmp/phptmp,但是IDK。
For whatever unholy reason, the .htaccess file just doesn't work correctly.
My .htaccess file is just:
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
<Directory ~ "\LAB3\backups">
Order allow,deny
Deny from all
</Directory>
Theoretically, it should deny all access to .htaccess and the directory "\LAB3\backups", except it doesn't, and return 200 instead of 403.
I suspect the problem might be the fact that I'm running it outside of the XAMPP folder.
My XAMPP installation folder is in C:/xampp, while the actual place I'm running the server is ~/tmp/phptmp, but idk.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论