Can the packages from nginx.org be used?

Hello everyone

I’ve been using HestiaCP on Debian Bookworm for a few months now. I also use the repositories from sury.org for PHP and, until recently, for nginx. Unfortunately, nginx support has been discontinued, and I’m currently researching what I can do.

Unfortunately, the research is proving somewhat difficult. I found the GitHub repository GitHub - blendbyte/nginx-modules: Debian apt repository of nginx dynamic modules (brotli, zstd, geoip2, ModSecurity, headers-more, and more), built against the official nginx.org stable releases. A migration path for sury's nginx users. · GitHub. The instructions state that you need to add the official nginx repository to use the modules.

Now I’m unsure whether this would work in combination with HestiaCP. Hence my post here in the forum, hoping that someone with deeper knowledge of HestiaCP can give me an answer.

Greetings from Germany,
Tobias

Hi,

Yes, it should work but Hestia uses the mainline repo for Nginx so you should change it to use the stable version.

Thanks for the quick reply. So, would it be possible with these steps?

  1. Add the nginx.org stable repository following these instructions (nginx: Linux packages). However, do not perform an update/upgrade.

  2. Add the blendbyte repository and perform the migration (including backing up the nginx configuration).

I think I’ll create a current backup of my server later and then test whether it works.

Yes, but keep in mind that I’m assuming that you installed Hestia and that the current Nginx configuration is the one added by Hestia.

That’s a good idea.