

ProxyPass /gps/ ProxyPassReverse /gps/ ProxyPassReverseCookiePath / /gps/ ProxyPassReverse /gps/api/socket ws://localhost:8082/api/socket ProxyPass /gps/api/socket ws://localhost:8082/api/socket Here is a proxy configuration example: ProxyRequests off If you want Traccar to be in a subdirectory, in additional to proxying requests, you also need to adjust cookies path. Generally we recommend to avoid this and use a subdomain for Traccar instead. This part is only needed if you want to make your server available in a non root path. Once the process is complete, you should have your server available via an HTTPS connection.
TRACCAR CONNECTION ERROR INSTALL
If you don't own a domain name yet, we recommend Namesilo with consistently low prices both for new domains and renewals.Īfter a domain name is configured and pointing to the server you can generate a free SSL certificate for your server using Let's Encrypt: sudo apt install certbot python3-certbot-apacheįollow the instructions from Certbot. Check our documentation on how register and to configure a custom domain name with Traccar. To get a valid SSL certificate you need to have a domain name. Next disable the default site and enable the newly added configuration: sudo a2dissite 000-default SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem ProxyPass / ProxyPassReverse / SSLEngine on ProxyPassReverse /api/socket ws://localhost:8082/api/socket ProxyPass /api/socket ws://localhost:8082/api/socket

Sudo a2enmod ssl proxy_http proxy_wstunnel rewriteĪs the next step we need to add our new site configuration: sudo nano /etc/apache2/sites-available/nfĬontent for the site configuration (replace "" with your domain): All your configuration parameters should be placed in this file.
In this guide we will use Apache server with a proxy module.įirst step is to install the latest version of Apache server and enable required modules: sudo add-apt-repository ppa:ondrej/apache2 destination 'local/traccar.xml' data <Traccar does not support secure connection out of the box, but a proxy server can be used to tunnel all data through a secure connection. For Windows system you can follow this blog post from Freek. Examples are for Ubuntu Linux, but the general idea can be applied to all platforms.
TRACCAR CONNECTION ERROR HOW TO
This guide provides instructions on how to configure Traccar to use secure HTTPS protocol with SSL/TLS encryption of all traffic. Traccar serves web interface and API using regular HTTP protocol which does not use any encryption.
