Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Unless I am mistaken this won't work: does default apache 000-default.conf vhost redirect traffic from 443 to 80 ?


To support SSL you would add a virtual host section like this:

    <VirtualHost *:443>
        ServerName mysite.local
        SSLEngine on
        SSLCertificateFile    /path/to/cert
        SSLCertificateKeyFile /path/to/key
        DocumentRoot /app/public
    </VirtualHost>
And either use a real cert or add a command to create a self signed one:

    openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key -out cert




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: