0

I want to use a feature that is in a fairlu new version of Nginx (TLS 1.3 support) and as such I needed to upgrade my Nginx to version 1.13.1, I did that fine along with pagespeed (1.11.33.2) as well as mod security (2.9.3)

I am using the above versions along with openssl 1.1.1 If I use 1.0.2 everything compiles fine and I have no issues with it except Nginx will not support TLS 1.3 which is the reason for the change.

Below is my code, please note I have removed unneeded parts as well as this is done in Chef so I have had to manually change some things to not be variables or ruby blocks. I have also not included downloading as well as checksum checking.

Bash commands used:

  cd'/work-disk/server_setup/compile_nginx'
    rm -rf /work-disk/server_setup/compile_nginx/mod_security/
    mkdir -p /work-disk/server_setup/compile_nginx/mod_security/
    tar -xzvf #{modsec_download_path} -C /work-disk/server_setup/compile_nginx/mod_security/
    mv /work-disk/server_setup/compile_nginx/mod_security/*/* #/work-disk/server_setup/compile_nginx/mod_security/

    ./autogen.sh
    ./configure --enable-standalone-module
    make
    make install
 cd /work-disk/server_setup/compile_nginx/nginx
  ./configure --add-module=#{modsec_module} --with-http_ssl_module --with-http_realip_module --without-mail_pop3_module --without-mail_smtp_module --without-mail_imap_module --without-http_uwsgi_module --without-http_scgi_module --without-http_fastcgi_module

Error I get when compiling:

configuring additional modules
adding module in /work-disk/server_setup/compile_nginx/ModSecurity/nginx/modsecurity
./configure: error: no /work-disk/server_setup/compile_nginx/ModSecurity/nginx/modsecurity/config was found
STDERR: make: *** No rule to make target 'build', needed by 'default'.  Stop.
make: *** No rule to make target 'install'.  Stop.

I think I managed to covert it all to not use variables, if a path doesn't make sense please just ask and I will check into it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.