Nicolas Kovacs
2019-Dec-26 10:17 UTC
[CentOS] Nginx on CentOS 7: which one for production?
Hi, I'm currently fiddling with Nginx to get acquainted with its various quirks and idiosyncrasies. I have a public CentOS 7 sandbox server, and I've tried various setups. Install the binary from EPEL, install various binaries from SCLo, build from source. I wonder which version is recommended for production use on CentOS 7. Any suggestions? Cheers & happy Christmas holidays, Niki -- Microlinux - Solutions informatiques durables 7, place de l'?glise - 30730 Montpezat Site : https://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32 Mob. : 06 51 80 12 12
Kenneth Porter
2019-Dec-26 17:44 UTC
[CentOS] Nginx on CentOS 7: which one for production?
On 12/26/2019 2:17 AM, Nicolas Kovacs wrote:> I wonder which version is recommended for production use on CentOS 7. > Any suggestions?I suggest using the upstream package. Instructions can be found here: https://nginx.org/en/linux_packages.html#RHEL-CentOS There's some conflicting information about how to set up your virtual servers in /etc in various blogs. Look at the official documentation to see their recommended setup. Most of your customization goes in /etc/nginx/conf.d. https://nginx.org/en/docs/
Nicolas Kovacs
2019-Dec-26 19:35 UTC
[CentOS] Nginx on CentOS 7: which one for production?
Le 26/12/2019 ? 18:44, Kenneth Porter a ?crit?:> I suggest using the upstream package. Instructions can be found here: > > https://nginx.org/en/linux_packages.html#RHEL-CentOSOK> > There's some conflicting information about how to set up your virtual > servers in /etc in various blogs. Look at the official documentation to > see their recommended setup. Most of your customization goes in > /etc/nginx/conf.d. > > https://nginx.org/en/docs/A few weeks ago I bought an online video course about Nginx on Udemy, and I really enjoyed it. (Disclaimer: I'm not affiliated in any way) At this point I'm already vaguely familiar with setting up Nginx. I was only a little confused about which binary version to choose. Cheers, Niki -- Microlinux - Solutions informatiques durables 7, place de l'?glise - 30730 Montpezat Site : https://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32 Mob. : 06 51 80 12 12
On Thu, Dec 26, 2019 at 4:17 AM Nicolas Kovacs <info at microlinux.fr> wrote:> I wonder which version is recommended for production use on CentOS 7. > Any suggestions? >It all depends on your needs. The nginx repo has 1.16.1, EPEL currently has nginx 1.16.1 as well but could lag depending on the package maintainer. My take is that the upstream repo will be the most up to date, but the EPEL repo might be the most "correct" or tested on RHEL/CentOS.