DjangoPBX get ERR_INVALID_REDIRECT

vuthy09

Member
Jun 12, 2023
115
11
18
41
After newly install djangopbx on Debian 12, I got ERR_INVALID_REDIRECT, so what is the problem ? thanks
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,521
439
83
OK, I have never seen that error happen before, but I am suspecting that it could be an issue with the Nginx configuration rather than the DjangoPBX code itself.
Have you tried connecting using httsp in the url? I.E.: https://mylocalip/ Let me know if that works for you.
 
  • Like
Reactions: vuthy09

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,521
439
83
Just fixed a bug in the installer which meant that the http to https redirect did not work properly in the Nginx site config.

If you expose port 80 on an existing DjangoPBX installation you can fix this by editing /etc/nginx/sites-enabled/djangopbx and editing the "return 302" statement to read return 301 https://$host$request_uri;

Once done, restart nginx: service nginx restart