Traccar Server on Custom Sub Domain

tim.schmuhl8 months ago

I've been trying to set up traccar on a custom sub domain. I saw this post which describes similar.

Everything works fine on port 8082.

http://gps.foundmyride.com:8082/login

But when I edit the traccar.xml and add

<entry key='web.port'>80</entry>

I then restart my traccar service but it does not seem to work as expected. I believe my A record in my DNS is setup correctly as it works on port 8082 but cant figure out how to get it so the site is reachable without the port number

Track-trace8 months ago

Just point http://gps.foundmyride.com to your webserver ip.

Then proxy it to traccar server.

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

tim.schmuhl8 months ago

If there is an easier way I would prefer that option

Anton Tananaev8 months ago

What is not working with port 80?

tim.schmuhl8 months ago

It was not. Unless you need to wait a few hours or something. But when I changed it back to 8082 then it worked instantly

Anton Tananaev8 months ago

Have you checked if the server was running?

tim.schmuhl8 months ago

Would there be a reason for it not to be running? I'm not sure why it would work on 8082 but then not work on 80

Anton Tananaev8 months ago

I don't know what the reason is, but the first thing to do is to check.

tim.schmuhl8 months ago
 sudo systemctl status traccar

I do that command and get the status is active. Is that what I should be checking?

tim.schmuhl8 months ago

Looks like I needed to update my firewall

sudo ufw allow 80/tcp

Did the trick

rtop8 months ago

made the note A in the dns only its subdomain?