Organizational Research By

Surprising Reserch Topic

Install SSL certificate manually on serverpilot for Apache


As a serverpilot free user, I'm struggling to config ssl to use https on my Ubuntu server.

I followed this tutorial to prepare the key/certs:
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-with-a-free-signed-ssl-certificate-on-a-vps

I configured /etc/apache-sp/vhosts.d/app-domain.conf:

    
        Define DOCUMENT_ROOT /srv/users/serverpilot/apps/app-domain/public
        Define PHP_PROXY_URL unix:/srv/users/serverpilot/run/app-domain.php-fpm.sock|fcgi://localhost

        ServerAdmin webmaster@
        DocumentRoot ${DOCUMENT_ROOT}
        ServerName app-domain
        ServerAlias app-domain.com
        ServerAlias www.app-domain.com

        ErrorLog "/srv/users/serverpilot/log/app-domain/app-domain_apache.error.log"
        CustomLog "/srv/users/serverpilot/log/app-domain/app-domain_apache.access.log" common

        RemoteIPHeader X-Real-IP
        SetEnvIf X-Forwarded-SSL on HTTPS=on

        IncludeOptional /etc/apache-sp/vhosts.d/app-domain.d/*.conf
    


    
        Define DOCUMENT_ROOT /srv/users/serverpilot/apps/app-domain/public

        SSLEngine on
        SSLProtocol all -SSLv2
        SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM

        SSLCertificateFile /etc/apache-sp/certs/app-domain/app-domain.cert
        SSLCertificateKeyFile /etc/apache-sp/certs/app-domain/private.key
            SSLCertificateChainFile /etc/apache-sp/certs/app-domain/sub.class1.server.ca.pem

        ServerAdmin webmaster@
        DocumentRoot ${DOCUMENT_ROOT}
        ServerName app-domain.com
        ServerAlias app-domain.com
        ServerAlias www.app-domain.com

        ErrorLog "/srv/users/serverpilot/log/app-domain/https_app-domain_apache.error.log"
        CustomLog "/srv/users/serverpilot/log/app-domain/https_app-domain_apache.access.log" common

    


but it doesn't work and i cannot find any error message.
asked Jun 9, 2015 in LINUX by rajesh
0 votes
99 views



Related Hot Questions



Government Jobs Opening


...