traccar secure connection problem

Segads3 years ago

hello there, i folow the secure conection instructions

this is my conection

<VirtualHost *:80>
  ServerName ghazal.autigital.com
  Redirect / http://23.92.xx.xxx:8082
</VirtualHost>




<IfModule mod_ssl.c>
        <VirtualHost _default_:443>

                ServerName mydomain
                ServerAdmin webmaster@localhost

                DocumentRoot /var/www/html

                ProxyPass /api/socket ws://localhost:8082/api/socket
                ProxyPassReverse /api/socket ws://localhost:8082/api/socket

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

                SSLEngine on
                SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
                SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

        </VirtualHost>
</IfModule>
<VirtualHost *:70>
  ServerName mydomain
  Redirect / http://23.92.xx.xxx:8082
</VirtualHost>

it works but the page is not my domain is this when i use mydomain

http://23.92.xx.xx:8082/modern/login

any ideas what im doing wrong, thanks in advance

Anton Tananaev3 years ago

Nothing is wrong. That's expected. You need to start navigation from root path.

Segads3 years ago

what i need to do to acces my traccar server from my domain, and not show the ip in the end. thanks in advance

Anton Tananaev3 years ago

Probably you need to remove the redirects:

Redirect / http://23.92.xx.xxx:8082
Segads3 years ago

thnaks !! it worked!!