# Only allow access to webserver with FQDN

**URL:** <https://forum.pritunl.com/t/only-allow-access-to-webserver-with-fqdn/846>\
**Category:** Pritunl VPN\
**Tags:** pritunl\
**Created:** [March 13, 2023, 9:40am UTC](https://forum.pritunl.com/t/only-allow-access-to-webserver-with-fqdn/846 "2023-03-13T09:40:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tracing7565](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/t/bbe5ce/32.png) [@Tracing7565](https://forum.pritunl.com/u/Tracing7565)\
**Post date:** [March 13, 2023, 9:40am UTC](https://forum.pritunl.com/t/only-allow-access-to-webserver-with-fqdn/846/1 "2023-03-13T09:40:06Z")

</div>

Hello,

as the frontend should be accessible to the internet, so users can do SSO and/or download profile, how can I limit Pritunl web interface to be served only when using FQDN and not an IP address? It is pretty simple to do with vhosts when using apache / nginx, but I cannot find something like this for the Pritunl server.

Thanks!

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [March 13, 2023, 4:30pm UTC](https://forum.pritunl.com/t/only-allow-access-to-webserver-with-fqdn/846/2 "2023-03-13T16:30:35Z")

</div>

There isn’t any option in Pritunl to configure this and it shouldn’t be configured. Certain configurations including WireGuard connections will make direct HTTP connections with the servers virtual VPN IP address.

---

<div class="post-metadata">

**Author:** ![Tracing7565](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/t/bbe5ce/32.png) [@Tracing7565](https://forum.pritunl.com/u/Tracing7565)\
**Post date:** [March 13, 2023, 4:59pm UTC](https://forum.pritunl.com/t/only-allow-access-to-webserver-with-fqdn/846/3 "2023-03-13T16:59:31Z")

</div>

So what would be a correct setup when using HA Proxy in front of the web server?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [March 13, 2023, 5:12pm UTC](https://forum.pritunl.com/t/only-allow-access-to-webserver-with-fqdn/846/4 "2023-03-13T17:12:41Z")

</div>

If the load balancer is configured externally to the Pritunl server this will not cause any problems. The internal requests get sent over the VPN connection and would skip the external load balancer. Attempting to modify the Pritunl web server or running web server software on the same host could cause problems with this.
