GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-Aug-2008, 03:21
KarlRixon KarlRixon is offline
New Member
 
Join Date: Aug 2008
Posts: 1
KarlRixon is on a distinguished road

Seamlessly Redirect HTTPS Traffic to HTTP


Hi All,

I have a site that receives quite a lot of links from external sites. Some of these links have mistakenly linked to a HTTPS version of the site which has then had some pages indexed. I have a virtual server configured to handle all traffic on port 443.

The issue is the site does not need SSL, there is nothing needing the security.

I have written a rewrite rule which catches all port 443 traffic and redirects it to the http server. However modern browsers still complain about self-signed certificate before the redirect takes place, and this problem is precisely what I am trying to avoid.

The site is for a charity so paying out to externally sign a certificate isnt really an option considering we don't need SSL so can't justify the money. I have now created a robots.txt file which will hopefully prevent any further indexing of https version of the site, but unfortunately the damage has been done already.

Is there a way I can redirect all https traffic received by this virtual server to the standard port 80 server which takes place before the certificate is examined? I'm kind of guessing the answer is no, but I live in hope. If anyone knows of anyway around this issue I'd be grateful to hear from you.

Karl
  #2  
Old 23-Sep-2009, 05:01
april198474 april198474 is offline
New Member
 
Join Date: Sep 2009
Posts: 2
april198474 is an unknown quantity at this point

Re: Seamlessly Redirect HTTPS Traffic to HTTP


Should do for https to http
Quote:RewriteEngine On
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [L,R]

But keep in mind, that anyway all users will get the cert warning if it does not fit a known CA, or it is invalid, or it does not fit the hostname etc. anyway. Only _after_ establishing the ssl conn the rewrite request will be processed.

Also this config needs to be done for every user (afaik you can not set those rewrite rules for all vhosts from a global base?!)
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Systemize, Outsource, and Grow with the Traffic Assistant Program oms3ta Member Announcements, Advertisements & Offers 0 07-Nov-2007 18:30
http request Problem using tomcat - axis & BCB Mario C++ Forum 0 01-Nov-2007 02:53
You are interested what is other sites web traffic? Try this ! webRanker.info Member Announcements, Advertisements & Offers 0 06-Aug-2006 10:31
You are interested what is other sites web traffic? Try this ! webRanker.info Member Announcements, Advertisements & Offers 0 09-Jul-2006 09:34

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:37.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.