File:  [LON-CAPA] / loncom / rewrites / loncapa_rewrite_on.conf
Revision 1.4: download - view: text, annotated - select for diffs
Tue Jan 7 20:03:32 2014 UTC (10 years, 3 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0, HEAD
- Bug 6662.
  - jsMath files need to be served using the same protocol as the page
    using them (i.e., http for external resources pointing at http://
    and syllabus pages).

    1: <IfModule mod_ssl.c>
    2:   <IfModule mod_rewrite.c>
    3:     RewriteEngine on
    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:     RewriteRule (.*) - [L]
   12:     RewriteCond %{REQUEST_URI} ^/adm/jsMath/
   13:     RewriteRule (.*) - [L]
   14:     RewriteCond %{HTTPS} !=on
   15:     RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R,L]
   16:   </IfModule>
   17: </IfModule>

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