Nginx config to make request from one server, then another (FE then BE) Announcing the arrival...

What does an IRS interview request entail when called in to verify expenses for a sole proprietor small business?

How to react to hostile behavior from a senior developer?

How does the particle を relate to the verb 行く in the structure「A を + B に行く」?

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

List *all* the tuples!

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

What does this icon in iOS Stardew Valley mean?

Generate an RGB colour grid

Echoing a tail command produces unexpected output?

Is pollution the main cause of Notre Dame Cathedral's deterioration?

The logistics of corpse disposal

Can a USB port passively 'listen only'?

Selecting the same column from Different rows Based on Different Criteria

How to tell that you are a giant?

How to find all the available tools in macOS terminal?

Why did the IBM 650 use bi-quinary?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

Should I discuss the type of campaign with my players?

51k Euros annually for a family of 4 in Berlin: Is it enough?

Why are there no cargo aircraft with "flying wing" design?

What exactly is a "Meth" in Altered Carbon?

How would the world control an invulnerable immortal mass murderer?

Why is "Consequences inflicted." not a sentence?

Are two submodules (where one is contained in the other) isomorphic if their quotientmodules are isomorphic?



Nginx config to make request from one server, then another (FE then BE)



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Nginx Config: Front-End Reverse Proxy to Another Portcan nginx retry request if unicorn is overloaded and returns a 502?How to serve html code from nginx and also ping upstream server for same request?nginx reverse proxy - try upstream A, then B, then A againSetting up DNS on reverse proxyNginx + mod_security without a backend serverNGINX Reverse Proxy, Config Video(MJPG) Stream to use a single connection to the Backend Servernginx proxy - can I forward the same request to multiple backends?NGINX config always falls back into default locationHow to configure multiple nested subdirectories in Nginx using wildcards?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server?



GET /index.html

-> try backend dev server -> 404 not found
-> try front-end dev server -> 200 ok!


Web apps have a front-end and back-end. I'm working with Quasar SPA front-end and a FeathersJS Node back-end.



In production, the back-end serves a built copy of the front-end.



In development, the front-end server is rebuilding and hot-loading separate from the back-end.



Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server?



Thanks!









share





























    0















    Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server?



    GET /index.html

    -> try backend dev server -> 404 not found
    -> try front-end dev server -> 200 ok!


    Web apps have a front-end and back-end. I'm working with Quasar SPA front-end and a FeathersJS Node back-end.



    In production, the back-end serves a built copy of the front-end.



    In development, the front-end server is rebuilding and hot-loading separate from the back-end.



    Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server?



    Thanks!









    share

























      0












      0








      0








      Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server?



      GET /index.html

      -> try backend dev server -> 404 not found
      -> try front-end dev server -> 200 ok!


      Web apps have a front-end and back-end. I'm working with Quasar SPA front-end and a FeathersJS Node back-end.



      In production, the back-end serves a built copy of the front-end.



      In development, the front-end server is rebuilding and hot-loading separate from the back-end.



      Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server?



      Thanks!









      share














      Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server?



      GET /index.html

      -> try backend dev server -> 404 not found
      -> try front-end dev server -> 200 ok!


      Web apps have a front-end and back-end. I'm working with Quasar SPA front-end and a FeathersJS Node back-end.



      In production, the back-end serves a built copy of the front-end.



      In development, the front-end server is rebuilding and hot-loading separate from the back-end.



      Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server?



      Thanks!







      nginx





      share












      share










      share



      share










      asked 3 mins ago









      Michael ColeMichael Cole

      223110




      223110






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963394%2fnginx-config-to-make-request-from-one-server-then-another-fe-then-be%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963394%2fnginx-config-to-make-request-from-one-server-then-another-fe-then-be%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Маріан Котлеба Зміст Життєпис | Політичні погляди |...