Questions about Secure Connection

arthur10 months ago

I use Apache server to configure Traccar Server Secure Connection. I need to change the Traccar Server connection from IP Address to https://www.i-cna.com/tracgps , but it doesn't seem to work.

<VirtualHost *:80>
ServerName www.i-cna.com
Redirect / https://www.i-cna.com/
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost _default_:443>

        ServerName www.i-cna.com
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html
        
        ProxyRequests off

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

        ProxyPass /tracgps/ http://localhost:8082/
        ProxyPassReverse /tracgps/ http://localhost:8082/
        ProxyPassReverseCookiePath / /tracgps/
        
        Redirect permanent /tracgps /tracgps/

</VirtualHost>
</IfModule>
arthur10 months ago

I use Apache server to configure Traccar Server Secure Connection. I need to change the Traccar Server connection from IP Address to http://www.i-cna.com/ , but it doesn't seem to work.

<VirtualHost *:80>
ServerName www.i-cna.com
Redirect / https://www.i-cna.com/
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost _default_:443>

            ServerName www.i-cna.com
            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/



    </VirtualHost>
</IfModule>