Return to loncapa_rewrite_off.conf CVS log | Up to [LON-CAPA] / loncom / rewrites |
- 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>