Nov
24
2009
Apache Rewrite: Do Not Redirect For A Certain Port Using RewriteCond
Posted by alex in InsightsThis seems to be the week of the Rewrite Engine for me as this is the second semi unique modification I have needed to make to one of our servers rewrite rule sets. This time we have a site where all traffic destined for HTTP is redirected to HTTPS via the LiteSpeed Rewrite Engine. Currently there are no exceptions to this rule on the server except if you are already visiting HTTPS you obviously do not get redirected to HTTPS. So a description of the project along with the necessary syntax to exclude certain ports from your rewrite rule set are below.
Tags: 3000, 3001, 3002, 3003, apache, gem, Litespeed, mongrel, ports, redirect, REQUEST_URI, rewrite engine, rewrite rules, ReWriteCond, RewriteRule, ruby-debug, SERVER_NAME, SERVER_PORT








Entries (RSS)