I have a Red Hat 9 server running Apache 2.0.40 + mod_ssl with several name
based virtual hosts. One of the sites works under http and https.
Apparently everything goes fine (browser claims page is encryped when
loading https and not encrypted when loading http) but I just can't find
the HTTPS environmental variable anywhere. It is there for main site
(https://<ip_address>) but not for my virtual host.

I have access to two other linux boxes (Red Hat 7.3 with Apache 1.x and a
Mandrake with Apache 2.x) and that same config works just fine: HTTPS=on
when using SSL (no matter the host) and I can also access the rest of SSL_*
variables if I add "SSLOptions +StdEnvVars" to config file (which doesn't
work either in the Red Hat 9 server). Of course there's probably a
difference somewhere (servers aren't identical) but I just can't find it. I
understand I can only use one certificate for one IP-port combination but I
don't mind browser warnings about that; as I said, that works fine in my
other linux boxes.

I've left most default options at "httpd.conf". I only added some virtual
hosts:


<VirtualHost *:80>
        DocumentRoot /home/site/htdocs
        ServerName www.site.com
        ErrorLog logs/site.com_error_log
        CustomLog logs/site.com_access_log combined
        <Directory /home/site/htdocs>
                AllowOverride All
                Options FollowSymLinks
        </Directory>
</VirtualHost>
<VirtualHost *:443>
        DocumentRoot /home/site/htdocs
        ServerName www.site.com
        ErrorLog logs/site.com_error_log
        CustomLog logs/site.com_access_log combined
        <Directory /home/site/htdocs>
                AllowOverride All
                Options FollowSymLinks
        </Directory>
        <IfDefine HAVE_SSL>
                SSLEngine on
                SSLCertificateFile /etc/httpd/conf/ssl.crt/www.site.com.crt
                SSLCertificateKeyFile /etc/httpd/conf/ssl.key/www.site.com.key
        </IfDefine>
</VirtualHost>


Sorry if this has been asked before; I've done my best in Google, Google
Groups, modssl.org and list archives but I couldn't find anyone with the
same problem. Thank you in advance,


-- 
Álvaro González Vicario
Tele Computer, S.L.
Burgos (Spain) 


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to