Authentication with .htpasswd On Mac OS X
Posted by Cătălin on Mon, 1 Jun 2015Authentication with .htpasswd On Mac OS X
Open Terminal and type: $ htpasswd -c /www/domain.com/.htpasswd yourusername After running the command it will ask for your password. Create a .htaccess file at the directory you want to...
Read More...code
Apache mod_rewrite
Posted by Cătălin on Wed, 27 May 2015Apache mod_rewrite
How to redirect domain URL path to main domain: Force Non-www Domain Access RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?example\.com)$ [NC] RewriteRule .? http://%1%{REQUEST_URI}...
Read More...code
Remove IP from firewall
Posted by Cătălin on Mon, 4 May 2015Remove IP from firewall
Check if IP is blocked by firewall: iptables -L -v -n | grep 1.2.3.4 Response: 7769 409K DROP all -- * * 1.2.3.4 0.0.0.0/0 Find chain with: iptables -L -n |...
Read More...code
How Uninstall Attracta in WHM
Posted by Cătălin on Tue, 28 Apr 2015How Uninstall Attracta in WHM
You can run below script as root. It disables all traces of Attracta from the server. /usr/local/cpanel/3rdparty/attracta/scripts/uninstall-attracta
Read More...code
Secure connection failed in Webmin
Posted by Cătălin on Tue, 2 Dec 2014Secure connection failed in Webmin
How to bypass the “secure connection failed” warning in Firefox 33 Firefox 33 no longer supports keys less than 1024 bits You can fix this right from Webmin if you: use another browser that...
Read More...code
Find and remove IP blocked in Linux
Posted by Cătălin on Mon, 6 Oct 2014Find and remove IP blocked in Linux
Find: iptables -L -n | grep 63.227.119.xx DROP all -- 63.227.119.xx 0.0.0.0/0 DROP all -- 63.227.119.xx 0.0.0.0/0 Remove iptables -D fail2ban-SSH -s 63.227...
Read More...code