Re: location not working

2021-04-08 Thread Francis Daly
On Thu, Apr 08, 2021 at 04:36:47PM -0400, uragnorson wrote: Hi there, > location / { > root /usr/share/nginx.html; > } > > location /dist/ { > alias /usr/share/nginx/html/dist/; > } Because, in this case, the "location" part matches the end of the "alias" part, you could instead choose to use

Re: Plain text token in config!

2021-04-08 Thread bouvierh
Thanks for your help!! Are there any other ways that I might have missed? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291202,291206#msg-291206 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Plain text token in config!

2021-04-08 Thread bouvierh
Thanks for your help!! Are there any other ways that I might have missed? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291202,291205#msg-291205 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

location not working

2021-04-08 Thread uragnorson
On RHEL I have, location / { root /usr/share/nginx.html; } location /dist/ { alias /usr/share/nginx/html/dist/; } I am able to navigate to http://server/dist but in dist the index.html is looking for http://server/js but it should be http:/server/dist/js is there a way to add the extra "dist"

Re: Plain text token in config!

2021-04-08 Thread Sergey A. Osokin
Hi Hugues, hope you're doing well. On Thu, Apr 08, 2021 at 02:58:01PM -0400, bouvierh wrote: > Hello! > > I currently use Nginx as a reverse proxy for my backend services. > > Nginx authenticates itself to the backend services using a Token that is > generated by a process every 10 minutes and

Plain text token in config!

2021-04-08 Thread bouvierh
Hello! I currently use Nginx as a reverse proxy for my backend services. Nginx authenticates itself to the backend services using a Token that is generated by a process every 10 minutes and that process is writing the token in the config file and reloading nginx regularly: location / { prox

Re: Alert: ignore long locked inactive cache entry

2021-04-08 Thread Sergey A. Osokin
Hi, thanks for the report. On Thu, Apr 08, 2021 at 11:37:19AM -0400, anish10dec wrote: > Hi Team, > > Intermittently there are multiple below errors reported in error.log file. > > [alert] 41456#41456: ignore long locked inactive cache entry > efcd5613750302a2657fca63c07fc777, count:1 > > This

Alert: ignore long locked inactive cache entry

2021-04-08 Thread anish10dec
Hi Team, Intermittently there are multiple below errors reported in error.log file. [alert] 41456#41456: ignore long locked inactive cache entry efcd5613750302a2657fca63c07fc777, count:1 This comes momentarily with a spike of 50-90 K such errors in a minute time span. During this period serve

Re: init module callback called twice

2021-04-08 Thread Maxim Dounin
Hello! On Thu, Apr 08, 2021 at 09:48:41AM -0400, xdrew wrote: > Thanks Maxim, this makes perfect sense! However the part of the question > still stands: is there a way from ngx_cycle_t structure or from some global > structure to figure out in which mode nginx is running - testing the > configura

Re: init module callback called twice

2021-04-08 Thread xdrew
Thanks Maxim, this makes perfect sense! However the part of the question still stands: is there a way from ngx_cycle_t structure or from some global structure to figure out in which mode nginx is running - testing the configuration or actually starting? Posted at Nginx Forum: https://forum.nginx.

Re: init module callback called twice

2021-04-08 Thread Maxim Dounin
Hello! On Thu, Apr 08, 2021 at 05:54:42AM -0400, xdrew wrote: > Hello, > > I'm developing a little custom module for nginx, and I need to execute some > user code once my module is loaded. I do this by attaching to the hook in > ngx_module_t structure: > > ngx_module_t ngx_http_hello_world_mod

Re: Fwd: Capturing Encoded Location Variable Data

2021-04-08 Thread Maxim Dounin
Hello! On Wed, Apr 07, 2021 at 05:16:20PM -0700, Demitrious Kelly wrote: > Thanks very much. It was not an easy thing to google to get > from symptom to bug report :) From the text in the ticket it > sounds like the named capture functions as intended and if this > bug gets fixed the numeric

init module callback called twice

2021-04-08 Thread xdrew
Hello, I'm developing a little custom module for nginx, and I need to execute some user code once my module is loaded. I do this by attaching to the hook in ngx_module_t structure: ngx_module_t ngx_http_hello_world_module = { ... NULL, /* init master */ i