ip restricted round cube and squirell mail webmails

blackmetal

Verified User
Joined
Jul 22, 2007
Messages
80
Hello,
how can i ip restricted roundcube and squirellmail webmails in directadmin?
i want only specify ips can login to webmails,
thanks,
 
I think you should create a .htaccess file in your roundcube / squirrelmail folder, with then some Directory and Allow, Deny options (see apache manual for this).

regards,
Stijn
 
Hello,
how can i ip restricted roundcube and squirellmail webmails in directadmin?
i want only specify ips can login to webmails,
thanks,


You could add

Code:
<Directory "/var/www/html/roundcube">
    Order deny,allow
    Deny from all
    Allow from aaa.bbb.ccc.ddd
</Directory>

and

Code:
<Directory "/var/www/html/squirellmail">
    Order deny,allow
    Deny from all
    Allow from aaa.bbb.ccc.ddd
</Directory>

into /etc/httpd/conf/extra/httpd-includes.conf
 
I would just put it in .htaccess in /var/www/html since /etc/httpd/conf/extra/httpd-includes.conf would get overwritten when you run ./build rewrite_confs I have lost so many custom changes from this command.
 
If you only need to add extra Apache config code to the system, but don't need to remove any existing code, the best way is to add your changes to:

Code:
/etc/httpd/conf/extra/httpd-includes.conf
as this file will not be touched by CustomBuild or DirectAdmin. If it doesn't exist, DA will 'touch' it so that it exists, but any changes you add there will be safe from any external changes

http://help.directadmin.com/item.php?id=351
 
Back
Top