Basically what goes on when the user types in https://mydomain.com/lsw
he gets an authentification page from the backend application. Once he
enters his credentials, I notice a POST in the apache logs.
This is what the user types in:
https://mydomain.com/lsw/clientele/gen/authentification.jsp
he enters his credentials, then a POST appears in the log :
POST /lsw/clientele/gen/authentification.jsp HTTP/1.1" 302
and in the browser I get the following: The connection has timed out
http://backend2.ca/lsw/clientele/ses/pagePersonnelle.jsp?Mouftah=VXV744A9SVZMU9P
the above link doesn't work because its http rather than https!!
If I add the "s" manually
https://backend2.ca/lsw/clientele/ses/pagePersonnelle.jsp?Mouftah=VXV744A9SVZMU9P
then it works.
1)So how can I force the protocole to remain https once the client
does a POST.....
2)I have noticed in many examples that people use PreserveHost on, in
my case, if activate
PreserveHost on then I cant even get the first page to work:
Thx in advance
On Wed, Apr 21, 2010 at 4:56 AM, Krist van Besien
<krist.vanbesien@xxxxxxxxx> wrote:
> On Tue, Apr 20, 2010 at 6:41 PM, GB GB <gbcyoyo@xxxxxxxxx> wrote:
>
>
>
>> #this for some reason becomes http from client perspective
>> #PreserveHost on does not work with lsw, so I disabled it....
>> RewriteRule ^/lsw(.*)$ http://backend2.ca:8082/lsw$1 [NC,P,L]
>> ProxyPassReverse /lsw http://backend2.ca:8082/lsw
>> Redirect permanent /lsw https://mydomain.com/lsw
>
> First of all: Remove the "Redirect Permanent". It's not needed (as
> this virtualhost only gets https requests anyway) and confuses. If you
> want to make sure that people who accidentaly land on the http site
> get redirected to https you need to put a redirect in the http virtual
> host.
>
> Secondly: Look at what your backend produces. It is very well possible
> that it passes html pages back to the client that contain http://
> style URLs. RewriteRule only operates on request URLs,
> ProxyPassReverse only on redirects passed back. The content passed
> back by the backend is not modified.
>
> HTH,
>
> Krist
>
> --
> krist.vanbesien@xxxxxxxxx
> krist@xxxxxxxxxxxxx
> Bremgarten b. Bern, Switzerland
> --
> A: It reverses the normal flow of conversation.
> Q: What's wrong with top-posting?
> A: Top-posting.
> Q: What's the biggest scourge on plain text email discussions?
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx