Is using apache and nginx at the same time a good idea?












3















I sometimes use apache in port 81 and run in port 80 (or 443) using nginx, like this



location / {
proxy_pass http://localhost:81
}


I have to do this because some software (Like phpbb does not run properly on nginx)
Is this a good idea?










share|improve this question







New contributor




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
















  • 2





    You can certainly serve phpBB with nginx.

    – Michael Hampton
    9 hours ago











  • >You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors

    – qorg11
    9 hours ago


















3















I sometimes use apache in port 81 and run in port 80 (or 443) using nginx, like this



location / {
proxy_pass http://localhost:81
}


I have to do this because some software (Like phpbb does not run properly on nginx)
Is this a good idea?










share|improve this question







New contributor




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
















  • 2





    You can certainly serve phpBB with nginx.

    – Michael Hampton
    9 hours ago











  • >You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors

    – qorg11
    9 hours ago
















3












3








3








I sometimes use apache in port 81 and run in port 80 (or 443) using nginx, like this



location / {
proxy_pass http://localhost:81
}


I have to do this because some software (Like phpbb does not run properly on nginx)
Is this a good idea?










share|improve this question







New contributor




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












I sometimes use apache in port 81 and run in port 80 (or 443) using nginx, like this



location / {
proxy_pass http://localhost:81
}


I have to do this because some software (Like phpbb does not run properly on nginx)
Is this a good idea?







nginx apache-2.4






share|improve this question







New contributor




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











share|improve this question







New contributor




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









share|improve this question




share|improve this question






New contributor




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









asked 9 hours ago









qorg11qorg11

232




232




New contributor




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





New contributor





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






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








  • 2





    You can certainly serve phpBB with nginx.

    – Michael Hampton
    9 hours ago











  • >You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors

    – qorg11
    9 hours ago
















  • 2





    You can certainly serve phpBB with nginx.

    – Michael Hampton
    9 hours ago











  • >You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors

    – qorg11
    9 hours ago










2




2





You can certainly serve phpBB with nginx.

– Michael Hampton
9 hours ago





You can certainly serve phpBB with nginx.

– Michael Hampton
9 hours ago













>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors

– qorg11
9 hours ago







>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors

– qorg11
9 hours ago












2 Answers
2






active

oldest

votes


















5














There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.



If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.






share|improve this answer































    3














    Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
    If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
    And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?






    share|improve this answer








    New contributor




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




















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


      }
      });






      qorg11 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%2f950438%2fis-using-apache-and-nginx-at-the-same-time-a-good-idea%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.



      If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.






      share|improve this answer




























        5














        There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.



        If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.






        share|improve this answer


























          5












          5








          5







          There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.



          If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.






          share|improve this answer













          There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.



          If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 9 hours ago









          Tim BrighamTim Brigham

          13.2k74995




          13.2k74995

























              3














              Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
              If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
              And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?






              share|improve this answer








              New contributor




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

























                3














                Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
                If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
                And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?






                share|improve this answer








                New contributor




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























                  3












                  3








                  3







                  Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
                  If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
                  And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?






                  share|improve this answer








                  New contributor




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










                  Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
                  If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
                  And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?







                  share|improve this answer








                  New contributor




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









                  share|improve this answer



                  share|improve this answer






                  New contributor




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









                  answered 9 hours ago









                  KorxifKorxif

                  311




                  311




                  New contributor




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





                  New contributor





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






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






















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










                      draft saved

                      draft discarded


















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













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












                      qorg11 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%2f950438%2fis-using-apache-and-nginx-at-the-same-time-a-good-idea%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

                      الفوسفات في المغرب

                      Four equal circles intersect: What is the area of the small shaded portion and its height

                      جامعة ليفربول