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).
<IfModule mod_ssl.c> <IfModule mod_rewrite.c> RewriteEngine off 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>