• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Solved SSL not working properly

Status
Not open for further replies.

Xpect

New Member
Hi everyone,

I followed the instructions on the wiki to use a reverse proxy with apache2 to allow the Webinterface to be accessed via SSL. Unfortunately I've ran into a problem. My subdomain bot.mydomain.com can be accessed via https I keep getting an internal server error.

The following error pops up in my apache error.log. Has anybody seen that before?

Code:
[Wed Jul 18 19:34:40.633205 2018] [ssl:error] [pid 531:tid 139691923379968] [remote 127.0.0.1:8087] AH01961: SSL Proxy requested for bot.lukashoyer.com:443 but not enabled [Hint: SSLProxyEngine]
[Wed Jul 18 19:34:40.633328 2018] [proxy:error] [pid 531:tid 139691923379968] AH00961: HTTPS: failed to enable ssl support for 127.0.0.1:8087 (localhost)


Apache sinusbot.conf:

Code:
<VirtualHost *:80>
    ServerName bot.mydomain.com
    ServerAlias www.bot.mydomain.com

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    RewriteEngine on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

</VirtualHost>

<VirtualHost *:443>
    ServerName bot.mydomain.com
    ServerAlias www.bot.mydomain.com

    SSLEngine On
    SSLCertificateFile    /etc/letsencrypt/live/mydomain.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem

    ProxyPass / http://localhost:8087/
    ProxyPassReverse / http://localhost:8087/

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>

Tanks in advance.
 
Status
Not open for further replies.
Top