Hi
I have been using cyberpanel from quite some time but after recent updates, I am facing a unusual problem.
I would like to disable direct access to .env file of my laravel based application. I have added below rules in my .htacess file at the end.
location = /robots.txt { access_log drops; log_not_found off; }
location = /favicon.ico { access_log drops; log_not_found off; }
location ~ /\. { access_log denied; log_not_found off; deny all; }
location ~ ~$ { access_log denied; log_not_found off; deny all; }
Disable index view
Options -Indexes
Order allow,deny Deny from allYet everytime I try to access the .env file by visiting Website Domain Names, Online Stores & Hosting - Domain.com
I am able to download the .env file which contains vital info which should not be available to public.
I would like to know if their is some special configuration needed for apache & litespeed here.
Hopefully @CyberPanel @usmannasir you can help out with this.
Thanks.