File:  [LON-CAPA] / doc / install / linux / sslrewrite.conf
Revision 1.1: download - view: text, annotated - select for diffs
Tue Jul 17 01:59:39 2018 UTC (5 years, 9 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Add config file for Apache/SSL for redirects from https to http for
  default VirtualHost to support mimetex vertical alignment and display of
  external URL in iframe.

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{HTTPS} =on
  RewriteRule ^/adm/wrapper/ext/(?!https:\/\/) http://%{HTTP_HOST}%{REQUEST_URI} [R,L,NE]
  RewriteCond %{REMOTE_ADDR} 127.0.0.1
  RewriteRule (.*) - [L]
  RewriteCond %{REMOTE_ADDR} {[[[[HostIP]]]]}
  RewriteRule (.*) - [L]
  RewriteCond %{REQUEST_URI} ^/public/.*/syllabus$
  RewriteCond %{QUERY_STRING} (^|&)usehttp=1($|&)
  RewriteRule ^/public/.*/syllabus$ http://%{HTTP_HOST}%{REQUEST_URI} [R,L,NE]
</IfModule>

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