Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Apache 2.2 + SSL Issue

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
thepeti
Posts: 1
Joined: 2016-03-03 20:17

Apache 2.2 + SSL Issue

#1 Post by thepeti »

Hi all,

first, my english is not the best, so sorry for that. :)

Today I set up my first "Lets Encrypt" certificate and tried to config my Apache 2.2 on my Wheezy Dedicated. The Server hosts 5 Domains, all located to the same IP. Just 1 Domain should use HTTPS, I call it now "Domain1", all other with "DomainX".

So, I configured Apache and it seems to work - BUT: all NON HTTPS Domains are linking autom. to Domain1 (with HTTPS). That wasn't my mind, before I configured the SSL things, all was working fine. Since Domain1 is using HTTPS, all other hosted Domains link now to Domain1.

When I change all other DomainX's IP to a different one as Domain1 use, all is working fine. It seems to be, that could be an issue on Apache? For the record, domain1's vhost config is using "<VirtualHost X.X.X.X:80>" (and a part with :433 of course - all other domains uses "*:80" instead of an IP.

If I use "*:80" and "*:443" on Domain1 too, all seems to be working. BUT: now all other Domains are accessable with https, too - but there are no :433 config-parts in these domain.conf's. wtf?

I hope you guys can understand my problem - I did my best. :roll:

Thanks for all help!

Cheers

EDIT: here my ssl domain's and other hosts domain's vhost configs:

Domain with SSL:

Code: Select all

<VirtualHost X.X.X.X:80>
     ServerName domain.com
     ServerAlias www.domain.com *.domain.com
     ServerAdmin webmaster@domain.com
     DocumentRoot /home/USER/html
     ErrorLog /var/log/apache2/domain.com._error_log

     LogLevel warn

     <Directory /home/USER/html>
          Options -Indexes
          AllowOverride All
          Order allow,deny
          allow from all
     </Directory>
	
</VirtualHost>

<VirtualHost X.X.X.X:443>
     ServerName domain.com
     ServerAlias www.domain.com *.domain.com
     ServerAdmin webmaster@domain.com
     DocumentRoot /home/USER/html
     ErrorLog /var/log/apache2/domain.com._error_log

     LogLevel warn

     <Directory /home/USER/html>
          Options -Indexes
          AllowOverride All
          Order allow,deny
          allow from all
     </Directory>

Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/domain.com/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/domain.com/chain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem
	
</VirtualHost>
all other domains use:

Code: Select all

<VirtualHost *:80>
     ServerName domain.com
     ServerAlias www.domain.com *.domain.com
     ServerAdmin webmaster@domain.com
     DocumentRoot /home/USER/html
     ErrorLog /var/log/apache2/domain.com._error_log

     LogLevel warn

     <Directory /home/USER/html>
          Options -Indexes
          AllowOverride All
          Order allow,deny
          allow from all
     </Directory>

	
</VirtualHost>

Post Reply