Primeiro faca este passo a passo configurando o DNS A , neste tutorial do
https://www.traccar.org/domain-name/
Compre um dominio
configuracao do DNS do seu provedor
Nome do host rastrec.com
Tipo A TTL 1 hora Dados 15.204.216.147
apos isto voce faz os passos
https://www.traccar.org/secure-connection/
nano /etc/apache2/sites-available/traccar.conf
<VirtualHost *:80>
ServerName rastreckcom
Redirect / https://rastreck.com/
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerName rastreck.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/
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/rastrec.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/rastrec.com/privkey.pem
</VirtualHost>
</IfModule>
Primeiro faca este passo a passo configurando o DNS A , neste tutorial do
https://www.traccar.org/domain-name/
Compre um dominio
configuracao do DNS do seu provedor
Nome do host rastrec.com
Tipo A TTL 1 hora Dados 15.204.216.147
apos isto voce faz os passos
https://www.traccar.org/secure-connection/
nano /etc/apache2/sites-available/traccar.conf
<VirtualHost *:80> ServerName rastreckcom Redirect / https://rastreck.com/ </VirtualHost> <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerName rastreck.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/ SSLEngine on SSLCertificateFile /etc/letsencrypt/live/rastrec.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/rastrec.com/privkey.pem </VirtualHost> </IfModule>