[KLUG Members] grief getting https to work (Invalid method)

Adam Tauno Williams members@kalamazoolinux.org
Mon, 24 Nov 2003 10:41:01 -0500


> Don't know if it's related, but I think Apache now must have a separate 
> IP address for https requests (separate from http).

Your correct, or at least more-or-less so.  Apparently one needs to be really
specific about what one wants Apache to do.

This works ---

<IfDefine HAVE_SSL>
  <VirtualHost *:443>
    DocumentRoot "/var/www/html/mormail.com/"
    ServerName   www.mormail.com
    ServerAlias  mormail.com
    php_value include_path .:/usr/local/lib/php
    ErrorLog /var/log/httpd/error_log.mormail
    CustomLog /var/log/httpd/access_log.mormail combined
    DirectoryIndex index.php index.html index.htm
    SSLEnable
    SSLEngine on
    SSLCertificateKeyFile /usr/share/ssl/mormail.key
    SSLCertificateFile /usr/share/ssl/mormail.cer
    SSLSessionCacheTimeout  300
    SSLLog      logs/mormail.ssl_engine_log
    SSLLogLevel error
  </VirtualHost>
</IfDefine>
                                                                               

<VirtualHost *:80>
  DocumentRoot "/var/www/html/mormail.com/"
  ServerName   www.mormail.com
  ServerAlias  mormail.com
  php_value include_path .:/usr/local/lib/php
  ErrorLog /var/log/httpd/error_log.mormail
  CustomLog /var/log/httpd/access_log.mormail combined
  DirectoryIndex index.php index.html index.htm
</VirtualHost>