0

On a Centos-6 machine, I setup Apache web server and the default folder is /var/www/html. In the presence of an empty index.html, by entering the machine's IP address into the browser, I see the blank white screen. That mean, the web server is working.

As I put a file for download, the problem is when I enter the IP address of the machine, I still see the blank while page. I expect to see a tree like structure like this.

How can I fix it?

3
  • mod_autoindex
    – HBruijn
    May 1, 2016 at 9:51
  • I saw that, but which one is needed for my problem? It is very lengthy and comprehensive
    – mahmood
    May 1, 2016 at 10:00
  • That is why the page comes with a Summary ...
    – HBruijn
    May 1, 2016 at 10:04

1 Answer 1

1

You have to remove the index.html file (or rename it to something that don't end with .html or .php). You could also create a new sub directory in /var/www/html, called download (just for an example), and then browse to it with http://ip-address/download/.

3
  • With the solution you gave, I see the default's Apache test page!!
    – mahmood
    May 1, 2016 at 9:59
  • I updated my answer, try creating a sub directory instead.
    – krt
    May 1, 2016 at 10:06
  • That only works when the Options directive already inlcudes +Indexes .
    – HBruijn
    May 1, 2016 at 10:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .