I trying to set up an IP based vhost to use SSL for some order forms but
not for the rest of the site. When I turn SSL on, the site only answers
to SSL requests and serves up the server default Apache doc for
everything else on that domain. If I turn SSL off, it answers on port 80
just fine.
Below is my config stuff from httpd.conf. If there is any other info I can
provide, please let me know.
<IfModule mod_ssl.c>
SSLCacheServerPath /usr/local/apache/sbin/ssl_gcache
SSLCacheServerPort /usr/local/apache/var/run/ssl_gcache_port
SSLSessionCacheTimeout 300
SSLLogFile /usr/local/apache/var/log/ssl_misc_log
# we disable SSL globally
SSLDisable
<IfDefine SSL>
<VirtualHost 192.0.0.1:443>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /export/home/user/htdocs
ServerName www.domain.com
LogFormat "%t %h \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
CustomLog var/log/file.log combined
ErrorLog var/log/file-error.log
ScriptAlias /cgi-bin/ /export/home/user/htdocs/cgi-bin/
<Directory /export/home/user/htdocs>
AuthType Basic
AuthName www.domain.com
AuthUserFile /path/to/pass/file.pwd
require valid-user
</Directory>
<Directory /export/home/user/htdocs>
AllowOverride All
Order allow,deny
</Directory>
SSLEnable
SSLCertificateFile /usr/local/apache/etc/ssl.csr/www.domain.com.crt
SSLCertificateKeyFile /usr/local/apache/etc/ssl.csr/www.domain.com.key
SSLVerifyClient none
CustomLog /usr/local/apache/var/log/file_ssl._log "%t %h %{version}c
%{cipher}c %{subjectdn}c %{issuerdn}c \"%r\" %b"
</VirtualHost>
</IfDefine>
</IfModule>
Thanks for taking the time to look this over.
Cheers,
Jeff
Jeff Beard
_____________________________
Systems Administration
McGuckin Hardware
303.443.1832 x646
www.mcguckin.com
Opinions are my own and not yours.
______________________________________________________________________
Apache Interface to SSLeay (mod_ssl) www.engelschall.com/sw/mod_ssl/
Official Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]