Havouza Posted May 8, 2017 Posted May 8, 2017 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?
0 the.rampage.rado Posted May 8, 2017 Posted May 8, 2017 Yes, it's good. I've been running my PS on such setup. But for now I think the best setup is litespeed+http2+php7
0 Traumflug Posted May 8, 2017 Posted May 8, 2017 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 roband7 Posted May 8, 2017 Posted May 8, 2017 @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 Havouza Posted May 8, 2017 Author Posted May 8, 2017 What I am after is the setup of the most perfect TB host
0 roband7 Posted May 8, 2017 Posted May 8, 2017 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 Traumflug Posted May 9, 2017 Posted May 9, 2017 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 Havouza Posted May 9, 2017 Author Posted May 9, 2017 What I was looking at was to use the nginx as front and let the Apache do the php work
0 Havouza Posted May 11, 2017 Author Posted May 11, 2017 Then we setup a test like that and install a tb for tests
0 Havouza Posted May 12, 2017 Author Posted May 12, 2017 Is there anyone in this forum that have tested to run TH (or PS) on a Nginx. Outcome?
0 roband7 Posted May 12, 2017 Posted May 12, 2017 Many of us have run both PS 1.6 and TB 1.0 using nginx. It works fine. If you have more specific questions just bring them on.
0 Havouza Posted May 12, 2017 Author Posted May 12, 2017 What does Nginx do better than Apache? Seems that you pros prefer that solution
0 dynambee Posted May 12, 2017 Posted May 12, 2017 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 Havouza Posted May 12, 2017 Author Posted May 12, 2017 Interesting article that advocates the same that 50 others do, use both together.
0 Havouza Posted May 12, 2017 Author Posted May 12, 2017 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 roband7 Posted May 12, 2017 Posted May 12, 2017 In order to run something as simple as TB nginx needs apache about as much as a fish needs a bicycle.
0 Havouza Posted May 12, 2017 Author Posted May 12, 2017 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 dprophitjr Posted June 3, 2017 Posted June 3, 2017 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 Havouza Posted June 3, 2017 Author Posted June 3, 2017 @dprophitjr I have hard to understand your post
0 dprophitjr Posted June 3, 2017 Posted June 3, 2017 @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
0 dprophitjr Posted June 9, 2017 Posted June 9, 2017 @mdekker No. I did mean it. I just need to revisit it from time to time.
Question
Havouza
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now