SSL

From OCF Help

Revision as of 05:14, 21 February 2009 by Sle (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The OCF web server supports Secure Sockets Layer (SSL) encryption through the secure.ocf.berkeley.edu hostname.

Requiring SSL for a Directory

You can use mod_rewrite to make SSL security mandatory for access to a directory in your web space. Place the following lines in a .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^secure(.*) https://secure.ocf.berkeley.edu/~username/secure$1 [R,L]

where secure is the name of the directory and username is your username.

See Also