KB Knowledge Base
Settings
Designed and coded by Kevin Wilson 2025

Article Details

Review the content, attachments, and feedback.

Secure Apache from .env access

Kevin
Aug 26, 2025
23 views
kb176232
No rating yet

this will block all access by ip address

cd /etc/apache2/sites-available

Add following to 000-default.conf

 

    

 

sudo a2ensite 000-default.conf

sudo systemctl apache2 restart

 

Add following to /etc/apache2/apache.conf


sudo systemctl apache2 restart

Rate & Comment

Latest Comments

No comments yet.