Re: Bad request when users goto http://www.mydomain.com:443

This is a discussion on Re: Bad request when users goto http://www.mydomain.com:443 within the Modssl Users forums, part of the Web Server and Related Forums category; Possibly use a RewriteRule or something of the sort?=0A=0ARewriteEngine On= =0ARewriteCond %{HTTP_HOST} .=0ARewriteCond %{HTTP_HOST} ^www\.mydomain\.co= m$=...


Go Back   Usenet Forums > Web Server and Related Forums > Modssl Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-31-2008
Glyn Astill
 
Posts: n/a
Default Re: Bad request when users goto http://www.mydomain.com:443

Possibly use a RewriteRule or something of the sort?=0A=0ARewriteEngine On=
=0ARewriteCond %{HTTP_HOST} .=0ARewriteCond %{HTTP_HOST} ^www\.mydomain\.co=
m$=0ARewriteCond %{SERVER_PORT} ^443$=0ARewriteRule ^(.*) https://www.mydom=
ain.com/$1 [R=3D301,L]=0A=0AI've not tested that, and I doub't it's spot on=
but hopefully it's the right direction...=0A=0A----- Original Message ----=
=0A> From: Dean Pullen <dean.pullen@msp-uk.com>=0A> To: modssl-users@modssl=
...org=0A> Sent: Monday, 31 March, 2008 5:34:38 PM=0A> Subject: Bad request w=
hen users goto http://www.mydomain.com:443=0A> =0A> We get the following er=
ror:=0A> =0A> Bad Request=0A> =0A> Your browser sent a request that this se=
rver could not understand.=0A> Reason: You're speaking plain HTTP to an SSL=
-enabled server port.=0A> Instead use the HTTPS scheme to access this URL, =
please.=0A> =0A> Hint: https://www.mydomain.com/=0A> =0A> When users go=
to http//www.mydomain.com:443 - which we obviously need to=0A> catch and r=
edirect to https://www.mydomain.com =0A> =0A> What's the best way of achiev=
ing this?=0A> =0A> We have two virtual hosts setup one on port 80 (which is=
already=0A> redirecting http traffic on port 80 to https on port 443) and =
one on=0A> 443. =0A> __________________________________________________ ____=
________________=0A> Apache Interface to OpenSSL (mod_ssl) =
www.modssl.org=0A> User Support Mailing List modssl-=
users@modssl.org=0A> Automated List Manager majo=
rdomo@modssl.org=0A> =0A=0A=0A=0A=0A _________________________________=
_________________________=0ASent from Yahoo! Mail.=0AA Smarter Inbox http:/=
/uk.docs.yahoo.com/nowyoucan.html

__________________________________________________ ____________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:54 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0