httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericdraven <e...@schwagerus.de>
Subject [users@httpd] How to Redirect to https after login?
Date Thu, 29 Oct 2009 10:46:57 GMT

Hello,

I need some expert help on the following configuration task:

I have a startpage with a standard login form. After a user logs in, he
should be 
redirected to use https for the rest of the session.
When I use a rewrite rule as shown below,
RewriteRule ^/login(.*) https://%{SERVER_NAME}/login$1 [R,L]
the parameters get lost, because the request is translated to a GET request.
What do I need to do, to fix this problem?
Many thanx in advance
    Erik

<VirtualHost *:49080>
   ServerName staging.xxx.com
   ServerAlias xxx.com xxx.de 
   DocumentRoot "/xxx/htdocs/"
   DirectoryIndex index.gsp index.html
   CustomLog /weblog/httpd/access.log combined

   # Define error doc when tomcat is down
   ErrorDocument 503 /error/503.html

   # Define the proxy connection to tomcat listening on port 49888
   ProxyRequests Off
   # Define an exception for the path to apache error pages
   ProxyPass /error !
   # Route all requests to tomcat
   ProxyPass / ajp://127.0.0.1:49888/

   # Collection of rewrite rules
   RewriteEngine On

   RewriteRule ^/login(.*) https://%{SERVER_NAME}/login$1 [R,L]
</VirtualHost>

-- 
View this message in context: http://www.nabble.com/How-to-Redirect-to-https-after-login--tp26110773p26110773.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message