Traccar Secure Connection

Karim momo10 months ago

I use the latest version of traccar with ubuntu 20.04, it works well with the ip address of my server. I would like to put a subdomain with a secure connection, I used the instructions (traccar docummentation) but it doesn't work for me. with the file /etc/apache2/sites-available/000-default.conf Apache works well image (https://imgur.com/ZBQPCiq) but when I put /etc/apache2/sites-available/traccar.conf by default it does not work (it gives me an error ERR_TOO_MANY_REDIRECTS) error image (https://imgur.com/clMTfmv), here is the content of my tracca.conf configuration file image(https://imgur.com/0dnDj8y). please help me to fix my issu

Anton Tananaev10 months ago

I don't think the issue is with the configuration file you provided. There must be something else. Have you checked the browser tools to see what redirects you're getting?

Karim momo10 months ago

I use the tool to check https://www.ssllabs.com/ssltest/analyze.html?d=gps.1fo.bf but it is same. Please help me. i can send you my linux ssl config

Anton Tananaev10 months ago

I won't be able to help if you ignore my suggestions. You should check browser network tools to see what redirects you're getting.

Karim momo10 months ago

in reality I don't know how to check the redirection in the browser. can you guide me

Anton Tananaev10 months ago

I can't guide because it depends on the browser, but I'm sure there's plenty of information online about it. It's not something specific to Traccar.

Karim momo10 months ago

This is une image of my browser redirect https://imgur.com/6ck1WKN For more information I use cloudflare to manage my domain name including my server A registration with my subdomain. Is there any special configuration I need to do on my Cloudflare account?

Anton Tananaev10 months ago

There must be some misconfiguration. Probably in Apache.

Karim momo10 months ago

After checking the /etc/apache2/sites-available/traccar.conf configuration file in Apache I noticed that the file has changed. here is the current image capture https://imgur.com/Jcdtf8u . Should I delete all and put the basic configuration given in the traccar documentation??

Karim momo10 months ago

it work fine now, i fix the issu with cloudflare SSL/TLS setting. thank

Anton Tananaev10 months ago

You never mentioned anything about cloudflare.

Karim momo10 months ago

I mentioned this in my third answer

Anton Tananaev10 months ago

Yeah, I know that you mentioned Cloudflare, but you never mentioned you have some special configuration there beyond just DNS records.

Karim momo10 months ago

Cloudflare chosen by default Flexible (Encrypts traffic between the browser and Cloudflare) in SSL/TLS setting. After some research I found that I will have to change Full (Encrypts end-to-end, using a self signed certificate on the server) in ma domain name setting.

Anton Tananaev10 months ago

Why do you need Apache configuration if you're doing SSL in Cloudflare?