Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLs breaking on Fabio load balanced websites with F5 BigIP #849

Open
arunkchow opened this issue Nov 4, 2021 · 1 comment
Open

URLs breaking on Fabio load balanced websites with F5 BigIP #849

arunkchow opened this issue Nov 4, 2021 · 1 comment

Comments

@arunkchow
Copy link

I have built a typical Hashi Nomad-Consul cluster stack with the below setup:

  • 3 nodes of Nomad Servers
  • 3 nodes of Nomad Client servers
  • 3 nodes of Consul Servers
  • Consul agent running on all Nomad servers, Consul servers and Nomad clients for service discovery
  • Fabio LB systemd service on Nomad Client servers for load balancing the services and making them accessible via single endpoint using tags and urlPrefix
  • Operating system is RHEL8

Nomad Client servers are thrown into BigIP F5 pool with service port as 9999 for making the Fabio load balanced services available externally. Configuration wise, everything works just fine for single endpoint micro services.
However the the problem appears when theres multi-url links and pages within on a site or service deployed.

For example, if we wanted to host a simple promotional website which has links within to navigate it all falls apart.
Here's an example stanza for service for Fabio to pickup:

  service {
    name = "promo-nov"
    port = "http"
    tags = [
      "urlprefix-/uberpromo/ strip=/uberpromo",
    ]
    check {
      type     = "http"
      port     = "http"
      path     = "/"
      interval = "2s"
      timeout  = "2s"
    }
  }

I can get to home page of the promo site if I use the the F5 VIP URL with '/uberpromo/' tag. However, if I click a link on the webpage, for example, 'Contact Us' on the home page which should ideally take me to https://f5-hosted-url.com/uberpromo/contactus.html it drops '/uberpromo/' and takes me to the url https://f5-hosted-url.com/contactus.html and throws page not found.

And if I use the url https://f5-hosted-url.com/uberpromo/contactus.html directly it works but if I click 'home' on the page it breaks again. Takes me to https://f5-hosted-url.com dropping '/uberpromo/'.

Is there a solution or way around this problem.
Please suggest!

@KTruesdellENA
Copy link
Contributor

In the service stanza have you tried removing the strip=/uberpromo ? Would that still work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants