File:  [LON-CAPA] / loncom / rewrites / loncapa_rewrite_off.conf
Revision 1.9: download - view: text, annotated - select for diffs
Thu Aug 24 21:25:25 2023 UTC (8 months, 2 weeks ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, HEAD
- Support image preview in Daxe pop-up window in case where mod_ssl is
  enabled, but rewrites from https to https are disabled, and browser
  does not accept server's Apache/SSL certificate (e.g., self-signed or
  expired).

    1: <IfModule mod_ssl.c>
    2:   <IfModule mod_rewrite.c>
    3:     RewriteEngine off
    4:     RewriteCond %{REMOTE_HOST} 127.0.0.1
    5:     RewriteRule (.*) - [L]
    6:     RewriteCond %{REQUEST_URI} ^/adm/wrapper/ext/(?!https:)
    7:     RewriteCond %{QUERY_STRING} (^|&(amp;|))usehttp=1($|&)
    8:     RewriteRule (.*) - [L]
    9:     RewriteCond %{REQUEST_URI} ^/adm/annotations$
   10:     RewriteRule (.*) - [L]
   11:     RewriteCond %{REQUEST_URI} ^/public/.*/syllabus$
   12:     RewriteCond %{QUERY_STRING} (^|&(amp;|))usehttp=1($|&)
   13:     RewriteRule (.*) - [L]
   14:     RewriteCond %{REQUEST_URI} ^/daxeopen/ [NC]
   15:     RewriteRule (.*) - [L]
   16:     RewriteCond %{HTTPS} !=on
   17:     RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R,L]
   18:   </IfModule>
   19: </IfModule>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>