Re: Files only available via HTTPS
| From: | Christopher Allen | Date: | Fri, 09 Feb 2001 02:47:58 +0000 |
| Subject: | Re: Files only available via HTTPS | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38877@lists.php.net to get a copy of this message | ||
> 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>
DocumentRoot "/secure/secure_dir1"
ServerName server.xxx.net
....
</VirtualHost>
Of course if your non secure server knows about /secure/ its still possible
for someone to see them. In this example use diff doc_roots.