# Ativa FORCE HTTPS

**URL:** https://community.xibo.org.uk/t/ativa-force-https/27231
**Category:** Uncategorised Topics
**Created:** [April 28, 2022, 5:58pm UTC](https://community.xibo.org.uk/t/ativa-force-https/27231 "2022-04-28T17:58:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jadson\_Lima](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/jadson_lima/32/12417_2.png) [@Jadson\_Lima](https://community.xibo.org.uk/u/Jadson_Lima)
#### Post date: [April 28, 2022, 5:58pm UTC](https://community.xibo.org.uk/t/ativa-force-https/27231/1 "2022-04-28T17:58:01Z")

</div>

Boa tarde,  
Alguem poderia me ajudar. Habilitei o force htpps e agora não conseguido acessar mais a pagina de administração.

---

<div class="post-metadata">

### Author: ![natasha](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/natasha/32/18270_2.png) [@natasha](https://community.xibo.org.uk/u/natasha)
#### Post date: [April 29, 2022, 12:09pm UTC](https://community.xibo.org.uk/t/ativa-force-https/27231/2 "2022-04-29T12:09:21Z")

</div>

Hi and welcome to our Community!

Do take a look at the solution provided in this post:

> [@Force https = cant reach page](https://community.xibo.org.uk/t/force-https-cant-reach-page/22960/9):
>
> When FORCE HTTPS ON is selected in the CMS, on every request we have the PHP code check that the HTTP\_SCHEME is in HTTP\_X\_FORWARDED\_PROTO is https and if it is not, we issue a redirect to https. What is happening for you @aponkye is that your https:// URL does not contain https because the proxy is not setting that correctly. You could put a really simple test file in /custom/userscripts called test.php containing: \<?php echo 'Testing HTTPS' . PHP\_EOL; echo 'REMOTE\_ADDR: ' . $\_SERVER['REMOTE\_…

Do let us know if this solves your issue 🙂

---

<div class="post-metadata">

### Author: ![Jadson\_Lima](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/jadson_lima/32/12417_2.png) [@Jadson\_Lima](https://community.xibo.org.uk/u/Jadson_Lima)
#### Post date: [May 3, 2022, 11:36am UTC](https://community.xibo.org.uk/t/ativa-force-https/27231/3 "2022-05-03T11:36:21Z")

</div>

Tem alguma outra forma de ajustar essa configuração, queria desmarcar essa opção de forçar pelo https.

---

<div class="post-metadata">

### Author: ![Jadson\_Lima](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/jadson_lima/32/12417_2.png) [@Jadson\_Lima](https://community.xibo.org.uk/u/Jadson_Lima)
#### Post date: [May 4, 2022, 7:13pm UTC](https://community.xibo.org.uk/t/ativa-force-https/27231/4 "2022-05-04T19:13:37Z")

</div>

Olá Natasha. Boa tarde!  
Você consegue indicar alguém para prestar uma consultoria para me ajudar no meu problema sobre habilitar o https e ficar sem acesso a pagina de administração?

---

<div class="post-metadata">

### Author: ![natasha](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/natasha/32/18270_2.png) [@natasha](https://community.xibo.org.uk/u/natasha)
#### Post date: [May 6, 2022, 10:23am UTC](https://community.xibo.org.uk/t/ativa-force-https/27231/5 "2022-05-06T10:23:57Z")

</div>

The only way to turn that setting back off is via a database edit as mentioned here:

> [@Force https = cant reach page](https://community.xibo.org.uk/t/force-https-cant-reach-page/22960/2):
>
> This setting: [image] Xibo looks at each incoming connection and if it detects that it is using http it redirects to https. If https was working before you enabled it, then you should be fine. Solution 1 is to make HTTPS work slight_smile Solution 2 is to get a command line to the database and set the setting back again. UPDATE `setting` SET value = 0 WHERE setting = 'FORCE\_HTTPS'; Thanks, Dan

If this is with Docker, then to run the command you would need to do the following:

> [@How can I run a SQL command when using a Docker Install?](https://community.xibo.org.uk/t/how-can-i-run-a-sql-command-when-using-a-docker-install/9946):
>
> While troubleshooting an issue you maybe asked to run a SQL statement on your database Docker container, or you may want to run a statement yourself for another purpose. To do either of these things there are two options. Using the command line Using the GUI called PhpMyAdmin Command Line Before you can run a statement inside the docker container you will need to find the container name. This can be done using the docker ps command. The resulting output will show a list of running docker con…

To fix the underlying issue, assuming the CMS is behind an Apache reverse proxy, you would need to add the following to the Apache configuration:

`proxy_set_header X-Forwarded-Proto $scheme;`
