A
A
Archakov Dennis2016-06-17 20:39:32
Laravel
Archakov Dennis, 2016-06-17 20:39:32

Laravel how to prevent opening .env file by link?

Just an emergency. I was surprised when I saw that you can open the .env file using the link site.ru/.env
How to deny access? Maybe I'm uploading the project wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Semenko, 2016-06-17
@archakov06

You need to make the public folder the root.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question