Passing a special Magento URL to PHP-FPM

2020-05-16 Thread hgv
I’m trying to learn how to pass special Magento 1.x URLs such as this to a PHP-FPM backend. /js/index.php/x.js?f=prototype/prototype.js,prototype/validation.js,mage/adminhtml/events.js,mage/adminhtml/form.js,scriptaculous/effects.js All the Nginx configs I’ve found (e.g. https://gist.github.com/r

Re: `if` or `include` for mode-specific `server` directives?

2020-05-16 Thread petecooper
Hi Francis. Francis Daly Wrote: --- > I suggest that you'll be happier in the long run using a templating > language, or macro-substituting language, external to nginx; along > with > "source" conf files that are to have the substitutions applied

Re: `if` or `include` for mode-specific `server` directives?

2020-05-16 Thread Francis Daly
On Sat, May 16, 2020 at 05:24:42AM -0400, petecooper wrote: Hi there, > At present, each site is managed by a monolithic > `subdomain.example.com.conf` file with its own `server` block and associated > directives. I manually change the `root` for each state when a site changes > mode. > Each sit

Re: How nignx handled the header to the client in this situation

2020-05-16 Thread Francis Daly
On Fri, May 15, 2020 at 11:09:53PM -0400, allenhe wrote: Hi there, > w.r.t. the "http://nginx.org/r/proxy_buffering";, the doc does not mention if > the buffering works for header, body or both, It's "the response". It sounds like it should be fairly straightforward to test on your setup, if yo

Re: `if` or `include` for mode-specific `server` directives?

2020-05-16 Thread itpp2012
https://blog.devcloud.hosting/configuring-nginx-for-quickly-switching-to-maintenance-mode-e4136cf497f3 https://forum.openresty.us/d/4770-c84503afcecd42ad08f3ec457c0948b7 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288057,288058#msg-288058 __

`if` or `include` for mode-specific `server` directives?

2020-05-16 Thread petecooper
I compile Nginx mainline from source and update every release. I run a small fleet of open source project and some small business Linux servers with multiple websites per server. There are occasions when a site is taken down for maintenance (typically minutes or hours of downtime out of peak hours)