I have set reverse proxy exactly according to the example (just replaced localhost with 127.0.0.1):
ProxyRequests off
ProxyPass /gps/api/socket ws://127.0.0.1:8082/api/socket
ProxyPassReverse /gps/api/socket ws://127.0.0.1:8082/api/socket
ProxyPass /gps/ http://127.0.0.1:8082/
ProxyPassReverse /gps/ http://127.0.0.1:8082/
ProxyPassReverseCookiePath / /gps/
Redirect permanent /gps /gps/
I have all needed apache mods enabled.
When I visit https://address.com/gps/
I see the login screen. In dev tools, I see the error Failed to load resource: the server responded with a status of 404 (Not Found) - https://address.com/gps/api/session?_dc=1592873988059
.
I can still login, but I get HTTP 401 Unauthorized - WebApplicationException (SecurityRequestFilter:113 < ...)
and 13x Failed to load resource: the server responded with a status of 401 (Unauthorized)
, for example https://address.com/gps/api/commands?_dc=1592874762227&page=1&start=0&limit=25
.
It seems one of the apache proxy settings is just incorrect. Anyone have a guess?
Btw: Is it possible to have the web interface and API under different subdirectories?
I guess the 404 (Not Found)
for an invalid session is normal, it happens even after I reverted back to no subdirectory.
I tested your way at first but then I decided that a subdomain was much more stable
Hello friends! @Anders Yuran, I've tried some ways to make Traccar go to a subdomain, but I wasn't successful with the same response as @Fiodor, in my load balancer I only have the option of ports 80 and 8080, if I put the Traccar on port 8080, it takes the place of the Site, and I'm not getting it any other way.
Understand: I use a google cloud server Ubuntu 20.04 lts, with a website and Traccar.
I would like to configure: "login.domain.com" for Traccar to reply ssl the same way the domain is already.
Thanks in advance.
I have set reverse proxy exactly according to the example (just replaced localhost with 127.0.0.1):
I have all needed apache mods enabled.
When I visit
https://address.com/gps/
I see the login screen. In dev tools, I see the errorFailed to load resource: the server responded with a status of 404 (Not Found) - https://address.com/gps/api/session?_dc=1592873988059
.I can still login, but I get
HTTP 401 Unauthorized - WebApplicationException (SecurityRequestFilter:113 < ...)
and 13xFailed to load resource: the server responded with a status of 401 (Unauthorized)
, for examplehttps://address.com/gps/api/commands?_dc=1592874762227&page=1&start=0&limit=25
.It seems one of the apache proxy settings is just incorrect. Anyone have a guess?
Btw: Is it possible to have the web interface and API under different subdirectories?