https on apache

48 views
Skip to first unread message

Lucas Henrique

unread,
Apr 19, 2021, 7:24:36 AM4/19/21
to Helios Voting
Good morning gentlemen, I set up helios in my institution, it worked fine, serving with apache2, but when enabling ssl the system stops responding, can someone help me with the configuration in ssl? 

 Below my conf that works serving with http 

VirtualHost *:80>

    ServerName teste.br
    DocumentRoot /home/helios/votacao

    <Directory /home/helios/votacao>
        Require all granted
    </Directory>
    WSGIDaemonProcess grp-votacao python-home=/home/helios/votacao/venv python-path=/home/helios/votacao processes=10 threads=50
    WSGIProcessGroup grp-votacao
    WSGIScriptAlias / /home/helios/votacao/wsgi.py

</VirtualHost>

 Below the configuration in https

<IfModule mod_ssl.c>
        <VirtualHost *:443>
                ServerAdmin webmaster@localhost
                ServerName teste.br
                DocumentRoot /home/helios/votacao

                ErrorLog /var/log/apache2/error-443.log
                LogLevel info
                CustomLog /var/log/apache2/helios-access-443.log combined

                SSLEngine on

                SSLCertificateFile /etc/ssl/certs/cert2021.pem
                SSLCertificateKeyFile /etc/ssl/private/key2021.key

                <FilesMatch "\.(cgi|shtml|phtml|php)$">
                                SSLOptions +StdEnvVars
                </FilesMatch>
                <Directory /usr/lib/cgi-bin>
                                SSLOptions +StdEnvVars
                </Directory>

    <Directory /home/helios/votacao>
            Require all granted
    </Directory>

WSGIDaemonProcess grp-votacao python-home=/home/helios/votacao/venv python-path=/home/helios/votacao processes=10 threads=50
WSGIProcessGroup grp-votacao
WSGIScriptAlias / /home/helios/votacao/wsgi.py

        </VirtualHost>

</IfModule>




Reply all
Reply to author
Forward
0 new messages