douhei8633 2015-02-18 20:33
浏览 13

403错误的替代原因

I have a Linux VM set up that is using apache and PHP to serve web pages locally. Just today I am getting 403 errors on everything within a particular directory in my public folder.

Visiting localhost/dir1 in my web browser works fine (it contains an index.php file), but visiting localhost/dir2 does not work

They are modded identically: 711 for directories and 644 for PHP. Running ls -l from the command line results in:

drwx--x--x 17 user group 4096 Feb 18 02:16 dir1
drwx--x--x 17 user group 4096 Feb 18 02:16 dir2

When I move a file from dir2 to dir1, it magically works. Dir2 has a few hundred files, but I've gone through all of them to make sure that they are all modded 711 for directories and 644 for php files.

Every folder, directory, and file in dir2 triggers a 403 Forbidden error.

One difference between the two is that I am using Git on dir2 to sync to a remote repository. Its contents are a clone of a collaborator's work. Another thing to note is that some of the contents of one folder, jpg images, have spaces in their names (careless naming by collaborator).

What else could be causing 403 errors? Can Git cause 403?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
    • ¥15 微信会员卡接入微信支付商户号收款
    • ¥15 如何获取烟草零售终端数据
    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向