Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error while starting ngnix server #301

Closed
gk6301965 opened this issue Apr 11, 2023 · 4 comments
Closed

getting error while starting ngnix server #301

gk6301965 opened this issue Apr 11, 2023 · 4 comments

Comments

@gk6301965
Copy link

"/usr/share/nginx/modules/ngx_http_modsecurity_module.so" version 1019001 instead of 1018000 in /etc/nginx/nginx.conf
Above is the error I am getting plaese help

@martinhsv
Copy link
Contributor

Hello @gk6301965 ,

That sort of error message can appear if you have mismatched versions of nginx.

I.e. if the version of nginx that you are running (e.g. nginx -v) does not match the version of nginx that was used when the ngx_http_modsecurity_module was built.

@gk6301965
Copy link
Author

Hello @gk6301965 ,

That sort of error message can appear if you have mismatched versions of nginx.

I.e. if the version of nginx that you are running (e.g. nginx -v) does not match the version of nginx that was used when the ngx_http_modsecurity_module was built.

but how to slove this

@martinhsv
Copy link
Contributor

martinhsv commented Apr 11, 2023

When you are following instructions for the ModSecurity-nginx connector, there will be a step where you download the nginx source. This will be where you do make modules The version of the source code that you downloaded must be the same as the version of nginx that you are actually running.

See for example https://www.nginx.com/blog/compiling-and-installing-modsecurity-for-open-source-nginx/#4 %E2%80%93-Download-the-NGINX-Connector-for-ModSecurity-and-Compile-It-as-a-Dynamic-Module

@martinhsv
Copy link
Contributor

Closing due to no further feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants