[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Nginx: location vom Logging ausnehmen



On Sunday 22 February 2015 18:39:49 Manfred Schmitt wrote:
> Michael Schuerig schrieb:
> > Ich habe eine OwnCloud-Instanz, die ich mit Monit überwache, was
> > durch regelmäßige Zugriffe auf /status.php passiert. Diese Zugriffe
> > möchte ich vom Logging ausnehmen.
> > 
> > Die bisherige location für die Ausführung von PHP sieht so aus
> > 
> > location ~ ^(.+?\.php)(/.*)?$ {
> > 
> >     try_files $1 = 404;
> >     
> >     include fastcgi_params;
> >     fastcgi_param SCRIPT_FILENAME $document_root$1;
> >     fastcgi_param PATH_INFO $2;
> >     fastcgi_param HTTPS on;
> >     fastcgi_pass unix:/var/run/php5-fpm.sock;
> > 
> > }
> 
> if ($uri = ^/status.php$ ) { access_log off; } innerhalb der location?

Fast, aber nah genug dran. Danke. So geht's

  if ($uri = /status.php) {                                                                                 
    access_log off;
  }

Michael

-- 
Michael Schuerig
mailto:michael@schuerig.de
http://www.schuerig.de/michael/


Reply to: