How to add nginx module which is not by default

Hello.

I needed the Nginx module, which is not in the assembly by default: The ngx_http_secure_link_module module (pagespeed, rtmp will also come in handy).

As I understand it, you need to rebuild Nginx. How do I do this on an installed hestiacp panel? If the current version is being updated, do you need to explicitly write the Nginx path?

So: ./configure --conf-path = / etc / nginx / nginx.conf --error-log-path = / var / log / nginx / error.log --sbin-path = / usr / sbin / nginx - -pid-path = / var / run / nginx.pid --lock-path = / var / lock / nginx.lock --http-log-path = / var / log / nginx / access.log --http-client -body-temp-path = / var / lib / nginx / body --http-proxy-temp-path = / var / lib / nginx / proxy --http-fastcgi-temp-path = / var / lib / nginx / fastcgi --http-uwsgi-temp-path = / var / lib / nginx / uwsgi --http-scgi-temp-path = / var / lib / nginx / scgi --prefix = / var / lib / nginx --with -http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_sub_module --with-http_realip_module --with-http_gzip_static_module --with-http_secure_link_module --with-http_secure_link_module -module = / temp / ngx_pagespeed-1.7.30.1-beta

will work ?

P.S. ScIT - are you vindictive !?

Nah, not at all. But I don’t see any need to help someone who rages around and try to trigger me. Good luck with the request :smiley:.

Secure link is enabled by default works fine on my server (All default)

	location ~* ^.+\.(mp4|webm|mp3|ogg|ogv)$ {
     proxy_cache    off;
         secure_link $arg_md5,$arg_expires;
         secure_link_md5 "$secure_link_expires$uri %user%";
         if ($secure_link = "") {
            return 403; 
         }
         if ($secure_link = "0") {
            return 403; 
         }
     root           %sdocroot%;
         access_log     /var/log/%web_system%/domains/%domain%.log combined;
         access_log     /var/log/%web_system%/domains/%domain%.bytes bytes;
    }
1 Like

Thanks Eris!
Please tell me from experience, m3u8 will work, or like this: mp4 | webm | mp3 | ogg | m3u8 | m3u | ogv ?

Are the pagespeed, rtmp modules in the installed hestiacp assembly?

In general, Nginx is a thing! I am gradually learning Nginx, but so far it’s not enough trying)

P.S. ScIT, are you great, not from Berlin yourself?

m3u8 I did never tried. As the m3u8 are most times static and updating with an dynamic string could be difficult

pagespeed are rtmp modules both not included

Please stop with such comments. Otherwise we will ban you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.