Questions tagged «http-status-code-403»

5
Apache:chmod 755不足以在Mac OS 10.5的Apache httpd上设置符号链接或别名吗?
在我的Mac OS 10.5机器,我想建立的子文件夹~/Documents一样~/Documents/foo/html是HTTP://本地主机/富。 我想到要做的第一件事是使用Alias,如下所示: Alias /foo /Users/someone/Documents/foo/html <Directory "/Users/someone/Documents/foo/html"> Options Indexes FollowSymLinks MultiViews Order allow,deny Allow from all </Directory> 这使我成为403 Forbidden。在error_log中,我得到了: [error] [client ::1] (13)Permission denied: access to /foo denied 有问题的子文件夹具有chmod 755访问权限。我试过指定像http://localhost/foo/test.php之类的东西,但是那也不起作用。接下来,我尝试了symlink路由。 进入/Library/WebServer/Documents并建立了符号链接~/Documents/foo/html。文件根目录有 Options Indexes FollowSymLinks MultiViews 这仍然让我成为403 Forbidden: Symbolic link not allowed or link target not accessible: /Library/WebServer/Documents/foo 我还需要设置什么? …

6
CentOS Apache HTTPD配置(禁止403)
这就是我的httpd.conf中的内容 <VirtualHost *:80> ServerAdmin spero78@spero78.com ServerName mcmoddr.com ServerAlias www.mcmoddr.com DocumentRoot /home/mcmoddr/www/ ErrorLog /mcmoddr/logs/error.log CustomLog /mcmoddr/logs/accesslog combined </VirtualHost> 当访问该网站时,我收到403禁止错误,该文件与vsftpd一起添加,并具有drwxr-xr-x权限
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.