Help with nginx.conf

Gus Flowers Starkiller relectgustfs at gmail.com
Fri Nov 11 18:39:47 UTC 2022


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 Nginx.org but the source were get
from nginx too (i think) and cases like nginx.conf is happening, different
files with ngonx.org 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 nginx.org 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 roze.lv> 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 Nginx.org, 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 nginx.org
> To unsubscribe send an email to nginx-leave at nginx.org
>


-- 
*Gus Flowers*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20221111/69651dad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 309405 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20221111/69651dad/attachment.png>


More information about the nginx mailing list