httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lex.kem...@achmea.nl
Subject [users@httpd] Betreft: Re: [users@httpd] redirecting from http to https
Date Thu, 26 Aug 2004 10:56:48 GMT




Hi,

The follwing is an excerpt of one of our configurations.
It's based upon the assumption that a secure part needs 'secure' in it's
URL, and after that
a non-secure part needs 'nsecure' in the URL to switch back to http again.
Hope it's inspiring (and of course, if anyone notices somthing strange let
me know!).
Greetings.

NameVirtualHost 11.22.33.44:80
Listen 11.22.33.44:80
<VirtualHost 11.22.33.44:80>
    ServerName ontw.mysite.nl
    RewriteEngine on
    RewriteRule ^/$ /index.jsp [R,L]
    RewriteRule ^/secure(/.*)?$ https://ontw.mysite.nl$1 [R,L]
    <Location />
        WebLogicHost myhostmachine
        WebLogicPort 7037
        SetHandler weblogic-handler
        PathTrim /nsecure
        ErrorPage http://ontw.mysite.nl/storing/storing.html
    </Location>
</VirtualHost>
Listen 11.22.33.44:443
<VirtualHost 11.22.33.44:443>
    DocumentRoot /mypath/docroot
    RewriteEngine on
    RewriteRule ^/$ /index.html
    RewriteRule ^/nsecure(/.*)?$ http://ontw.mysite.nl$1 [R,L]
    <Location /mysite/>
        WebLogicHost myhostmachine
        WebLogicPort 7037
        PathTrim /secure
        SetHandler weblogic-handler
    </Location>
</VirtualHost>



********************* DISCLAIMER *********************
De informatie in dit e-mail bericht is uitsluitend
bestemd voor de geadresseerde. Verstrekking aan
en gebruik door anderen is niet toegestaan.
Door de electronische verzending van het bericht
kunnen er geen rechten worden ontleend aan de
informatie.
************************************************************


---------------------------------------------------------------------
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