[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [cobalt-users] How to force httpS for a directory--RaQ4



Thsi was posted several weeks before:

> Is there any way to make this work for a sub-directory of a site i.e.
> /home/sites/siteX/web/secure  I have a customer who is concerned that his
> 'secure form' can also be access via http and security goes out of the
> window.  I tried doing the change but get an internal server
> error but then
> I tried it on the main site as well and got an internal server error.
>
> Anyone know what's wrong?
>
> Thanks
>
> Gavin
>

Hi Gavin,

I have PHP installed which lets you easily force any page to be accessed via
SLL. Just add the following PHP to the top of each page you want to be
accessed only via SSL.

<?
  if($SERVER_PORT != "443")
  {
    header("Location: https://"; . $HTTP_HOST);
    exit;
  }
?>

Change 443 to whatever port SSL is using on your RAQ but this is the default
so if you havn't tinckered too much with your server then this should work
straight off.

If nothing else, it's a good reason to set PHP up on your box :-)

Thanks,
Steven


Mit freundlichen Gru?en,

Thorsten Norman Mitschele
Geschaftsfuhrer

----------------------------------------------
CMO Internet Dienstleistungen GmbH
Postfach 13 35          72577 Dettingen / Erms
Tel: 07123 / 72 67-0    Fax: 07123 / 72 67-150
e-Mail: info@xxxxxx     Web: http://www.cmo.de


> -----Ursprungliche Nachricht-----
> Von: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]Im Auftrag von Jeff Lasman
> Gesendet: Dienstag, 29. Januar 2002 09:37
> An: cobalt-users@xxxxxxxxxxxxxxx
> Betreff: Re: [cobalt-users] How to force httpS for a directory--RaQ4
>
>
> mpp1031@xxxxxxxxxxx wrote:
>
> > I'd like to know how to force https for a certain directory or
> directories,
> > and/or if possible, force https for only specific HTML documents.  Also,
> > related to this, I also need to have certain directories do user
> > authentication (also via https).  Anybody got a clue?
>
> This has been answered several times bofore. In fact this has been
> answered several times before within the last week.
>
> Use a refresh.
>
> Jeff
> --
> Jeff Lasman <jblists@xxxxxxxxxxxxx>
> Linux and Cobalt/Sun/RaQ Consulting
> nobaloney.net
> P. O. Box 52672, Riverside, CA  92517
> voice: (909) 778-9980  *  fax: (702) 548-9484
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>