mod_ssl: SERVER_PORT=80 whatever config I try
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > mod_ssl: SERVER_PORT=80 whatever config I try




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    mod_ssl: SERVER_PORT=80 whatever config I try  
Alvaro G Vicario


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-04 01:33 PM

It's a Red Hat 9 server running Apache 2.0.40 + mod_ssl that hosts several
name based virtual hosts. One of the sites supports both HTTP and HTTPS.
Apparently everything works fine: I get the expected browser warnings about
encryption when I enter or leave an HTTPS address. Also, my browser's
Security Information section claims the page is encrypted and provides all
info about the certificate.

However, when I load a dynamic page to review server variables I find that
SERVER_PORT=80 and SERVER_SIGNATURE="<address>Apache/2.0.40 Server at
www.fullhardware.com Port 80</address>", no matter what protocol I use (SSL
or non-SSL). Also, the HTTPS variable is missing.

I've been trying to troubleshoot this for months but I can't even manage to
tell where the problem is: Apache? mod_ssl? PHP?



<VirtualHost *:80>
ServerName site.com
DocumentRoot /home/site/htdocs/
CustomLog logs/site.com-access_log combined
ErrorLog logs/site.com-error_log
</VirtualHost>
<VirtualHost *:443>
ServerName site.com
DocumentRoot /home/site/htdocs/
CustomLog logs/site.com-access_log combined
ErrorLog logs/site.com-error_log

<IfDefine HAVE_SSL>
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
</IfDefine>
</VirtualHost>



--
-- Álvaro G. Vicario - Burgos, Spain
--





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:17 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register