Problem with web access - Apache2 config ?

thibaud6 years ago

Hello,

I tried to install Traccar on a Debian server, where I have other services.
When I connect to myserver.com/traccar/ I have the following popup error :

HTTP 401 Unauthorized - WebApplicationException (SecurityRequestFilter:108 < ...)

and I'm back on the logging page. I don't know if my server is correctly configured. I've added some lines on the Apache2 config file to reroute myserver.com/traccar/ to 127.0.0.1:8082 with these lines :

<Location /traccar>
    ProxyPass http://127.0.0.1:8082
    ProxyPassReverse http://127.0.0.1:8082
</Location>

I'm not an expert on these field (neither on English, sorry for the mistakes), so I don't know if it's the correct way to proceed. I've just used another service running on my server as an example.

Is my config ok ? Is there someone who had the same issue ?

Thanks for your help,
Thibaud

thibaud6 years ago

I've found the problem !

My .conf Apache file was not properly set. I was using <Location>, but I just have to use infos on these pages :
https://www.traccar.org/secure-connection/ and https://www.traccar.org/forums/topic/reverse-proxy-apache-with-subdirectory/page/2/
I don't have to use <Location>. I rewrite ProxyPass lines in my <VirtualHost *:433>, adding the lines I forgot.

Hope this could help someone !

Thank you for this awesome tool.
Thibaud