A
A
Anton_volkov2018-01-25 21:51:05
LAMP
Anton_volkov, 2018-01-25 21:51:05

Doesn't show index.html in lamp?

Installed apache2 mysql php, configured. In the browser I enter localhost - it shows index.html. In Apache, I created the site test.local and put index.html there. In the browser I enter test.local - page Forbidden
You don't have permission to access / on this server. In the browser I enter test.local/index.html - it shows the page normally. (p.s. there is no .htaccess in localhost )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Twelfth Doctor, 2018-01-25
@Anton_volkov

Is there a DirectoryIndex directive in the Apache config?
If not, then you need to insert DirectoryIndex index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question