[EMAIL PROTECTED] wrote:
> Is there anybody to tell me : How can i force in the apache configuration file
> the use of a ssl connection for a particular directory without using virtual
> hosts ?
This isn't possible. The directive which switches on SSL functionality
is "SSLEngine on" and this directive works only in the context of the
global server config (so the whole server is SSL) or in a VirtualHost -
you cannot operate it in a Directory, for example.
What is the big problem with having an extra VirtualHost? Something
simple like the following is all you need:
... Main config ..
DocumentRoot /main/document/root
..etc.
Listen 443
<VirtualHost _default_:443>
SSLEngine on
DocumentRoot /special/ssl/directory/path
SSLCertificateFile /home/apache/conf/ssl.crt/my_site.crt
SSLCertificateKeyFile /home/apache/conf/ssl.key/my_site.key
</VirtualHost>
You still need a whole bunch of other SSL directives (check the manual
to see what they do):
<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>
<IfModule mod_ssl.c>
SSLMutex file:/home/apache/logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /home/apache/logs/ssl_engine_log
SSLLogLevel info
</IfModule>
Rgds,
Owen Boyle.
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]