<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
This is not a matter of "request redirection",<br>
but a matter of "url rewriting":<br>
<br>
either you do that at your browser address space, by typing :
<a class="moz-txt-link-rfc2396E" href="https://localhost:9006">"https://localhost:9006"</a><br>
<br>
Or you manage that in your web server, provided that you have
access, eg, to apache conf file:<br>
sometimes rewriting on the server is necessary, but NOT at all in
your case.<br>
<br>
Anyway : for SSL management on 'http" traffic, stunnel is not at all
required on the client side (as SSL support is embedded in any
browser),<br>
but can be added to the SERVER, if your (eg) apache conf misses all
the ssl stuff.<br>
<br>
BUT....remember that http over SSL is NOT https.<br>
<br>
So that, from the server side you have 2 situations :<br>
1/ the web server is HTTP only and YOU added SSL support with
stunnel on the server side :<br>
here the server will only accept <a class="moz-txt-link-rfc2396E" href="http://">"http://"</a> urls.<br>
<br>
2/ the web server is HTTPS, and YOU added (why ?) stunnel on the
client between a browser and your server :<br>
here the server expects "https:" url ...so give it in your browser.<br>
This seems to be your case<br>
<br>
Regards<br>
Pierre<br>
<br>
<br>
<div class="moz-cite-prefix">Le 17/09/2014 18:47, j nasty a écrit :<br>
</div>
<blockquote cite="mid:BAY176-W402C422F584C4B1B766D04B8B60@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">I'm trying to access a web service endpoint using
sTunnel to handle all the SSL traffic. For my other connection
setups this works perfectly fine. But for this one particular
client I'm getting a 400 - Bad Request Error. <br>
<br>
Client Configuration looks like this:<br>
<br>
<i>[Connection1]<br>
client = yes<br>
accept = 127.0.0.1:9006<br>
connect = server.com:443</i><br>
<br>
<br>
Response I get back is:<br>
<br>
<i><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><br>
<html><head><br>
<title>400 Bad Request</title><br>
</head><body><br>
<h1>Bad Request</h1><br>
<p>Your browser sent a request that this server could
not understand.<br /><br>
Reason: You're speaking plain HTTP to an SSL-enabled server
port.<br /><br>
Instead use the HTTPS scheme to access this URL, please.<br
/><br>
<blockquote>Hint: <a
href=<a class="moz-txt-link-rfc2396E" href="https://server.com/">"https://server.com/"</a>><b><a class="moz-txt-link-freetext" href="https://server.com/">https://server.com/</a></b></a></blockquote></p><br>
</body></html></i><br>
<br>
<br>
<br>
Is there a setting configuration I can use so that sTunnel
redirects to <a class="moz-txt-link-freetext" href="https://server.com">https://server.com</a> instead of server.com:443?<br>
<br>
<br>
Thanks in advance,<br>
Jake<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
stunnel-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a>
<a class="moz-txt-link-freetext" href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a>
</pre>
</blockquote>
<br>
</body>
</html>