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

Re: Nginx: location vom Logging ausnehmen



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?

Und wech,
Manne


Reply to: