Re: About the order of execution of the modules.

2021-03-14 Thread ADD SP
Hi there! Thank you very much for your help! > It is not clear to me that that "so" statement is true. I made a stupid mistake. I didn't recompile nginx and my modules when I debugged with GDB, so I thought that "ngx_module_order" wouldn't solve my problem, but when I retested it I found that

Re: Check for existence of PHP socket availability with `nginx -t`

2021-03-14 Thread petecooper
Hello Maxim. > nginx does not care if the upstream socket is reacheable or not > when it parses configuration, it is only important when processing > a particular request. That is, nginx can (and will) start just > fine if the socket doesn't exist (or, similarly, upstream server's > IP addres

Re: Possible to make subdomain only accessible through 'embed'

2021-03-14 Thread Jore
Hi there, Thanks for your reply, I appreciate it. Apologies I wasn't more clear, but yes, I mean "a HTTP request to the embed.domain.com site must only get a response if the request was made by a user clicking a link on the docs.domain.com site"... Am I correct in understanding that you mean

Re: Check for existence of PHP socket availability with `nginx -t`

2021-03-14 Thread Maxim Dounin
Hello! On Sun, Mar 14, 2021 at 11:33:02AM -0400, petecooper wrote: > I have some servers running PHP applications on Nginx via PHP-FPM. Each > server uses a named socket in the filesystem. Nginx can often pass its > configuration test but the server does not function as expected if the named > so

Re: About the order of execution of the modules.

2021-03-14 Thread Francis Daly
On Sun, Mar 14, 2021 at 05:43:19PM +, SP ADD wrote: Hi there, What follows is based on my reading of the docs; I may have missed something, and I am happy to be corrected by someone who knows what really happens. > In my module, ngx_module_type is set to HTTP, so ngx_module_order doesn't >

Re: About the order of execution of the modules.

2021-03-14 Thread SP ADD
There are some errors in the content of my reply just now, I will re-post the question I wanted to ask, please see the previous reply for the rest of the content. * How to control the order of execution between dynamic stock modules and my dynamic module. * How to control the order of execution

Re: About the order of execution of the modules.

2021-03-14 Thread SP ADD
Hi there! Thanks for your answer! In my module, ngx_module_type is set to HTTP, so ngx_module_order doesn't apply. I'm sorry, I'm not sure what "stock module" means, I guess it means a built-in module, i.e. a module that can be enabled or disabled just by the parameters of the "configure" scri

Re: Nginx with PHP8.0?

2021-03-14 Thread Thomas Ward
A white screen indicates some failure in the PHP processor.  That is not an nginx error, rather a problem with PHP that caused a fatal processing error.  Check your PHP logs or enable error reporting to the page in PHP so that it spits out the error data you need to understand why it fauled proc

Re: Nginx with PHP8.0?

2021-03-14 Thread Ken Wright
On Sat, 2021-03-13 at 21:18 +0200, Christos Chatzaras wrote: > > > On 13 Mar 2021, at 20:58, Ken Wright > > wrote: > > > > I recently upgraded from php7.4 to php8.0 and I find some of my > > applications no longer operate.  When I checked the error log, I > > found > > the problem:  the applic

Check for existence of PHP socket availability with `nginx -t`

2021-03-14 Thread petecooper
Hello. I have some servers running PHP applications on Nginx via PHP-FPM. Each server uses a named socket in the filesystem. Nginx can often pass its configuration test but the server does not function as expected if the named socket file is not there (i.e. PHP-FPM is not running as expected). Is

Re: About the order of execution of the modules.

2021-03-14 Thread Francis Daly
On Sun, Mar 14, 2021 at 08:55:20AM +, ADD SP wrote: Hi there, > I am a developer of third-party modules. Assuming that all modules are > registered in the same phase (e.g. NGX_HTTP_ACCESS_PHASE) I would like to > know the order of execution between dynamic modules. Can I control the order

Re: Possible to make subdomain only accessible through 'embed'

2021-03-14 Thread Francis Daly
On Sat, Mar 13, 2021 at 07:56:35AM +1100, Jore wrote: Hi there, > I have pages served from "embed.domain.com" that I'd only like to be > accessible when they're embedded in files served from "docs.domain.com" > Is it possible to lock down "embed.domain.com" so it can only be accessed > through "

Re: Stuck in weird issue - need help pls

2021-03-14 Thread blason
Well - That was not the nginx issue and was an apache2 issue. I had virtual hosts defined on apache2 server and apache2 was not finding a match even through config was there. Hence I added the entry in hosts file and it worked. Plus moved my vshost config file to apache2.conf file. Posted at Nginx

About the order of execution of the modules.

2021-03-14 Thread ADD SP
Hello! I am a developer of third-party modules. Assuming that all modules are registered in the same phase (e.g. NGX_HTTP_ACCESS_PHASE) I would like to know the order of execution between dynamic modules. Can I control the order of execution between dynamic modules? What is the order of executi