URL for web ui issue

shawn8087 years ago

yes i see issue with web console. like this

[Error] WebSocket connection to 'wss://locas.atozws.com/api/socket' failed: Unexpected response code: 404 (x791)

https://locas.atozws.com/api/session?_dc=1489573685001

 "{"id":1,"attributes":{},"name":"admin","email":"admin","readonly":false,"admin":true,"map":null,"distanceUnit":null,"speedUnit":null,"latitude":0.0,"longitude":0.0,"zoom":0,"twelveHourFormat":false,"coordinateFormat":null,"disabled":false,"expirationTime":null,"deviceLimit":0,"token":null,"password":null}"

please advise

Anton Tananaev7 years ago

I think you should ask on Apache forums. The issue is with your proxy configuration, not Traccar.

shawn8087 years ago

Should i be adding something to the config file for traccar? I can't figure out what's the matter with apache. It's loading as you see at "locas.atozws.com" but user location on map won't show

Anton Tananaev7 years ago

As I said, the issue has nothing to do with Traccar. The problem is with your proxy.

shawn8087 years ago

Here is the setting I have

root@host [~]# cat /etc/apache2/conf.d/userdata/ssl/2_4/atozws/locas.atozws.com/proxy.conf 
ProxyPass /api/socket ws://localhost:8082/api/socket
ProxyPassReverse /api/socket ws://localhost:8082/api/socket

ProxyPass / http://localhost:8082/
ProxyPassReverse / http://localhost:8082/

Not sure what's wrong . Sorry to bother this much but I'm not sure as to what part of proxy is the problem

Anton Tananaev7 years ago

I'm not sure either. I'm not an expert of Apache configuration. That's why I recommended that you ask on the relevant Apache forums instead.

Just one question. Are you sure you enabled "proxy_wstunnel" module?

shawn8087 years ago

proxy_wstunnel” module was not installed . After configuring this it started working well. Thank you Anton.

shawn8087 years ago

Over all Traccar is working well. "proxy_wstunnel" is not enabled by default, make sure its installed if you're having issues. Anton anyway you can delete some of the threads? they contain links to our url.

Anton Tananaev7 years ago

I can mask URLs if you want. What exactly do you want to remove?

shawn8087 years ago

anything about "www.example.com" please

Anton Tananaev7 years ago

I just realized that you can edit it yourself. You can change the URL to something like "www.example.com".

shawn8087 years ago

sorry i didn't really see that too. ill change.

shawn8087 years ago

actually i can only change my last post. it's fine. i will just change the traccar installation to a different url .