How to get apache to recognize hidden files like .env?

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
UANick
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Dec 15, 2017 5:09 pm

How to get apache to recognize hidden files like .env?

Post by UANick »

I am having trouble.

I uploaded my files and apache is not recognizing my hidden database files like .env.

Apache needs to recognize the dot files like .env which contains all the database info and stuff and it doesn't seem to be recognized by Apache atm.

How can i do this?

I am using a 6 core VDS
User avatar
Edge100x
Founder
Founder
Posts: 13109
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to get apache to recognize hidden files like .env?

Post by Edge100x »

When you say "recognize," what do you mean? Do you want these to show up in its auto-generated index page, or something else?

If a file contains your database information, you should generally want it to be ignored by Apache, and only read by your own scripts.
Post Reply