How-To Redirect All Directories of oldsite to newsite in htaccess | Here is a quick tip to help redirect an existing old domain url structure to a new domain. Scenario is two domains are both pointed at same server and web root. Need to substitute old domain for new domain and keep all existing URL structure in tack.
Protect WordPress Login with Apache htpasswd and htaccess
Protect Wordpress Login with Apache htpasswd and htaccess | Wordpress login pages left public are a target for brute force attacks or other vulnerabilities. I’ll show you how to keep the Wordpress login protected with Apache htpasswd and htaccess!
Password Protect a Directory in Apache with htpasswd
Password Protect a Directory in Apache with htpasswd | Here is a quick and easy way to password protect a directory in Apache. I use this similar setup to password protect my ownCloud instance!
Log POST data in Apache
Log POST data in Apache | Apache can log all POST data for troubleshooting purposes. I’ll show you how to set this up! First you will need to enabled mod_dumpio. On Ubuntu / Debian enable the module: $ sudo a2enmod dump_io Then add the following and restart apache: $ sudo nano /etc/apache2/apache2.conf LogLevel debug DumpIOInput On DumpIOOutput On DumpIOLogLevel debug
Speed Up Website in Apache by Enabling Compression and Leveraging Browser Caching
Speed Up Website in Apache by Enabling Compression and Leveraging Browser Caching | Google has a cool website to inspect your website for speed improvements. Two of the main areas are leveraging browser caching as well as enabling compression for your website. I’ll show you how to set this up in Apache! Firstly, here is that website. Put in your site for a quick review: https://developers.google.com/speed/pagespeed/insights If you
Configure Apache SSL Cipher Suites for Best Security
Configure Apache SSL Cipher Suites for Best Security | Apache can be configured to use various SSL Cipher suites. For best security, set Apache SSL settings to use only the highest grade security ciphers. It has become common practice to also set the server to prefer an RC4-SHA cipher both for speed (it’s fast!) as well as a fix against the BEAST attack. Google,
How to Redirect a URL in a Virtual Host
How to Redirect a URL in a Virtual Host | Redirecting a URL in a virtual host is a snap! I’ll show you how. Scenario: you have a server that receives example.com but you want that to redirect to example2.com. First you will want to add this to your /etc/apache2/ports.conf (Debian or Ubuntu) or /etc/httpd/conf/httpd.conf (Red Hat or CentOS) if you have not already: NameVirtualHost
How to Generate a Private Key and CSR from Command Line
How to Generate a Private Key and CSR from Command Line | Use the following command to generate a private key and certificate signing request (CSR): $ openssl req -new -newkey rsa:2048 -nodes -keyout server_private.key -out server_csr.csr In the dialog that follows, pay particular attention to the CommonName (CN) indication. If you need a certificate for example.com, use example.com (exactly) as the CN. For example, if you

