Re: PHP & Apache with SSL

From: Date: Sun, 11 Mar 2001 14:38:45 +0000
Subject: Re: PHP & Apache with SSL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43389@lists.php.net to get a copy of this message
In .htaccess use SSLRequireSSL for AuthType Config and redirect to https using ErrorDocument. Example for www.foo.goo/sec .htacess -------- AuthType Config SSLRequireSSL ErrorDocument 403 https://www.foo.goo/sec Options -Indexes -------- Options directive is not neccessary but I assume that if you want a secure conection then directory listing are not desirable. -Stathis. Daniel B I wrote: > > Hello, > any idea how to limit file access (php files) by > protocol type call? > I mean how could I serve a php file only if it is > called with SSL (https://... not http://...) > I saw this on a site when I was refused because > I didn't use secure protocol, and I wonder, how could > I do that? > Is there a specific statement in apache config file? > > Daniel BI > PS. I know it 's a little bit far of PHP specific this > question, excuse me for that.. maybe you knwow > something about > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#43389) next »