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.

    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:     RewriteRule (.*) - [L]
    8:     RewriteCond %{REQUEST_URI} ^/adm/annotations$
    9:     RewriteRule (.*) - [L]
   10:     RewriteCond %{REQUEST_URI} ^/public/.*/syllabus$
   11:     RewriteCond %{QUERY_STRING} (^|&)usehttp=1($|&)
   12:     RewriteRule (.*) - [L]
   13:     RewriteCond %{REQUEST_URI} ^/adm/jsMath/
   14:     RewriteRule (.*) - [L]
   15:     RewriteCond %{REQUEST_URI} ^(/adm/wrapper|)/adm/.*/exttool$
   16:     RewriteRule (.*) - [L]
   17:     RewriteCond %{HTTPS} !=on
   18:     RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R,L]
   19:   </IfModule>
   20: </IfModule>

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