Hello everybody.<br><br>I'd like to desactivate all logs for a directory in my web, the problem is that this is dinamic and fastcgi is who serves it.<br>I try to insert the second location like:<br><br>location /home {
<br> root /var/www/html/myweb.com/home;<br> index index.htm;<br> access_log off;<br><br>}<br><br>But when I watch the log I see requests to home/. I'd like not writing it.<br><br>My example configuration with the location I try to insert:
<br><br>access_log /var/log/nginx/access.log main;<br><br> location / {<br> root /var/www/html/myweb.com;<br> index index.html index.htm;<br> }<br><br><br> location ~ \.php$|\.htm$ {
<br> #fastcgi_pass localhost:10005;<br> fastcgi_pass unix:/tmp/nginx-fcgi;<br> fastcgi_index index.htm;<br> fastcgi_param SCRIPT_FILENAME /var/www/html/myweb.com$fastcgi_script_name;
<br> fastcgi_intercept_errors on;<br> #include /usr/local/nginx/conf/fastcgi.conf;<br> }<br><br>location ~* ^.+\.(jpg|jpeg|gif|png|css|js)$ {<br> root /var/www/html/myweb.com;
<br> access_log off;<br> expires 30d;<br> }<br><br>Does anybody if I can do it?<br><br>Thank you<br><br>Jose<br>