This forum is no longer active. Please post your questions to our new community site

Forums WAMPStack

Disabling access from network

Subscribe to Disabling access from network 2 post(s), 2 voice(s)

 
Avatar Murat Tepegoz 1 post

Dear bitnami developers,
I appreciate your work. It is really nice to try famous software with a few clicks.

What I want to ask is this: Is it possible to disable access of bitnami stacks from other computers? That is, I want to limit the access from localhost only, not any other computer. This is possible by old-school .htacces file for apache, but is it possible to disable all the stacks at once?

Regards

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

I think that the most easy solution is through .htaccess or set in the apache conf file. You can modify the apps/<application>/conf/<application>.conf file to only access from 127.0.0.1. phpMyAdmin is an example of this configuration.


Alias /phpmyadmin "/home/user/lampstack/apps/phpmyadmin/htdocs" 

<Directory "/home/user/lampstack/apps/phpmyadmin/htdocs">
AuthType Basic
AuthName phpMyAdmin
AuthUserFile "/home/user/lampstack/apache2/users" 
Require valid-user
Order allow,deny
Allow from 127.0.0.1
Satisfy all
ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname" 
</Directory>

I hope it helps.

Forums WAMPStack