Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
196 views
in Technique[技术] by (71.8m points)

apache - HTTP Server Error 403. Forbidden

I am getting the following error:

Forbidden: You don't have permission to access [directory] on this server.

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.

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

Or completely change the owner with

sudo chown -R user /var/www/folder


2.
Look into the apache configuration files and also the .htaccess, if the directory is blocked by
Deny from all

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>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...