Level 3
#1. Secure Your .env file. DO NOT let it open in public people.
<VirtualHost *:80>
ServerName samadhi.boobamba
ServerAlias samadhi.boobamba
ServerAdmin [email protected]
DocumentRoot /var/www/html/samadhi.boobamba.com/public_html
<Directory /var/www/html/samadhi.boobamba.com/public_html>
Options -Indexes +FollowSymLinks
AllowOverride All
#Disable index view
options -Indexes
#hide a Specifuc File
<Files .env>
order allow,deny
Deny from all
</Files>
</Directory>
ErrorLog /var/www/html/samadhi.boobamba.com/error.log
CustomLog /var/www/html/samadhi.boobamba.com/requests.log combined
</VirtualHost>
#2. Set up SSL Certificate - (Recommended : Branded Cerficiate)