简体   繁体   中英

Cant access website/images under /var/www/

About a year ago I placed some media and some web pages under my

/var/www/

on my server(I am using ubuntu-server). I was able to access these web pages by going to

http://myipaddressgoedhere/pagename

recently, I have a need to store media in a folder in

/var/www/images

when I went to go see if I could still access these web pages store under

/var/www/
I am unable to hit any of the web pages.

I dont remember changing anything that would allow me not to see .html files in this directory.

Am I doing something wrong?

First check the obvious things:

  1. Is (i assume) httpd running? Can you access any pages at all or some pages but not others.
  2. Are the files still where you left them, have they been moved or deleted?
  3. Check the rights of the files and ensure that apache can load them?

Check if the dates on any of your .htaccess files have changed (there may be one in each directory) and remember filenames starting with . are hidden in ubuntu by default.

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