WordPress: Redirect HTTP to HTTPS in Apache

To redirect all of your HTTP traffic to HTTPS on WordPress installations using an Apache web server, add the following code to your .htaccess file. This is the recommended method for redirecting WordPress running on Apache. /path/to/your/wordpress/installation/.htaccess RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.url.com/$1 [R=301,L] This should begin to work immediately.

read more

Apache Modules

I seem to always forget this command when I need it every 6-9 months, so here it is for my easy access: List all the loaded modules in apache (both DSO and Static) apachectl -t -D DUMP_MODULES

read more

When Tomcat stops responding to Apache

Today our multi-node tomcat servers became unresponsive to user/web traffic.  A quick look at our monitoring tools indicated that the tomcat servers were running healthily.  While the application administrator looked at catalina.out to see if we were missing something, I dug into the load balancer logs.  I immediately saw the following errors: [Date] [error] ajp_read_header: […]

read more

Apache-Tomcat VHost redirection

OK this isn’t rocket science however I thought it worth documenting since I will probably forget in 6 months to a year when asked to do this again. The Situation: Tomcat running with an Apache front-end using AJP to pass all traffic through to Tomcat after authenticating against CAS. The Problem: The tomcat application did […]

read more

Configuring Apache to Redirect All Traffic to One Local URL

GOAL You want to redirect all requests to your web server to a single page on the server. PROBLEM Note that redirection to an entirely different server is trivial with RedirectMatch. You can redirect all traffic to http://my-server.org to http://other-server.org … Continue reading

read more

HTTP to HTTPS

If you want to force all of your site traffic to use HTTPS or a specific part of your website, here is how to do it: Whole SIte : RewriteEngine On # This will enable the Rewrite capabilities RewriteCond %{HTTPS} !=on # This checks to make sure the connection is not already HTTPS RewriteRule ^/?(.*) […]

read more