Looking for nginx rules to differentiate if a subfolder is listed or not The 2019 Stack...

Are there any other methods to apply to solving simultaneous equations?

Why not take a picture of a closer black hole?

What is the closest word meaning "respect for time / mindful"

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

Can someone be penalized for an "unlawful" act if no penalty is specified?

Can a flute soloist sit?

When should I buy a clipper card after flying to OAK?

Output the Arecibo Message

Lightning Grid - Columns and Rows?

Should I use my personal e-mail address, or my workplace one, when registering to external websites for work purposes?

What tool would a Roman-age civilization have for the breaking of silver and other metals into dust?

Did 3000BC Egyptians use meteoric iron weapons?

Button changing it's text & action. Good or terrible?

Is there any way to tell whether the shot is going to hit you or not?

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Does a dangling wire really electrocute me if I'm standing in water?

Am I thawing this London Broil safely?

Who coined the term "madman theory"?

Apparent duplicates between Haynes service instructions and MOT

Have you ever entered Singapore using a different passport or name?

Resizing object distorts it (Illustrator CC 2018)

Is "plugging out" electronic devices an American expression?

Protecting Dualbooting Windows from dangerous code (like rm -rf)

Does the shape of a die affect the probability of a number being rolled?



Looking for nginx rules to differentiate if a subfolder is listed or not



The 2019 Stack Overflow Developer Survey Results Are InProxy HTTPS requests to a HTTP backend with NGINXnginx redirect issue with upstream configurationsvn using nginx Commit failed: path not foundNginx + Apache + Wordpress redirects to localhost/127.0.0.1Nginx proxy pass works for https but not httpnginx load balancer rewrite to listen portNginx subversion commit failureNginx/Apache: set HSTS only if X-Forwarded-Proto is httpsReverse proxy for nginx configuration for subpathIntermittent 502: bad gateway on nginx + shiny server





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







0















For example, if there is any subdirectory listed, keep the subdirectory. But if it's just the URL listed, then forward the user to localhost:3333/publiclink



  location /.(az)$ {
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_ssl_server_name on;
}

location / {
proxy_pass http://127.0.0.1:3333/publiclink;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_ssl_server_name on;
}








share









New contributor




linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    For example, if there is any subdirectory listed, keep the subdirectory. But if it's just the URL listed, then forward the user to localhost:3333/publiclink



      location /.(az)$ {
    proxy_pass http://127.0.0.1:3333;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    proxy_ssl_server_name on;
    }

    location / {
    proxy_pass http://127.0.0.1:3333/publiclink;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    proxy_ssl_server_name on;
    }








    share









    New contributor




    linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      For example, if there is any subdirectory listed, keep the subdirectory. But if it's just the URL listed, then forward the user to localhost:3333/publiclink



        location /.(az)$ {
      proxy_pass http://127.0.0.1:3333;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection 'upgrade';
      proxy_set_header Host $host;
      proxy_cache_bypass $http_upgrade;
      proxy_ssl_server_name on;
      }

      location / {
      proxy_pass http://127.0.0.1:3333/publiclink;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection 'upgrade';
      proxy_set_header Host $host;
      proxy_cache_bypass $http_upgrade;
      proxy_ssl_server_name on;
      }








      share









      New contributor




      linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      For example, if there is any subdirectory listed, keep the subdirectory. But if it's just the URL listed, then forward the user to localhost:3333/publiclink



        location /.(az)$ {
      proxy_pass http://127.0.0.1:3333;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection 'upgrade';
      proxy_set_header Host $host;
      proxy_cache_bypass $http_upgrade;
      proxy_ssl_server_name on;
      }

      location / {
      proxy_pass http://127.0.0.1:3333/publiclink;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection 'upgrade';
      proxy_set_header Host $host;
      proxy_cache_bypass $http_upgrade;
      proxy_ssl_server_name on;
      }






      nginx





      share









      New contributor




      linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share









      New contributor




      linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share








      edited 4 mins ago









      Michael Hampton

      174k27319646




      174k27319646






      New contributor




      linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 mins ago









      linuxorbsdlinuxorbsd

      1




      1




      New contributor




      linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      linuxorbsd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          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
          });


          }
          });






          linuxorbsd is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962545%2flooking-for-nginx-rules-to-differentiate-if-a-subfolder-is-listed-or-not%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








          linuxorbsd is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          linuxorbsd is a new contributor. Be nice, and check out our Code of Conduct.













          linuxorbsd is a new contributor. Be nice, and check out our Code of Conduct.












          linuxorbsd is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f962545%2flooking-for-nginx-rules-to-differentiate-if-a-subfolder-is-listed-or-not%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

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

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...