Hi All, I'm trying to understand expires headers and cache control better, maybe someone can help? our configuration file has: location ~* \.(jpg|jpeg|gif|png|ico|css|js)$ { error_page 404 = /404.php; expires 31d; } Which I understand to mean that for these file types, the expiration header should be set to 31 days from today. However, wheby iberkner - Nginx Mailing List - English
I think I applied the patch correctly, ran patch < patchfilename inside the src/http directory and looks like the files were patched. I then modified the config file to have: error_page = 301 http://www.myprimarydomain.com$request_uri; When starting nginx, I now get this error: Starting nginx: : invalid value "=" in /etc/nginx/nginx.conf:42 2010/10/17 Igor Sysoev <igor@sysoby iberkner - Nginx Mailing List - English
I get this error: can't find file to patch at input line 5 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |Index: src/http/ngx_http_core_module.c |=================================================================== |--- src/http/ngx_http_core_module.c (revision 3099) |+++ src/http/ngx_http_core_module.c (working copy) -----by iberkner - Nginx Mailing List - English
Thanks, this would be the first time I'm applying a patch. What's the correct process? 2010/10/17 Igor Sysoev <igor@sysoev.ru> > On Sun, Oct 17, 2010 at 08:42:56PM +0400, Igor Sysoev wrote: > > > On Sun, Oct 17, 2010 at 08:33:36PM +0400, Igor Sysoev wrote: > > > > > On Sun, Oct 17, 2010 at 12:29:14PM -0400, Ilan Berkner wrote: > > > > > > >by iberkner - Nginx Mailing List - English
Thanks Igor, appreciate the information, is this something you expect to be done in coming versions? For my purposes for now, this is acceptable. Thanks On Sun, Oct 17, 2010 at 12:25 PM, Igor Sysoev <igor@sysoev.ru> wrote: > On Sun, Oct 17, 2010 at 12:17:55PM -0400, Ilan Berkner wrote: > > > Is there a way to do it with a 301? > > It should be implemented as > error_by iberkner - Nginx Mailing List - English
Is there a way to do it with a 301? On Sun, Oct 17, 2010 at 12:11 PM, Igor Sysoev <igor@sysoev.ru> wrote: > On Sun, Oct 17, 2010 at 12:00:09PM -0400, Ilan Berkner wrote: > > > Thank you, I actually resolved it by: > > > > location / { > > allow 1.1.1.1; > > deny all; > > error_page 403 = @redirect_towww; > > } > > > > locatiby iberkner - Nginx Mailing List - English
Thank you, I actually resolved it by: location / { allow 1.1.1.1; deny all; error_page 403 = @redirect_towww; } location @redirect_towww { rewrite ^(.*) http://www.primarydomain.com$1 permanent; } On Sun, Oct 17, 2010 at 11:28 AM, helen <nginx-forum@nginx.us> wrote: > On Sun, 17 Oct 2010 10:36:42 -0400, Ilan Berkner wrote: > > [...] > > The above code works as exby iberkner - Nginx Mailing List - English
hi all, I'd like to only allow a certain set of ip addresses to access one of our test sites, and redirect anyone with a different ip address to our primary domain. location / { allow 1.1.1.1; deny all; } The above code works as expected, but I would like to do something like this: location / { if not 1.1.1.1 or 1.1.1.2 or 1.1.1.3 do a 301 redirect to www.domain.com(with request uri) }by iberkner - Nginx Mailing List - English
Unfortunately, that does not work per previous posts, that only shows the front facing web server address... We have a work around, thanks. A small configuration file on each server can be read by the php code to identify which machine it is. On Tue, Oct 12, 2010 at 2:59 PM, Ian Hobson <ian@ianhobson.co.uk> wrote: > On 12/10/2010 02:41, Ilan Berkner wrote: > >> Hi All, >&gby iberkner - Nginx Mailing List - English
This is not a recommendation per se, as I have not bought nor read this publication, but just FYI: https://www.packtpub.com/nginx-http-server-for-web-applications/book https://www.packtpub.com/nginx-http-server-for-web-applications/book On Tue, Oct 12, 2010 at 11:48 AM, slindsey3000 <slindsey3000@gmail.com>wrote: > Anyone have any online suggestions for learning Nginx? > > Googlby iberkner - Nginx Mailing List - English
Thanks for your suggestion, but according to Nginx user group, --- Variable $upstream_addr will be empty during creation request to upstream. variable $upstream_addr contains not a single address, but a list of upstream addresses tried. ---- I'm going to test it out just to get an idea of what comes up... 2010/10/12 Jérôme Loyet <ml@fatbsd.com> > if you're using nginx you can addby iberkner - Php-fpm Mailing List - English
Someone else suggested: fastcgi_param UPS_SERVER_ADDR $upstream_addr; and get $_SERVER["UPS_SERVER_ADDR"]. ? On Tue, Oct 12, 2010 at 2:26 AM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Mon, Oct 11, 2010 at 09:41:32PM -0400, Ilan Berkner wrote: > > > Hi All, > > > > We're doing some profiling and one of the parameters we'd like to geby iberkner - Nginx Mailing List - English
We are running a profile script which measures how long page load times takes, how many queries run per page, etc. One of the data parameters that I'd like to collect is which of the php-fpm servers is actually running the php script. $_SERVER["server_addr"] gives the web servers IP address. One solution that I can think of is to have a unique configuration file present on each applicby iberkner - Php-fpm Mailing List - English
We are in a fastcgi configuration and profiling application load times, would like to know which server the request is being processed on.by iberkner - Php-fpm Mailing List - English
Hi All, We're doing some profiling and one of the parameters we'd like to get is the IP address of the fastcgi (in this case php-fpm) server that processed the request. PHP $_SERVER['server_addr'] returns the external address of the nginx server per our fastcgi configuration: fastcgi_param SERVER_ADDR $server_addr; Is this correct behavior? is there a way to get the local address of thby iberkner - Nginx Mailing List - English
No problem, thanks for all your suggestions, trying to get better informed. In terms of active processes, what am I looking for? so far I've seen it fluctuate between 0 and 5 at most, although right now is not our peak time. Are you aware of any Cacti templates for graphing this data historically? Thanks 2010/10/8 Jérôme Loyet <ml@fatbsd.com> > 2010/10/8 Ilan Berkner <iberkner@gby iberkner - Php-fpm Mailing List - English
FYI - I just checked again, and it jumped: accepted conn: 1372 pool: www process manager: static idle processes: 98 active processes: 2 total processes: 100 I guess it took a second for the status to update. On Fri, Oct 8, 2010 at 2:54 PM, Ilan Berkner <iberkner@gmail.com> wrote: > Ok, I got status working: > > accepted conn: 72 pool: www process manager: static idle processes:by iberkner - Php-fpm Mailing List - English
Ok, I got status working: accepted conn: 72 pool: www process manager: static idle processes: 99 active processes: 1 total processes: 100 which data points matter to me from the above information? On Fri, Oct 8, 2010 at 2:42 PM, Ilan Berkner <iberkner@gmail.com> wrote: > At this time, I do not monitor php-fpm via its status page, excellent > suggestion, I'll see what I can do to tuby iberkner - Php-fpm Mailing List - English
At this time, I do not monitor php-fpm via its status page, excellent suggestion, I'll see what I can do to turn that on. I submitted the bug: 53028 What's a good article on how to enable the php-fpm status page via Nginx, I remember reading about it somewhere. Thanks 2010/10/8 Jérôme Loyet <ml@fatbsd.com> > 2010/10/8 Ilan Berkner <iberkner@gmail.com>: > > I understandby iberkner - Php-fpm Mailing List - English
I understand what you mean, in terms of that its not often and it does appear to be working... Am happy to open a bug report, how / where do I open a bug report and what information is required? Right now I'm running as static with max children set to 100. Do you recommend switching to dynamic, if so, what would be good settings for a busy site? Each box has 4GB and strictly runs php-fpm, canby iberkner - Php-fpm Mailing List - English
FYI - I am seeing this every so often: Oct 08 08:48:14.087065 pid 1549, fpm_pctl_perform_idle_server_maintenance(), line 347: unable to retrieve process activity of one or more child(ren). Will try again later. Oct 08 10:22:01.829260 pid 1549, fpm_pctl_perform_idle_server_maintenance(), line 347: unable to retrieve process activity of one or more child(ren). Will try again later. Oct 08 10:by iberkner - Php-fpm Mailing List - English
yes On Thu, Oct 7, 2010 at 2:15 PM, Jonathan Langevin <intel352@gmail.com>wrote: > Ilan, at the time that you received that error in your logs, you were > running a static configuration? > > On Thu, Oct 7, 2010 at 1:56 PM, Ilan Berkner <iberkner@gmail.com> wrote: > >> I was previously using dynamic with the settings shown, have now switched >> to static, trby iberkner - Php-fpm Mailing List - English
I was previously using dynamic with the settings shown, have now switched to static, trying to determine "ideal" configuration... any help would be appreciated. pm = static pm.max_children = 100 ;pm = dynamic ;pm_max_children = 50 ;pm.start_servers =25 ;pm.min_spare_servers = 10 ;pm.max_spare_servers = 35 ;pm.max_requests = 500 On Thu, Oct 7, 2010 at 1:50 PM, Jonathan Langevin <by iberkner - Php-fpm Mailing List - English
Could someone make sure I understand, debug will give me the highest level of error information, correct? this is what I'm looking for. I just got this error: Oct 07 12:41:38.287422 pid 27916, fpm_pctl_perform_idle_server_maintenance(), line 347: unable to retrieve process activity of one or more child(ren). Will try again later. What does that mean?? On Thu, Oct 7, 2010 at 1:28 PM, Jonatby iberkner - Php-fpm Mailing List - English
Why would notice be more appropriate? Right now I'm trying to get as much information out of the system as possible. Is "debug" inclusive of notice? 2010/10/7 Jérôme Loyet <ml@fatbsd.com> > 2010/10/7 Ilan Berkner <iberkner@gmail.com>: > > Thanks, I'm still trying to understand what the bottleneck is. > > What is the highest error reporting level: debug? &by iberkner - Php-fpm Mailing List - English
2010/10/7 Jérôme Loyet <ml@fatbsd.com> > 2010/10/7 Ilan Berkner <iberkner@gmail.com>: > > Hi All, > > Looking for some general guidance on php-fpm settings for a very busy > site > > 3+mm page views a day. > > We have 4 php app servers and they are getting killed during busy time, > I'm > > going to add 2 more, but started looking at php-fpm loby iberkner - Php-fpm Mailing List - English
Thanks, I'm still trying to understand what the bottleneck is. What is the highest error reporting level: debug? Thanks 2010/10/7 Jérôme Loyet <ml@fatbsd.com> > 2010/10/7 Ilan Berkner <iberkner@gmail.com>: > > Hi All, > > Looking for some general guidance on php-fpm settings for a very busy > site > > 3+mm page views a day. > > We have 4 php app servby iberkner - Php-fpm Mailing List - English
Hi All, Looking for some general guidance on php-fpm settings for a very busy site 3+mm page views a day. We have 4 php app servers and they are getting killed during busy time, I'm going to add 2 more, but started looking at php-fpm logs and seeing things about warnings that php-fpm is busy, that I should add more min/max / start servers, so I'm sure our configuration can be improved. Any suggby iberkner - Php-fpm Mailing List - English
That's a valid point and I'm pretty sure that's exactly what it was as once I fixed that issue, it worked. Thanks! On Mon, Oct 4, 2010 at 7:20 AM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Sun, Oct 03, 2010 at 01:39:59PM -0400, Ilan Berkner wrote: > > > Hi All, > > > > I'm setting up Nagios to run thorugh Nginx. I have the CGI wrapper > worby iberkner - Nginx Mailing List - English