I have problem with how knows... I have error with ssl cert file he show me that "The server name doesnt match with cert name|" wtf is problem in common name i put my domain name. but then i see other error..... apache show me error "coudlnot resolve FQDN name use 127.0.0.1 instead? i running BIND on my machines. and domain mail server etc is working fine. NameVirtualHost 201.21.33.2:443 NameVirtualHost 201.21.33.2:80 <VirtualHost domain.com:443> ServerAdmin webmaster@localhost ServerName 201.21.33.2 DocumentRoot /var/www <Directory /> Is this correct way? but when i put in my ServerName my domain then he show me not FqDN error
i know that but when i use apache could not be restarted because that FQDN error. Is problem in DNS maybe?
i look for that and there is no ServerName directive in apache2.conf Can i put ServerName domain.com?
ok that is good tnx but again same problem i put in apache conf ServerName www.domain.com in VHOST fajl i put for ServerName www.domain.com but SSL again: - The server's name "domain.com" does not match the certificate's name "www.domain.com". Somebody may be trying to eavesdrop on you.
i use apache2-ssl-certificate and create cert. then in vhost file i use SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem and that it. but... NameVirtualHost *:443 NameVirtualHost *:80 <VirtualHost *:443> do i must put ip adresses of server in field * for example NameVirtualHost 211.22.33.2:443 NameVirtualHost 211.22.33.2:80 <VirtualHost 211.22.33.2:443>
So you have ServerName www.domain.com in your Aapche vhost, and the SSL cert is also for www.domain.com?
yep! in apache.conf Servername www.domain.com in VHOSt www.domain.com and cert common name www.domain.com and there is same error like before