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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]