Next: Redirecting Traccar Client URLs, Previous: Reverse Proxy Configuration, Up: Apache [Contents][Index]
It is useful to ensure all users use HTTPS by providing a redirect rule to
redirect any HTTP requests to use HTTPS. However, some logging clients do not
support HTTP, so it may be preferable to exclude the logging patterns from
redirection. Generally, the logging URLs will be of the form
http://${HOST}:${PORT}/trip/rest/log_point
.
This rule will redirect URLs excepting those like /trip/rest/
which can then be used by tracker clients that do not support HTTPS or
redirections, to log locations without being redirected.
This rule needs to be in the <VirtualHost *:80/>
section of the
HTTP server.
RedirectMatch ^/trip/app/(.*)$ https://${MY_HOST}/trip/app/$1