HTTP服务器错误403故宫 [英] HTTP Server Error 403. Forbidden
问题描述
我收到以下错误:
Forbidden: You don't have permission to access [directory] on this server.
我需要在该目录到这个目录下直接访问和子文件夹,这样我的Android应用程序可以用它沟通。
I need direct access to this directory and sub folders on that directory so that my Android Application can communicate with it.
我试图把一个主机服务器上的文件夹和一切工作正常。
I tried putting folders on a Hosting Server and everything works fine.
不过,我做一个学术项目,我需要这些文件夹和脚本存储某大学Web服务器,该服务器可以跟本地上的localhost。
But, I am doing an academic project and I need to store these folders and scripts on a University Web Server which can talk to localhost locally.
推荐答案
1。结果
如果有可能,并且你的服务器是Linux服务器,你可以像更改权限
1.
If you have the possiblity and your server is a linux server, you can change the permissions with something like
sudo chmod -R 777 /var/www/folder
或者彻底改变以
sudo chown -R user /var/www/folder
2.结果
看看到Apache的配置文件,并在的.htaccess ,如果目录由
Deny from all
或者干脆不允许的。你可以通过创建一个.htaccess文件允许的目录,输入
Or simply not allowed. You could allow the directory by creating a .htaccess file and enter
<Directory yourdirectory>
Order allow,deny
Allow from all
</Directory>
这篇关于HTTP服务器错误403故宫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!