File:  [LON-CAPA] / loncom / rewrites / loncapa_rewrite_off.conf
Revision 1.2: download - view: text, annotated - select for diffs
Sat Sep 7 19:58:04 2013 UTC (10 years, 8 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).

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

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