Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 48472  / 2 Years ago, wed, april 20, 2022, 4:00:30

I have installed Apache server in my system running Ubuntu 14.04. When I type localhost or my IP address in the browser, it is displaying the Apache page. Instead of that page, I need to list the contents (folder/files) in /var/www directory. How do I configure it?


More From » 14.04

 Answers
6

You have to delete all files that have an index in der name. For example index.html or index.php. Because the webserver looks for this files and when it finds some he displays the site instead of the folder.
And I think in the newer versions of Apache the main site is in /var/www/html. So delete the file /var/www/html/index.html.



I hope this helps..


[#24036] Thursday, April 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
torlim

Total Points: 408
Total Questions: 113
Total Answers: 110

Location: Estonia
Member since Wed, May 27, 2020
4 Years ago
torlim questions
;