File:  [LON-CAPA] / loncom / rewrites / loncapa_rewrite_off.conf
Revision 1.6: download - view: text, annotated - select for diffs
Sat Feb 18 23:39:19 2017 UTC (7 years, 2 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Append ?usehttp=1 to link to syllabus where LON-CAPA syllabus is configured
  to use external http:// URL, but LON-CAPA server uses https:// to avoid
  mixed active content issue (see also bug 6662).
- Preview of external http:// URL displayed in separate pop-up window
  instead of in modal window on https:// server.

<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:)
    RewriteRule (.*) - [L]
    RewriteCond %{REQUEST_URI} ^/adm/annotations$
    RewriteRule (.*) - [L]
    RewriteCond %{REQUEST_URI} ^/public/.*/syllabus$
    RewriteCond %{QUERY_STRING} (^|&)usehttp=1($|&)
    RewriteRule (.*) - [L]
    RewriteCond %{REQUEST_URI} ^/adm/jsMath/
    RewriteRule (.*) - [L]
    RewriteCond %{REQUEST_URI} ^(/adm/wrapper|)/adm/.*/exttool$
    RewriteRule (.*) - [L]
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R,L]
  </IfModule>
</IfModule>

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