[LON-CAPA-cvs] cvs: doc /install/linux sslrewrite.conf

raeburn raeburn at source.lon-capa.org
Mon Jul 16 21:59:39 EDT 2018


raeburn		Tue Jul 17 01:59:39 2018 EDT

  Added files:                 
    /doc/install/linux	sslrewrite.conf 
  Log:
  - 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. 
  
  

Index: doc/install/linux/sslrewrite.conf
+++ doc/install/linux/sslrewrite.conf
<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>




More information about the LON-CAPA-cvs mailing list