• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

[solved] backend server nginx down HAProxy

Scheduled Pinned Locked Moved Cache/Proxy
45 Posts 3 Posters 10.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    wesleylc1 Rebel Alliance
    last edited by wesleylc1 Sep 19, 2019, 7:37 PM Sep 19, 2019, 7:34 PM

    @PiBa can you explain to me, why the backen only focused up after using the setting "HTTP / 1.1 \ r \ nHost: \ nextcloud.projectus.com.br"?

    Captura de tela de 2019-09-19 16-37-12.png

    P 1 Reply Last reply Sep 19, 2019, 7:42 PM Reply Quote 0
    • P
      PiBa @wesleylc1
      last edited by Sep 19, 2019, 7:42 PM

      @wesleylc1
      Can you tell me why your nginx configuration requires the host header to be send in requests?

      W 2 Replies Last reply Sep 19, 2019, 8:31 PM Reply Quote 0
      • W
        wesleylc1 Rebel Alliance @PiBa
        last edited by Sep 19, 2019, 8:31 PM

        @PiBa I really don't know why ngix requires the header to be sent on requests; I followed an Internet totorial to deploy "nextcloud" using nginx. Can you open the link to try to help me understand?

        How to Install NextCloud on Ubuntu 18.04 with Nginx (LEMP Stack)

        1 Reply Last reply Reply Quote 0
        • W
          wesleylc1 Rebel Alliance @PiBa
          last edited by Sep 20, 2019, 7:45 PM

          @PiBa Hi man, these were the answers I found about your question.

          In order to figure out which virtual host to use, I think

          This causes you to go to the default_server host_server

          P 1 Reply Last reply Sep 23, 2019, 7:09 PM Reply Quote 0
          • P
            PiBa @wesleylc1
            last edited by Sep 23, 2019, 7:09 PM

            @wesleylc1
            Then it seems you have answered your question why the host header must be send in checks 👍 . HAProxy's health-checks by default do not send this header and your nginx configuration needs it to find the correct virtual host with the server_name configuration. The 'default virtual host' likely returns the 400 response status. Its nice to know that doing some research and actually understanding how things work you can succeed with fishing without needing other people to give you the fish, that will definitely help with future diagnosing of issues.

            1 Reply Last reply Reply Quote 0
            41 out of 45
            • First post
              41/45
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received