Nginx solves the problem of unknown directive "secure_link"

problem phenomenon

I want to use the --with-http_secure_link_module module of nginx, but this error will be prompted every time I start it. The unknown directive "secure_link" can also start nginx.

After repeated searches, I found that when using this module, the configure compilation option is not just a --with-http_secure_link_module, but also --with-http_stub_status_module

solution

The configure compilation parameter should contain two

--with-http_secure_link_module --with-http_stub_status_module

My compile configure parameters

./configure --prefix=/usr/cloudland/nginx/ --with-http_stub_status_module --with-http_gzip_static_module --with-http_gunzip_module --with-file-aio --with-threads --with-cc-opt=-O3 --with-http_ssl_module --with-openssl-opt=enable --with-http_flv_module --with-http_mp4_module --with-http_secure_link_module --with-http_stub_status_module  --add-module=../nginx-vod-module-1.28/ --add-module=../nginx-secure-token-module/ --add-module=../nginx_mod_akamai_g2o/ --add-module=../headers-more-nginx-module/

Guess you like

Origin blog.csdn.net/u011285281/article/details/129059453