General
July 5, 2019, admin, 0
I have added the following to my .htaccess file (password protected) to limit the access to wordpress login pages. ErrorDocument 401 “Unauthorized Access” ErrorDocument 403 “Forbidden” <FilesMatch “wp-login.php”> AuthName “Authorized Only” AuthType Basic AuthUserFile /home/user/.htpasswd require valid-user </FilesMatch> But after the change, the page won’t load, it gave out a infinite loop More
Like this:
Like Loading...
July 26, 2017, admin, 0
To force your website with SSL using htaccess and mod_rewrite, use the following rule in the website’s .htaccess. RewriteEngine On RewriteCond %{HTTP_HOST} ^yourwebsite\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://yourwebsite.com/$1 [R=301,L] If it’s a subdomain, use this. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} sub RewriteRule ^(.*)$ https://yourwebsite.com/sub/$1 [R=301,L] Note: Replace yourwebsite.com with the More
Like this:
Like Loading...
July 21, 2017, admin, 0
To install fann extension in php, make sure that libfann (development version) is installed on your system. If it is not installed, you can install it using yum or apt-get depending on your distro. $ yum install fann-devel Or in Ubnuntu: $ sudo apt-get install libfann-dev This extension is available on PECL. The installation is More
Like this:
Like Loading...
July 20, 2017, admin, 0
You can make use of the Archive plugin in Roundcube to archive old emails. If Roundcube has the Archive plugin installed, a button labelled Archive will appear in the toolbar. This button moves the selected message(s) to the archive folder with one single click. You can configure how the archive folder is organized and divided More
Like this:
Like Loading...
January 4, 2017, admin, 0
If iptables DROP rule is not working in server, use a REJECT rule instead. Even if the rule was added, the incoming traffic was not stopped, I used a REJECT rule instead and it stopped all incoming traffic. $ iptables -I INPUT -s IP_ADDRESS -j REJECT $ service iptables save $ service iptables restart After More
Like this:
Like Loading...