Support

Admin Tools

#40150 ngnix vs apache

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
441
PHP version
813
Admin Tools version
latest

Latest post by hbproph on Tuesday, 16 January 2024 12:50 CST

hbproph

Hi Team,

 

I have just a small technical question, sorry its probably noob but i couldnt figure this out..

 

So we have websites on Plesk server, and in the past we only used dedicated FPM handler with Apache.

 

Of course all websites has Admin tools.

 

Long story make it short, we was forced to changed to Ngnix instead of Apache because of issues with memory consumption on the server. (because of Apache handler)

 

And here comes my question, we know that ngnix not uses htaccess, so, now that i changed to ngnix the protection of our sites become weaker?

Because Admin tools is the best and more strongest on Apache supported websites?

 

Other way around: is there a difference of protection level if i use Apache and if i use ngnix?

Even what i login to the site and checking admin tools it has way fever option when the server runs ngnix... :(

Please let me know this im worried about our sites.

 

Thank you in advance for your explanation

nicholas
Akeeba Staff
Manager

Do remember that Admin Tools' .htaccess Maker ALSO comes as NginX Configuration Maker (for NginX) and Web.config Maker (for Microsoft IIS). The .htaccess Maker and NginX Configuration Maker have feature parity to the extent that something is supported on both server – there are some server-specific tweaks in each one. I use both Apache and NginX on production, testing, and development sites. The only downside to NginX is that changes are not applied immediately; you have to reload the server, which if I am not mistaken happens through Plesk itself (I run my own servers, I restart NginX through the command line).

Moreover, Admin Tools also adds another two layers of protection which are not tied to a particular server technology. The Web Application Firewall is PHP code running inside Joomla!. The PHP File Change Scanner is also PHP code.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

hbproph

Thank you very much for this explanation Nicholas, we wanted to fix the memory issue and wanted to change back to Apache, just because of this, but based on your answer we dont have to worry about less security with ngnix.

Its also a good news because we experience significant performance increase under ngnix compared to Apache!

 

So, then if its like this then we will stays with ngnix, thank you again!!

nicholas
Akeeba Staff
Manager

Yes, NginX is by default much faster than Apache. You can make Apache be just as fast, but it takes a lot of tweaking and experimenting with different MPMs and the various memory-mapping options. Another reason NginX is fast is that it does not support anything like .htaccess files. If you turn these off in Apache you also get quite a bit of performance.

All things told, though, squeezing performance off NginX is always easier than with Apache.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

hbproph

Thanks again Nicholas!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!