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).

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

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