• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

NGINX reason not too?

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
25,775 (3.79/day)
Location
Alabama
System Name Rocinante
Processor I9 14900KS
Motherboard EVGA z690 Dark KINGPIN (modded BIOS)
Cooling EK-AIO Elite 360 D-RGB
Memory 64GB Gskill Trident Z5 DDR5 6000 @6400
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 500GB 980 Pro | 1x 1TB 980 Pro | 1x 8TB Corsair MP400
Display(s) Odyssey OLED G9 G95SC
Case Lian Li o11 Evo Dynamic White
Audio Device(s) Moondrop S8's on Schiit Hel 2e
Power Supply Bequiet! Power Pro 12 1500w
Mouse Lamzu Atlantis mini (White)
Keyboard Monsgeek M3 Lavender, Akko Crystal Blues
VR HMD Quest 3
Software Windows 11
Benchmark Scores I dont have time for that.
I just watched a presentation on NGINX from a speaker at IPC and I absolutely loved what I saw. I run Apache now and it probably wouldn't be too detrimental for me to bring the web server down for a few days to migrate things.

Is there a reason NOT to move to NGINX from Apache? Are there glaring issues that are 'expected' I should watch out for?
 
Joined
Aug 20, 2007
Messages
20,710 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches
Software Windows 11 Enterprise (legit), Gentoo Linux x64
I've used nginx for years. No complaints and performance is far superior on static content, slightly better to equal on dynamic/php content.

It's kind of a pain to learn it's config file. But that's really the only drawback IMO.
 

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
25,775 (3.79/day)
Location
Alabama
System Name Rocinante
Processor I9 14900KS
Motherboard EVGA z690 Dark KINGPIN (modded BIOS)
Cooling EK-AIO Elite 360 D-RGB
Memory 64GB Gskill Trident Z5 DDR5 6000 @6400
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 500GB 980 Pro | 1x 1TB 980 Pro | 1x 8TB Corsair MP400
Display(s) Odyssey OLED G9 G95SC
Case Lian Li o11 Evo Dynamic White
Audio Device(s) Moondrop S8's on Schiit Hel 2e
Power Supply Bequiet! Power Pro 12 1500w
Mouse Lamzu Atlantis mini (White)
Keyboard Monsgeek M3 Lavender, Akko Crystal Blues
VR HMD Quest 3
Software Windows 11
Benchmark Scores I dont have time for that.
I've used nginx for years. No complaints and performance is far superior on static content, slightly better to equal on dynamic/php content.

It's kind of a pain to learn it's config file. But that's really the only drawback IMO.

Thank you this is useful! I was a little worried dynamic content would suffer alot I am ok with it NOT having a performance boost with Dynamic content but I would be sad if I took a performance hit.
 
Joined
Aug 20, 2007
Messages
20,710 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches
Software Windows 11 Enterprise (legit), Gentoo Linux x64
Thank you this is useful! I was a little worried dynamic content would suffer alot I am ok with it NOT having a performance boost with Dynamic content but I would be sad if I took a performance hit.

In my experience, it likes a bit more ram for dynamic content, but I have not seen a performance hit. But I don't run a huge website, so take it with a grain of salt.
 

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
25,775 (3.79/day)
Location
Alabama
System Name Rocinante
Processor I9 14900KS
Motherboard EVGA z690 Dark KINGPIN (modded BIOS)
Cooling EK-AIO Elite 360 D-RGB
Memory 64GB Gskill Trident Z5 DDR5 6000 @6400
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 500GB 980 Pro | 1x 1TB 980 Pro | 1x 8TB Corsair MP400
Display(s) Odyssey OLED G9 G95SC
Case Lian Li o11 Evo Dynamic White
Audio Device(s) Moondrop S8's on Schiit Hel 2e
Power Supply Bequiet! Power Pro 12 1500w
Mouse Lamzu Atlantis mini (White)
Keyboard Monsgeek M3 Lavender, Akko Crystal Blues
VR HMD Quest 3
Software Windows 11
Benchmark Scores I dont have time for that.
Have you seen any performance issues with the separate worker threads? or stability issues? In theory it sounds fantastic like separate process threads for chrome tabs, but I know in some instances more isn't always better. Though it is a factor I am really excited about.
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
26,956 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
Some learning curve because no more .htaccess and no more mod_php, so you have to to setup php-fpm.

Also not sure about your site traffic, might make absolutely no difference in the end and just cost time to setup.

Otherwise nginx is great, we use it a lot.
 
Joined
Jun 22, 2015
Messages
203 (0.06/day)
last time i checked (last year?), apache was still "better" (less resources, faster throughput with less cpu usage) at serving static resources than nginx, that might have changed by now
still, even if most of the content you serve is dynamic, nginx is great (the nginx.conf at first might look kinda weird, but i like it more than the htaccess alternative)
 

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
25,775 (3.79/day)
Location
Alabama
System Name Rocinante
Processor I9 14900KS
Motherboard EVGA z690 Dark KINGPIN (modded BIOS)
Cooling EK-AIO Elite 360 D-RGB
Memory 64GB Gskill Trident Z5 DDR5 6000 @6400
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 500GB 980 Pro | 1x 1TB 980 Pro | 1x 8TB Corsair MP400
Display(s) Odyssey OLED G9 G95SC
Case Lian Li o11 Evo Dynamic White
Audio Device(s) Moondrop S8's on Schiit Hel 2e
Power Supply Bequiet! Power Pro 12 1500w
Mouse Lamzu Atlantis mini (White)
Keyboard Monsgeek M3 Lavender, Akko Crystal Blues
VR HMD Quest 3
Software Windows 11
Benchmark Scores I dont have time for that.
Some learning curve because no more .htaccess and no more mod_php, so you have to to setup php-fpm.

Also not sure about your site traffic, might make absolutely no difference in the end and just cost time to setup.

Otherwise nginx is great, we use it a lot.

Would you say its steep? I would be trying this in the lab first. if its not to terrible I would like to take the time to do it. Load balancing looks very simple in Nginx
 
Joined
Aug 20, 2007
Messages
20,710 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches
Software Windows 11 Enterprise (legit), Gentoo Linux x64
last time i checked (last year?), apache was still "better" (less resources, faster throughput with less cpu usage) at serving static resources than nginx, that might have changed by now

I think that depends largely on the load. For low loads apache will always appear better at static content. But it scales horribly, whereas nginx does so amazingly well.

Would you say its steep? I would be trying this in the lab first. if its not to terrible I would like to take the time to do it. Load balancing looks very simple in Nginx

If the applications you have aren't setup with nginx configigs, the lack of .htaccess can be a major PITA. I still run into that sometimes and it's kinda hard to fight with at times even for someone who has run with nginx for a while. That's my honest assessment.

Keep in mind, officially my job description does not even allow me to touch the webserver at work so I'm not technically that skilled. Doesn't mean I haven't, as I have a pretty diverse skillset and for lack of a better term, our actual web admin is a moron.
 
Joined
Jun 22, 2015
Messages
203 (0.06/day)
Would you say its steep? I would be trying this in the lab first. if its not to terrible I would like to take the time to do it. Load balancing looks very simple in Nginx
not at all, you will get the hang of it in a couple of minutes, it just seems more expressive (and is)
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.96/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
At work we use Nginx for HTTPS termination and as a load balancer/reverse HTTP proxy. Nginx is far more capable at handling large numbers of connections compared to Apache. I can't say much for its PHP-FPM performance though but for what we use it for, it's phenomenal.
Would you say its steep? I would be trying this in the lab first. if its not to terrible I would like to take the time to do it. Load balancing looks very simple in Nginx
If you're used to configuring Apache confs by hand, I doubt it will feel steep... just maybe a little different but, strangely the same.
 

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
25,775 (3.79/day)
Location
Alabama
System Name Rocinante
Processor I9 14900KS
Motherboard EVGA z690 Dark KINGPIN (modded BIOS)
Cooling EK-AIO Elite 360 D-RGB
Memory 64GB Gskill Trident Z5 DDR5 6000 @6400
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 500GB 980 Pro | 1x 1TB 980 Pro | 1x 8TB Corsair MP400
Display(s) Odyssey OLED G9 G95SC
Case Lian Li o11 Evo Dynamic White
Audio Device(s) Moondrop S8's on Schiit Hel 2e
Power Supply Bequiet! Power Pro 12 1500w
Mouse Lamzu Atlantis mini (White)
Keyboard Monsgeek M3 Lavender, Akko Crystal Blues
VR HMD Quest 3
Software Windows 11
Benchmark Scores I dont have time for that.
At work we use Nginx for HTTPS termination and as a load balancer/reverse HTTP proxy. Nginx is far more capable at handling large numbers of connections compared to Apache. I can't say much for its PHP-FPM performance though but for what we use it for, it's phenomenal.

If you're used to configuring Apache confs by hand, I doubt it will feel steep... just maybe a little different but, strangely the same.

I actually did alot of my apache configs by hand. So this is good information.
 
Top