Apache Server configuration support - Troubleshooting mod_ssl

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2004 > Troubleshooting mod_ssl





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Troubleshooting mod_ssl
Alvaro G. Vicario

2004-02-25, 5:33 pm

Red Hat 9 with Apache + mod_ssl (version 2.0.40) and several name based
virtual hosts. Actually, I copied most of the config from an old Red Hat
7.3 server running Apache 1.x, where it worked just fine.

Apparently, everything goes fine. I can load both http://www.site.com and
https://www.site.com and I get the expected browser messages about
encrypted pages. Also, browser's security info claims the page claims
connection is encrypted using "High-grade Encryption (AES-256 256 bit)".

Weird stuff appears when I use php to check and manage server variables.
The HTTPS variable I was familiar to in Apache 1 is no longer available.
SERVER_PORT=80 both in http://www.site.com and https://www.site.com and
SERVER_SIGNATURE="<address>Apache/2.0.40 Server at www.fullhardware.com
Port 80</address>". If I load https://www.site.com:443 then SERVER_PORT=443
but HTTPS is still missing.

1) There is something wrong, isn't it?

2) It isn't just a php issue, is it?

3) Should I expect a HTTPS=on when using SSL under Apache 2.x?

4) Why SERVER_PORT=80 when using SSL in a VirtualHost that definitively
goes through 443 port?



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



Thank you in advance for any clue,

--
-+ Álvaro G. Vicario - Burgos, Spain - ICQ 46788716
+- http://www.demogracia.com (la web de humor para mayores de 100 años)
++ «Sonríe, que te vamos a hacer una foto para la esquela»
--
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com