[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Forcing HTTPS for certain parts of a site
- Subject: Re: [cobalt-developers] Forcing HTTPS for certain parts of a site
- From: Ted Behling <TBehling@xxxxxxxxxxxxx>
- Date: Tue Aug 21 18:18:15 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
At 09:28 AM 8/22/01 +0100, Peter Dickson wrote:
>How do I force HTTPS when browsing certain areas of a site? e.g. if I try
>and browse to http://www.domain.com/adminstrate I want the browser to
>automatically go to https://www.domain.com/adminstrate.
Good question. This is probably in the archive, but just add
"SSLRequireSSL" to the directory's .htaccess file. It's a mod_ssl
directive. To do the redirect, add a custom ErrorDocument for code 403
(Forbidden).
--------------------------------------------------------------------------
Ted Behling, Web Application Developer - Monarch Information Systems, Inc.
43 Folly Field Road, Unit 4, Hilton Head Island, SC 29928-5434
E-mail: mailto:TBehling@xxxxxxxxxxxxx
Phone/Fax: 1-800-842-7894 Local or Outside the USA: 1-843-842-7894
Cell Phone (urgent issues): 843-816-7895
Cell Phone E-mail: mailto:TedPhone@xxxxxxxxxxxxx (116 letter limit)
Web site: http://www.MonarchIS.net
--------------------------------------------------------------------------