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 (13 years 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.

<IfModule mod_ssl.c>
  <IfModule mod_rewrite.c>
    RewriteEngine off
    RewriteCond %{REMOTE_HOST} 127.0.0.1
    RewriteRule (.*) - [L]
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R,L]
  </IfModule>
</IfModule>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.