File:  [LON-CAPA] / loncom / rewrites / loncapa_rewrite_off.conf
Revision 1.3: download - view: text, annotated - select for diffs
Sat Dec 28 03:16:13 2013 UTC (10 years, 4 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Related to bug 6662.
  - Always serve syllabus from non-SSL (i.e., http).
  - Syllabus can be set to point at an external URL, in which case the
    external web page is loaded in an iframe. If the remote URL is
    http://, the syllabus needs to be served from port 80, if the
    LON-CAPA server hosting the session has Apache/SSL (otherwise Firefox
    will block loading of the content in the iframe, by default).
 -  In addition to committed changes in LON-CAPA modules, an appropriate
    RewriteRule is also needed for <VirtualHost _default_:443> (e.g.,
    in /etc/httpd/conf.d/ssl.conf on the LON-CAPA server. (see:
    http://bugs.loncapa.org/show_bug.cgi?id=6662).

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

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