File:  [LON-CAPA] / loncom / rewrites / loncapa_rewrite_on.conf
Revision 1.2: download - view: text, annotated - select for diffs
Sat Sep 7 19:58:04 2013 UTC (10 years, 7 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Bug 6662
  - External Resource items in which the remote URL is http:// need to be
    served from port 80, if the LON-CAPA server hosting the session has
    Apache/SSL.

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

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