# Box still accessible via http with IP address

**URL:** <https://discourse.mailinabox.email/t/box-still-accessible-via-http-with-ip-address/4351>\
**Category:** Help with Setup/Upgrade\
**Created:** [January 17, 2019, 5:56pm UTC](https://discourse.mailinabox.email/t/box-still-accessible-via-http-with-ip-address/4351 "2019-01-17T17:56:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlfedor](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/r/9fc348/32.png) [@rlfedor](https://discourse.mailinabox.email/u/rlfedor)\
**Post date:** [January 17, 2019, 5:56pm UTC](https://discourse.mailinabox.email/t/box-still-accessible-via-http-with-ip-address/4351/1 "2019-01-17T17:56:41Z")

</div>

I’ve installed and have been using MAIB on a Digital Ocean VPS. I’m running the current 0.40 version on Ubuntu 18.04. Everything is working fine the System Status Check all checked good. My problem is even with the SSL enabled and all certificates working fine, I can still access the box via the non-secure http: using the IP dress. Is this normal? The domain name is redirected. Is there a way to redirect the traffic to https: only. I’ve seen several ways to do it on the internet, I’m just concerned about messing up the MAIB system.

Thanks

---

<div class="post-metadata">

**Author:** ![murgero](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/murgero/32/750_2.png) [@murgero](https://discourse.mailinabox.email/u/murgero)\
**Post date:** [January 17, 2019, 6:28pm UTC](https://discourse.mailinabox.email/t/box-still-accessible-via-http-with-ip-address/4351/2 "2019-01-17T18:28:13Z")

</div>

I believe it’s supposed to redirect

---

<div class="post-metadata">

**Author:** ![brschroeder](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/b/8c91f0/32.png) [@brschroeder](https://discourse.mailinabox.email/u/brschroeder)\
**Post date:** [January 18, 2019, 6:35am UTC](https://discourse.mailinabox.email/t/box-still-accessible-via-http-with-ip-address/4351/3 "2019-01-18T06:35:10Z")

</div>

Yes, it is supposed to redirect and I believe is setup in /etc/nginx/conf.d/local.conf by this line from the “server http 80” section

- return 301 https://host.name.here$request\_uri;

Do not see this behavior on Linode. All http://IPv4\_ADDRESS/{,mail,admin} redirect to https://.

---

<div class="post-metadata">

**Author:** ![murgero](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/murgero/32/750_2.png) [@murgero](https://discourse.mailinabox.email/u/murgero)\
**Post date:** [January 18, 2019, 3:40pm UTC](https://discourse.mailinabox.email/t/box-still-accessible-via-http-with-ip-address/4351/4 "2019-01-18T15:40:12Z")

</div>

If it’s just it’s IP, no admin will be using that to browse the /admin endpoint. And tbh, users wont know (unless their especially gifted power users) to go to a server’s IP instead of it’s FQDN.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [January 25, 2019, 3:40pm UTC](https://discourse.mailinabox.email/t/box-still-accessible-via-http-with-ip-address/4351/5 "2019-01-25T15:40:14Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
