# Configuring host rule correctly

**URL:** <https://community.traefik.io/t/configuring-host-rule-correctly/9113>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [December 24, 2020, 1:42am UTC](https://community.traefik.io/t/configuring-host-rule-correctly/9113 "2020-12-24T01:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlanGRutter](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@AlanGRutter](https://community.traefik.io/u/AlanGRutter)\
**Post date:** [December 24, 2020, 1:42am UTC](https://community.traefik.io/t/configuring-host-rule-correctly/9113/1 "2020-12-24T01:42:43Z")

</div>

I am trying to configure Traefik on a VPS. I want to test my services by accessing through the VPS IP address. I can access the Traefik dashboard without an issue but I'm having problems when trying to use Guacamole or Portainer containers.

I have a rule - Host(`<my ip>`) && PathPrefix(`/portainer`)  
and I also then strip the prefix /portainer using middlewares.

when I open a browser window to http:///portainer the Portainer window loads and shows 'Loading Portainer'. I can see from the network traffic that requests for resources like vendor1.css are failing with a 404 error.

Can anyone help me with the correct rule configuration?

Thanks  
Alan

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [December 24, 2020, 12:50pm UTC](https://community.traefik.io/t/configuring-host-rule-correctly/9113/2 "2020-12-24T12:50:31Z")

</div>

@kevinpollet Answered this just [yesterday for portainer,](https://community.traefik.io/t/all-subdirectories-return-404/9108/2)

And @deeztek had guacamole running in [this topic](https://community.traefik.io/t/addprefix-label-is-ignored/5009)
