简体   繁体   中英

Cannot Access Web Page on Apache 2.2 Server

I've made a simple web page for one of my classes, and uploaded it to an Apache server on campus, from which I'm to view and take a screenshot of.

Before trying to view the page I created a sub-directory on the server to put my HTML file. Once the upload was complete, I changed the permissions on the file to -rwx---rx and on the sub-directory folder to drwx---rx .

However, I'm not able to view the page. I keep getting a message saying 403: Forbidden. You do not have sufficient privileges to view this site on this server 403: Forbidden. You do not have sufficient privileges to view this site on this server .

Is there anything else that I need to do to the file and/or folder to be able to view the web page?

Who is the owner and the group of the file?

You probably need to change the file permissions to -rwxr--r-- and directory to drwxr-xr-x

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM