Run traccar secure

skyking5 years ago

I'm already running apache2 and my main website is running under https and gets redirected from http so SSL and redirect is all working.

I copied and pasted the VirtualHost code from the help page here changing the server name and cert key path (have my own)

When I try to go to http://myserver.com:8082 I get traccar server with http and it doesn't redirect to https

When I try to go to https://myserver.com:8082 I get the error SSL_ERROR_RX_RECORD_TOO_LONG

From some searching this error indicates a bad proxy setup so wondering if the code I got is correct and is there anyone running it sucessfully?

I can't tell if the code is correct as this proxy part is new to me. Thanks for any insights.

skyking5 years ago

So I disabled my main site and now traccar works correctly (redirects from http to https and runs securely)

Now I need to figure out how to run my main site and traccar both as different apache2 sites.

I think it's in the VirtualHost settings so will need to play with that unless someone has traccar running on same server/ip/domain along with a main website and already knows how to set VirtualHosts.

skyking5 years ago

Resolved: I had to use a different ServerName in each site's VirtualHost.