wok rev 3617

ajaxterm: fix apache rewrite rule
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 30 15:57:04 2009 +0200 (2009-06-30)
parents 1ad832186b42
children 84b5d08255f2
files ajaxterm/receipt
line diff
     1.1 --- a/ajaxterm/receipt	Tue Jun 30 14:58:15 2009 +0200
     1.2 +++ b/ajaxterm/receipt	Tue Jun 30 15:57:04 2009 +0200
     1.3 @@ -72,11 +72,13 @@
     1.4      ProxyPassReverse /ajaxterm/ http://localhost:8022/
     1.5  </IfModule>
     1.6  
     1.7 -<IfModule mod_rewrite.c>
     1.8 -     RewriteEngine On
     1.9 -     RewriteCond %{SERVER_PORT}      !^443$
    1.10 -     RewriteRule ^/ajaxterm      https://%{SERVER_NAME}/ajaxterm/ [L,R=303]
    1.11 -</IfModule>
    1.12 +<LocationMatch ^/ajaxterm>
    1.13 +     <IfModule mod_rewrite.c>
    1.14 +         RewriteEngine On
    1.15 +         RewriteCond   %{HTTPS}  off
    1.16 +         RewriteRule   ^.*$      https://%{SERVER_NAME}/ajaxterm/ [L,R=303]
    1.17 +     </IfModule>
    1.18 +</LocationMatch>
    1.19  EOT
    1.20  			if [ -z "$1" ]; then
    1.21  				# Start Web server.