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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















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

















  • 3





    You can certainly serve phpBB with nginx.

    – Michael Hampton
    Jan 23 at 20:00











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

    – qorg11
    Jan 23 at 20:11












  • If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?

    – Tommiie
    Jan 24 at 7:54











  • my question wasn't about how to fix phpbb. please read the title

    – qorg11
    Jan 24 at 14:01















1















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

















  • 3





    You can certainly serve phpBB with nginx.

    – Michael Hampton
    Jan 23 at 20:00











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

    – qorg11
    Jan 23 at 20:11












  • If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?

    – Tommiie
    Jan 24 at 7:54











  • my question wasn't about how to fix phpbb. please read the title

    – qorg11
    Jan 24 at 14:01













1












1








1








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














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













share|improve this question











share|improve this question




share|improve this question










asked Jan 23 at 19:53









qorg11qorg11

193




193







  • 3





    You can certainly serve phpBB with nginx.

    – Michael Hampton
    Jan 23 at 20:00











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

    – qorg11
    Jan 23 at 20:11












  • If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?

    – Tommiie
    Jan 24 at 7:54











  • my question wasn't about how to fix phpbb. please read the title

    – qorg11
    Jan 24 at 14:01












  • 3





    You can certainly serve phpBB with nginx.

    – Michael Hampton
    Jan 23 at 20:00











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

    – qorg11
    Jan 23 at 20:11












  • If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?

    – Tommiie
    Jan 24 at 7:54











  • my question wasn't about how to fix phpbb. please read the title

    – qorg11
    Jan 24 at 14:01







3




3





You can certainly serve phpBB with nginx.

– Michael Hampton
Jan 23 at 20:00





You can certainly serve phpBB with nginx.

– Michael Hampton
Jan 23 at 20:00













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

– qorg11
Jan 23 at 20:11






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

– qorg11
Jan 23 at 20:11














If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?

– Tommiie
Jan 24 at 7:54





If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?

– Tommiie
Jan 24 at 7:54













my question wasn't about how to fix phpbb. please read the title

– qorg11
Jan 24 at 14:01





my question wasn't about how to fix phpbb. please read the title

– qorg11
Jan 24 at 14:01










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






















      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%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 Jan 23 at 20:07









          Tim BrighamTim Brigham

          13.3k74995




          13.3k74995























              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



























                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

























                  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













                  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












                  share|improve this answer



                  share|improve this answer










                  answered Jan 23 at 20:11









                  KorxifKorxif

                  311




                  311



























                      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%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

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay