Wayne Li wrote:
> My question is, how can restrict a directory/file to be only accessed by
> https, and others by http?
Think of the SSL server as a distinct VirtualHost so make sure the
content directories don't overlap. E.g something like:
HTTP virtual host:
DocumentRoot /home/user/html/plain_HTTP
SSL virtual host:
DocumentRoot /home/user/html/ssl_stuff
If you must have SSL stuff under the HTTP DocumentRoot then use:
<Directory /home/user/html/ssl_stuff/>
SSLRequireSSL
</Directory>
Rgds,
Owen Boyle
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]