Re[4]: HTTPS variable is missing

2004-03-02 Thread Alvaro Gonzalez
*** Merton Campbell Crockett escribió/wrote (01/03/2004 17:26 -0800 (PST)):
 The IfDevine HAVE_SSL is related to an apachectl option.  The following
 command starts Apache with SSL enabled.

   apachectl startssl

Actually, I've never paid too much attention to Apache startup since I
prefer to user the System V init scripts (/etc/init.d/httpd start and the
like) so I don't know whtere -DSSL is used. Facts are:

* mod_ssl is installed (RPM prebuilt package)
* SSL does work
* IfDefine HAVE_SSL is false

Maybe there are things man must not know ;-)


P.S. Am I the only one who doesn't receive list messages via e-amil and has
to read them through web interface?

-- 
Á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]


HTTPS variable is missing

2004-03-01 Thread Alvaro Gonzalez
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]


Re[2]: HTTPS variable is missing

2004-03-01 Thread Alvaro Gonzalez
*** John Airey escribió/wrote (01/03/2004 13:01 - ):
 IfDefine HAVE_SSL
 SSLEngine on
[...]
 /IfDefine

 I'd suggest that you lose the IfDefine lines.

Oh my... It was only that... After removing these lines the behaviour
turned into the expected one. I can't believe I've spent so many weeks
looking for the problem...

Thanks a lot for your help. You've been really really helpful.


-- 
Á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]