How To Install PositiveSSL on Apache2

Discussion in 'HOWTO-Related Questions' started by Yupy, Dec 20, 2013.

  1. Yupy

    Yupy New Member

    Hi guys, I need someone to help me installing PositiveSSL from Comodo on Apache2.

    I have searched google alot and didn't find something "working".

    Thanks
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

  3. Yupy

    Yupy New Member

    Yes Croydon but apache fails to start
     
  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Then check the /var/log/apache2/error.log during apache restart.
     
  5. Yupy

    Yupy New Member

    [Fri Dec 20 08:32:01 2013] [warn] RSA server certificate CommonName (CN) `mydomain.org' does NOT match server name!?

    This is the error... any idea where i did wrong?
     
  6. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    This does not seem to be an error that prevents apache from starting.
    It's a warning that you set up a ssl that does not match the server name but apache should start with that, too.
     
  7. controlmac

    controlmac New Member HowtoForge Supporter

  8. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Have you set up a default SSL vhost?
    If not the behaviour is completely normal.
    You have only one vhost configured for port 443 (ssl), so this one is used at every call to https.

    You can check apache vhosts like this:
    Code:
    apache2ctl -t -D DUMP_VHOSTS
    I think in your case there will be only one vhost at port 443.
     
  9. controlmac

    controlmac New Member HowtoForge Supporter

    Thats's right. How do I get rid of the fact that all hhtp hosts go to the default https host?
     
  10. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    You don't.
    There is always a default host where the requests go to.

    The only solution would be to create a default vhost with SSL that takes all requests that are not catched by the SSL domain and add a .htaccess there that redirects to the appropriate http:// url.
     
  11. controlmac

    controlmac New Member HowtoForge Supporter

    Could you give me a quick view how to do that?
     

Share This Page