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 (16 months 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).

<IfModule mod_ssl.c>
  <IfModule mod_rewrite.c>
    RewriteEngine off
    RewriteCond %{REMOTE_HOST} 127.0.0.1
    RewriteRule (.*) - [L]
    RewriteCond %{REQUEST_URI} ^/adm/wrapper/ext/(?!https:)
    RewriteCond %{QUERY_STRING} (^|&(amp;|))usehttp=1($|&)
    RewriteRule (.*) - [L]
    RewriteCond %{REQUEST_URI} ^/adm/annotations$
    RewriteRule (.*) - [L]
    RewriteCond %{REQUEST_URI} ^/public/.*/syllabus$
    RewriteCond %{QUERY_STRING} (^|&(amp;|))usehttp=1($|&)
    RewriteRule (.*) - [L]
    RewriteCond %{REQUEST_URI} ^/daxeopen/ [NC]
    RewriteRule (.*) - [L]
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R,L]
  </IfModule>
</IfModule>

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