简体   繁体   中英

Don't have access to index.html on apache?

I'm running Apache/2.2.15 (Red Hat) Server (I think). When I ssh in and run grep apache, there's no output. But...another file (index.php, read below) on the same machine/ip/directory is showing.

I'm actually taking over for someone. Site/pages are kept at /var/www/html. In that directory there are index.php and index.html. I was able to reach both.

I changed index.html to welcome page and uploaded and replaced the old one. When attempting to reach index.html from another computer, I recieve the following:

Forbidden

You don't have permission to access /index.html on this server.

But I can still reach index.php in the same directory. In case it matters, I used 'cp' copy index.html from another directory into /var/www/html.

I'm pretty new to this. Can someone clue me in? Thanks!

Not sure what the problem was but...

When I used a text editor besides text wrangler, it worked.

When I created all the folders on the server and moved the files to the folders individually, it worked.

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