[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] adding SSL to specific directories
- Subject: RE: [cobalt-developers] adding SSL to specific directories
- From: "KAMRY" <kamry1888@xxxxxxxxx>
- Date: Thu Sep 20 10:22:38 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Thomas
Sent: Sat, September 15, 2001 3:55 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] Apache rewrite question
Just resolved this issue, I will share it with the list:
The following gets placed in your .htaccess file in the directory you want
to force https (this also forces all requests blow the directory)
RewriteEngine on
RewriteBase /home/sites/site1/web/test
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}/test/$1 [L,R]
This forces all http requests to https for www.foo.bar/test
Of course you can use the other ways specified in the last few weeks on how
to do this in other ways, but they were being placed in the httpd.conf file
and not .htaccess
-Thomas
----- Original Message -----
From: "Thomas" <tsanders.cobalt@xxxxxxxxxx
To: <cobalt-developers@xxxxxxxxxxxxxxx
Sent: Friday, September 14, 2001 10:20 PM
Subject: [cobalt-developers] Apache rewrite question
I have been using the rewrite directives (listed below) in my httpd.conf
file with great success. BUT, I need to be able to place it into a
.htaccess
file.
As it sits it does not work in .htaccess The idea being that I users can
drop this into an .htaccess file, and I dont have to muck with the
httpd.conf file or worse have the rule disappear later on.
Any ideas?
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/test/(.*)?$ https://%{SERVER_NAME}/test/$1 [L,R]
Thanks in advance.
-Thomas
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of
jale@xxxxxxxxxx
Sent: Thu, September 20, 2001 8:05 PM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] adding SSL to specific directories
To clarify my question - I can bring up my site by entering https://...
But, is there a way to force that, so anyone going to the page is
automatically switched to https.
2nd problem: when I submit data on my form, which works if I just use http:
I get:
CGI-Mailer Response
Error.
An error has occurred while attempting to submit your form
The Error is:
Couldn't get format file: https://www.mysite.com/enter_data.data
The .data file is part of the cgi-mailer - it is a file that contains the
fields the mail form is sending.
Hope this makes sense to someone.
JALE
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com