SSL again

Anders Yuran5 years ago

I have followed all guides I can find, here and on the web but I have no luck getting it to work. I see that the demo server is not protected either so perhaps it is impossible

This is my apache config

<IfModule mod_ssl.c>
<VirtualHost _default_:80>
               ServerName traccar.host-thirty.com
               ServerAlias www.traccar.host-thirty.com
               Redirect / https://traccar.host-thirty.com
</VirtualHost>`

`<VirtualHost _default_:443>
                ServerName traccar.host-thirty.com
                ServerAdmin contato@tecsat.net.br
                ProxyPass /api/socket ws://localhost:8082/api/socket
                ProxyPassReverse /api/socket ws://localhost:8082/api/socket
                ProxyPass / http://localhost:8082/
                ProxyPassReverse / http://localhost:8082/
                SSLEngine on
                SSLCertificateFile /home/host-thirty/domains/traccar.host-thirty.com/ssl.cert
                SSLCertificateKeyFile /home/host-thirty/domains/traccar.host-thirty.com/ssl.key
</VirtualHost>
</IfModule>
paul845 years ago

It is possible, I have set it up before. I have to do another SSL setup soon, so I will let you know how I went about it.

Anders Yuran5 years ago

I think it was a problem with the ssl setup. I use Webmin as backend of the linux server in the datacenter and it had a different way to set it up. After creating a ner subdomain, installing certbot and using certbot to set it up it was no problems. Just to add the proxy piece to the apache config for the domain and it worked immediately. Sometimes shortcuts turn out to be the opposite