Traccar Server with HTTPS

Nikhil6 years ago

I am trying to configure traccar with https referring the document provided at:

https://www.traccar.org/secure-connection/

I have configured the settings as mentioned in the link only skipping the "Traccar to be in a subdirectory," portion of the document as I dont want that but wanted to know that will the settings as mentioned in the link will also work for the 5055 port which I am using to report location to traccar from mobile device or not as it was not mentioned in the proxy path.

My next questions is that,, after doing the configuration as mentioned I was able to load traccar over http using http://mydomain.com:8082/api/devices but NOTusing HTTPS as everytime it gives error "This site cant provide secure connections" . I tried starting and stopping apache and the traccar server as well .I do have the valid SSL certificate and key store and other apache sites that I have load over HTTPS successfully but not traccar it is working only over http.

Did I miss anything? Please guide on the same. I am using ubuntu server.

Anton Tananaev6 years ago

You should be able to configure proxy for 5055 in a subdirectory. You might need to make some adjustments to the Apache config.

So, what do you get when you connect to Apache?

Nikhil6 years ago

Apache config has all the proxy path as mentioned in you document i.e. localhost:8082 and when I am connecting to Apache I can see my .conf file as well and other sites/apps inside apache work with https just fine.

Anton Tananaev6 years ago

I'm confused. You see content of the config file when you connect to Apache via HTTPS?

Nikhil6 years ago

No not right now.

Nikhil6 years ago

when i connect to https://mydomain.com without the 8082 port I can only see my other apps not any config file.

Anton Tananaev6 years ago

Then obviously you have some issue with your Apache configuration.