Re: [PHP] Files only available via HTTPS

2001-02-09 Thread Chris
And if you can't seperate the root directorys of the secure and not secure servers, you can setup and aliases directory under the secure server and it will be the only one that can see that dir. On Fri, 9 Feb 2001, Daniel Tryba wrote: On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Daniel Tryba
On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote: I have several PHP files that I only want users to be able to access via HTTPS. How can I control that on an Apache 1.3.14 server running on RedHat 7? I have openssl and mod_ssl working fine. Currently, I can access all of the

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Aaron Tuller
HTTPS is set to "on", at least on my Apache when SSL is enabled. it's undefined when it's not. this is what I would do (untested code below): function UsingHTTPS() { $HTTPS = getenv("HTTPS"); return ($HTTPS == "on"); } function UsingHTTP() // might be useful? { return

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Christopher Allen
On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote: I have several PHP files that I only want users to be able to access via HTTPS. One way is to place these files only where the https server can see them. heres an example: IfDefine SSL . . VirtualHost x.x.x.x:443

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Jason Brooke
http://www.modssl.org/docs/2.6/ssl_reference.html#ToC22 jason - Original Message - From: "Daniel Tryba" [EMAIL PROTECTED] To: "Michael Conley" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, February 09, 2001 12:24 PM Subject: Re: [PHP] Files only available

[PHP] Files only available via HTTPS

2001-02-01 Thread Michael Conley
I have several PHP files that I only want users to be able to access via HTTPS. How can I control that on an Apache 1.3.14 server running on RedHat 7? I have openssl and mod_ssl working fine. Currently, I can access all of the files on my site via either http or https. I want to keep certain