one more bit of weirdness today - testing ssl on domain.com and www.domain.com

Discussion in 'ISPConfig 3 Priority Support' started by craig baker, Oct 8, 2023.

  1. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Well there is a incorrect hostname setup in your apache config files, which I pointed out earlier. These file were generated at install/update so something must have been wrong.
     
  2. craig baker

    craig baker Member HowtoForge Supporter

    but what exactly? ports 8081 and 8080 have nothing to do with why 443 incorrectly picks the default host do they?
    and when I go to ns1.knight-kingdelivery:8080 the cert is correct - for ns1.knight-kingdelivery.com
    also when we look at 000-apps.vhost in /etc/httpd/conf/sites-enabled:
    Code:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig apps vhost
    ######################################################
    
     Listen 8081
    # NameVirtualHost *:8081
    
    <VirtualHost _default_:8081>
      ServerAdmin webmaster@localhost
    
    
      <Directory /var/www/apps>
        <FilesMatch "\.ph(p3?|tml)$">
          SetHandler None
        </FilesMatch>
      </Directory>
    
    this host matches as the default - there is NO mention of knightkingdelivery.com anywhere in this file??

    similarly the 000-ispconfig.vhost refers to 8080 and similarly is _default_

    so how do we explain - that the default vhost on 8081 matches knightkingdelivery.com
    and the default vhost on 443 does NOT match knightkingdelivery.com
    we are running 2.4 apache. namevirtualhost has no efffect anymore. looking at
    100-knightkingdelivery.vhost in sites-enabled we see:
    Code:
    <VirtualHost *:443>
    
    
                                                                            DocumentRoot /var/www/knightkingdelivery.com/web
    
                    ServerName knightkingdelivery.com
                    ServerAlias www.knightkingdelivery.com
                    ServerAdmin [email protected]
    
    how can this **NOT** match knightkingdelivery.com????
    inquiring minds!!
     
  3. craig baker

    craig baker Member HowtoForge Supporter

    any thoughts? i'm very curious how it could decline to recognize the right vhost?
     

Share This Page