File:  [LON-CAPA] / loncom / rewrites / loncapa_rewrite_off.conf
Revision 1.1: download - view: text, annotated - select for diffs
Thu May 26 01:05:44 2011 UTC (12 years, 11 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_0_RC1, version_2_10_X, version_2_10_1, version_2_10_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, HEAD, BZ4492-merge, BZ4492-feature_horizontal_radioresponse
- Bug 5925.
- Support for rewriting of http:// to https:// for external web requests
  if mod_ssl and mod_rewrite enabled.  Default is: Rewrite off.

- webserver.piml
  - Update description to accommodate additional distros.
  - Error message generated if Apache config file is missing tailored to
    distro.
  - Compare LON-CAPA config file to rewrite: http:// -> https:// with
    default files (rewrite Off and rewrite On); report if neither matches.

- loncapafiles.lpml
  - Only need /etc/httpd/conf directory for CentOS/Red Hat/SL/Fedora
  - Default files for rewrites Off and rewrites On in loncom/rewrites

- loncapa_apache.conf
  - Include conf/loncapa_rewrite.conf  to support rewrite.

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

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