Jump to content
thirty bees forum

Question

Posted

A question for all you network nerds on the forum Would it be a good idea to use a Nginx server as a reverse proxy instead of using an extrnal one? Anyone has experience?

21 answers to this question

Recommended Posts

  • 0
Posted

Some experience from a site running a forum and a wiki: Nginx is fast, mostly because of it's small memory footprint. For handling complex PHP it's not always up to the task, so it's a good idea to let it handle simple things like serving pictures, only. Such a setup isn't established by enabling a flag somewhere, it requires to edit Apache config files carefully, adding quite some complexity.

PS/30bz claims to allow loading pictures from an external media server. Never read about anybody using this, but code is there. It looks like a good, simple solution to set up such a media server using Nginx and let 30bz handle all the proxy decisions.

  • 0
Posted

@Traumflug Could you elaborate on "For handling complex PHP it’s not always up to the task"?

I know some people advocated this some years ago, but this was often for enterprisey supercomplicated setups they hardly understood and didn't dare reconfigure, often with weird apache-specific modules thrown into the mix.

Nginx and phpfpm has also come a long way since then.

From my experience running a pure nginx+phpfpm setup for PS/TB is no problem whatsoever.

  • 0
Posted

I would go for: Linux (either Ubuntu or CentOS) nginx with everything served over http2 PHP 7.0 with php-fpm mariadb

Just my 2 cents...

  • 0
Posted

Could you elaborate on “For handling complex PHP it’s not always up to the task”?

It's quite possible this has changed to the better in recent years. It's also possible that it works better with one web software than with another. PHP code sometimes makes assumptions which are true on an Apache server, but not on an Nginx one. Sometimes, not always.

If 30bz works fine on a pure Nginx server: great!

  • 0
Posted

I don't claim to be a hosting expert but NGINX themselves have an interesting and overall fairly informative writeup of the history and differences between NGINX and Apache: https://www.nginx.com/blog/nginx-vs-apache-our-view/

  • 0
Posted

I have now upgraded the server and use nginx as reverse proxy in front of Apache. As soon as I have a free ip address I will test to use only nginx

But already now I feel like the rendering time has improved

  • 0
Posted

Yes but with so many different sites on the server I will have both options but need to free an ip to be able to have both running as pure web servers on the same machine without chnaging port numbers

  • 0
Posted

https://github.com/denverprophitjr/Linux-Administration fork it and contribute? I was going to create branches for various hardware combos unless someone has a better idea how to organize so many different mixins?

  • 0
Posted

@Havouza If someone is a linux administrator or hobbyist who understands how to configure linux servers, I have already began an open source project on github to add those configuration files. Share, collaborate and improve it. https://github.com/denverprophitjr/Linux-Administration

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...