Help with nginx.conf

Jeremy Cocks jeremy at
Sat Nov 12 01:51:42 UTC 2022

You need to install the modsec lib from here (it has instructions)

Depending on what distribution you are on, there may also be a package for



On Fri, 11 Nov 2022 at 18:40, Gus Flowers Starkiller <relectgustfs at>

> Hi ! Thanks a lot for your explanation ! Well I've installed some Nginx
> servers all cases like configured like Proxy Reverse, But, at first I
> installed Nginx from pages different from but the source were get
> from nginx too (i think) and cases like nginx.conf is happening, different
> files with and other sources and for example that directories
> like sites-available and sites-enabled are missing after installation:
> e.g. /etc/nginx/sites-available and /etc/nginx/sites-enabled are not in
> installation from and as you say I could configure them to my
> own target, but in these cases I must install Nginx + ModSecurity + OWASP
> (CRS) because we must have the most security network with web pages to
> publicate.
> So, is there any configuration that you could recommend me?
> Another point too, I read the book about Nginx+Modsecurity from these book
> [image: image.png]
> And I couldn't find in which directories of linux is installed Nginx, in
> my cases Nginx and OWASP is in /usr/local/src but in the moment where I
> must compile Nginx there is error about module
> *"./configure: error: ngx_http_modsecurity_module requires the ModSecurity
> library."*
> Well I hope all these words don't disturb you at all, please sorry and any
> word you can tell me about this, I will be so grateful. Thanks a lot,
> greetings from Argentina.
> Gus Fls
> On Fri, 11 Nov 2022 at 15:07, Reinis Rozitis <r at> wrote:
>> > in a network that is using Nginx as Proxy Reverse since some years, the
>> nginx.conf file is like this include with Nginx-1.23.2 and that file
>> appears like this..
>> >
>> > The second file is Nginx directly from, my question is, Why
>> that difference between both files ????
>> nginx.conf is your individual configuration for your
>> webserver/application.
>> Different (linux) distributions or products (which use nginx as part of
>> their stack) might have different nginx.conf files and might place them in
>> different system locations and could be split in different parts.
>> Often the provided configuration is only as a sample.
>> In short - there is no sense in comparing two configuration files as
>> those might serve for different purposes.
>> Unless you meant something specific?
>> rr
>> _______________________________________________
>> nginx mailing list -- nginx at
>> To unsubscribe send an email to nginx-leave at
> --
> *Gus Flowers*
> _______________________________________________
> nginx mailing list -- nginx at
> To unsubscribe send an email to nginx-leave at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 309405 bytes
Desc: not available
URL: <>

More information about the nginx mailing list