Re: Getting started with a Module

2020-12-31 Thread Andrei
ty straight forward but I’m messing this up. > > > > Thanks you everyone for reading this. > > > > > > *From: *Andrei > *Sent: *Tuesday, December 29, 2020 4:24 PM > *To: *nginx@nginx.org > *Subject: *Re: Getting started with a Module > > > >

RE: Getting started with a Module

2020-12-30 Thread Federico Felman
:24 PM To: nginx@nginx.org<mailto:nginx@nginx.org> Subject: Re: Getting started with a Module Happy Holidays! You mean something like this? https://serverfault.com/questions/361556/is-it-possible-to-log-the-response-data-in-nginx-access-log Either way, you're probably looking at OpenResty

Re: Getting started with a Module

2020-12-29 Thread Andrei
Happy Holidays! You mean something like this? https://serverfault.com/questions/361556/is-it-possible-to-log-the-response-data-in-nginx-access-log Either way, you're probably looking at OpenResty Lua ( https://github.com/openresty/lua-nginx-module), cosockets (

Getting started with a Module

2020-12-29 Thread Federico Felman
Hello everyone and happy holidays. I’ve been asked to do a specific module for NGINX, I need to “log” all the requests and responses using some specific web services. For what I’ve seen I can read the REQ easily but I don’t see any way to access the response. Can you guys help me? Thanks in

Re: Getting started

2019-12-13 Thread Francis Daly
On Thu, Dec 12, 2019 at 06:17:25PM +, James Read wrote: > On Thu, Dec 12, 2019 at 5:03 PM Francis Daly wrote: Hi there, > > If that shows no problems, then something like > > > > nginx -T | grep 'server\|listen' > > > > should show the "server" blocks, "listen" directives, and

Re: Getting started

2019-12-12 Thread James Read
On Thu, Dec 12, 2019 at 5:03 PM Francis Daly wrote: > On Thu, Dec 12, 2019 at 04:52:25PM +, James Read wrote: > > On Thu, Dec 12, 2019 at 4:42 PM Francis Daly wrote: > > Hi there, > > > > If not, "nginx -V" should show the "configure arguments", which will > > > show any --conf-path or

Re: Getting started

2019-12-12 Thread Francis Daly
On Thu, Dec 12, 2019 at 04:52:25PM +, James Read wrote: > On Thu, Dec 12, 2019 at 4:42 PM Francis Daly wrote: Hi there, > > If not, "nginx -V" should show the "configure arguments", which will > > show any --conf-path or --prefix that will indicate the default config > > file that nginx

Re: Getting started

2019-12-12 Thread James Read
On Thu, Dec 12, 2019 at 4:42 PM Francis Daly wrote: > On Thu, Dec 12, 2019 at 04:34:17PM +, James Read wrote: > > On Thu, Dec 12, 2019 at 4:24 PM Francis Daly wrote: > > Hi there, > > > > If you do > > > > > > curl -i http://127.0.0.1/ > > > > > > what content do you get back? Is it from

Re: Getting started

2019-12-12 Thread Francis Daly
On Thu, Dec 12, 2019 at 04:34:17PM +, James Read wrote: > On Thu, Dec 12, 2019 at 4:24 PM Francis Daly wrote: Hi there, > > If you do > > > > curl -i http://127.0.0.1/ > > > > what content do you get back? Is it from the file that you want it to be? > > > > I still get the Welcome to

Re: Getting started

2019-12-12 Thread James Read
On Thu, Dec 12, 2019 at 4:24 PM Francis Daly wrote: > On Wed, Dec 11, 2019 at 08:54:24PM +, James Read wrote: > > Hi there, > > > Access log shows that page hasn't changed http code 304: > > > > 127.0.0.1 - - [11/Dec/2019:20:46:42 +] "GET / HTTP/1.1" 304 0 "-" > > "Mozilla/5.0 (X11;

Re: Getting started

2019-12-12 Thread Francis Daly
On Wed, Dec 11, 2019 at 08:54:24PM +, James Read wrote: Hi there, > Access log shows that page hasn't changed http code 304: > > 127.0.0.1 - - [11/Dec/2019:20:46:42 +] "GET / HTTP/1.1" 304 0 "-" > "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) >

Re: Getting started

2019-12-11 Thread James Read
On Wed, Dec 11, 2019 at 8:30 PM Francis Daly wrote: > On Tue, Dec 10, 2019 at 11:50:21PM +, James Read wrote: > > Hi there, > > nginx uses a single config file, which may "include" other files. > > When a request comes in to nginx, it chooses one "server" to handle > the request; and then

Re: Getting started

2019-12-11 Thread Francis Daly
On Tue, Dec 10, 2019 at 11:50:21PM +, James Read wrote: Hi there, nginx uses a single config file, which may "include" other files. When a request comes in to nginx, it chooses one "server" to handle the request; and then (with some exceptions) it chooses one "location" to handle the

Getting started

2019-12-10 Thread James Read
I edited the config file as follows: http { server { location / { root /www; } } ... } I then reloaded the config file with sudo nginx -s reload. I created a test file at /www/index.html then when I tried to load the page in