Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: progitto on March 13, 2007, 10:29:44 AM
-
I want to block access from internet to phpmyadmin web interface (https://domain/myadmin), how can I do it?
-
Edit the custom template if you used a contrib to install it.
Or lock the ibay if you installed it in an ibay.
-
I put this in my httpd.conf and it worked for me:
Alias /myadmin /home/e-smith/files/ibays/Primary/myadmin
<Directory "/home/e-smith/files/ibays/Primary/myadmin">
Options Indexes MultiViews
AllowOverride none
order deny,allow
deny from all
allow from 192.168.1.0/255.255.255.0 put.your.IP.here/255.255.255.252
AddType application/x-httpd-php .php
</Directory>
I wanted it to be available from inside the LAN and from home only, and it was (my ISP gives me a 252 subnet).
You could also put it in a secured ibay, couldn't you?
-
Edit /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpmyadminmultialias
Change
allow from all
to
allow from { $localAccess; }
Save
expand the template
restart the web server
Maybe put the template in templates-custom
-
I use contrib from MasterSleepy, I'll check if there is some custom template.
Edit: Thanks William, this is the solution! :pint: