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?

  • 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

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.


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 ( 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?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.