Very sad problem :)

Discussion in 'Server Operation' started by unkn0wn, Apr 28, 2006.

  1. unkn0wn

    unkn0wn New Member

    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
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Don't use your IP address for ServerName, use your domain instead and restart Apache.
     
  3. unkn0wn

    unkn0wn New Member

    i know that but when i use apache could not be restarted because that
    FQDN error.
    Is problem in DNS maybe?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Do you mean this error?
    Then you must create DNS records for the FQDN.
     
  5. unkn0wn

    unkn0wn New Member

    hm but there is



    domain.net. 14400 IN A 212.22.11.12
    www 14400 IN A 212.22.11.12


    ??
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Do you have a ServerName directive in your Apache configuration?
     
  7. unkn0wn

    unkn0wn New Member

    i look for that and there is no ServerName directive in apache2.conf
    Can i put
    ServerName domain.com?
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Yes, but domain.com must exist in DNS.
     
  9. unkn0wn

    unkn0wn New Member

    domain.com. 14400 IN A 212.12.42.12


    www 14400 IN A 212.12.42.12

    u thin on this?
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Looks good.
     
  11. unkn0wn

    unkn0wn New Member

    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.
     
  12. falko

    falko Super Moderator ISPConfig Developer

    domain.com is not the same as www.domain.com...
     
  13. unkn0wn

    unkn0wn New Member

    but i put for servername www and for cert www and there is still a problem
     
  14. falko

    falko Super Moderator ISPConfig Developer

    Did you install the certificate in the correct vhost?
    Do you use ISPConfig?
     
  15. unkn0wn

    unkn0wn New Member

    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>
     
    Last edited: May 7, 2006
  16. falko

    falko Super Moderator ISPConfig Developer

    Are you using ISPConfig?
     
  17. unkn0wn

    unkn0wn New Member

    ispconfig? nope :)
     
  18. falko

    falko Super Moderator ISPConfig Developer

  19. unkn0wn

    unkn0wn New Member

  20. falko

    falko Super Moderator ISPConfig Developer

    What's in the Apache error logs?
     

Share This Page