Hi Just find out some clues and these are related to segmentation faults. In php logs ia have: WARNING: child 20050 exited on signal 11 (SIGSEGV) after 57.791598 seconds from start in /var/log/messages I have :php5-fpm[2791]: segfault at fffffffa ip 0832d6d4 sp bf8e51c0 error 5 in php5-fpm[8048000+835000] I'm running Debian wheezy with dotdeb repo (5.5.16-1~dotdeb.1) and opcache with apby nfn - Nginx Mailing List - English
Hi, Here is the debug log: http://pastebin.com/raw.php?i=w8Bwj4pS Can you help me understand why I have these random 502 error? Thanksby nfn - Nginx Mailing List - English
Hi, I'm getting lots of 502 errors but my nginx logs and php logs don't give me information that can help me identify the problem. I only have the 502 errors in the access logs. I don't see any errors in the error.log or php logs. Fist, how can I configure nginx and php so I can get more information about the problem? I already increase fastcgi buffers and php memory limit without succby nfn - Nginx Mailing List - English
Hello, You could try open_file_cache http://nginx.org/en/docs/http/ngx_http_core_module.html#open_file_cache Best regardsby nfn - Nginx Mailing List - English
Hello, I'm caching pages with nginx using the following rules: fastcgi_no_cache $cookie_member_id $is_args fastcgi_cache_bypass $cookie_member_id $is_args fastcgi_ignore_headers Cache-Control Expires Set-Cookie; Now, there is a cookie (session_id) that need to be passed to backed, but it shouldn't be stored in the cache, since it's the session_id of a guest user and other guests shouldby nfn - Nginx Mailing List - English
Hi, I'm trying to find the correct way to have different cache times per location. The problem I have is that all locations are redirected using try_files to the same file and then to fastcgi. I was thinking about something like this, but it doesn't work: fastcgi_cache_path /var/cache/nginx/one levels=1:2 keys_zone=one:500m; server { location /a { fastcgi_caby nfn - Nginx Mailing List - English
Just a quick note. I'm testing this with IPB and the request uri (/forum/topic/1-welcome/) is redirect internally using try_files to /index.php: 2012/06/09 03:20:53 2811#0: *1 http script var: "/forum/topic/1-welcome/" 2012/06/09 03:20:53 2811#0: *1 trying to use file: "/forum/topic/1-welcome/" "/usr/share/nginx/www/forum/topic/1-welcome/" 2012/06/09 03:20:5by nfn - Nginx Mailing List - English
Hi, I'm try to use ssi with fastcgi_cache (fpm) with but the ssi isn't executed. When I view the source, the include command is listed and nothing appends: <!--# include virtual="/ssi-data.php?id=1" --> Is there any incompatibility about running ssi and fastcgi_cache? Thanks Nunoby nfn - Nginx Mailing List - English
Hello, I have two small bits in my configuration that I'm worried about. One it to redirect users based in their country to a specific page. The other is to choose the upstream based in a cookie. 'm am worried about performance and would like to know if this small bits are evil to my site. ================================ ### Map Member ID Cookie map $cookie_memberid $prxy { dby nfn - Nginx Mailing List - English
Congratulations and the best for all!by nfn - Nginx Mailing List - English
I'm using 0.8.54-4ppa17~lucid full from https://launchpad.net/~nginx/+archive/stableby nfn - Nginx Mailing List - English
Hello, I'm looking for a way to redirect users from some countries and with a querystring value to a specific page. I tried this without success: location /register.php { if (($geoip_country_code = (BR|PT)) and ($arg_action = "register")) { rewrite ^(.*) /page/info/registo.html permanent; } } How can I accomplish this? Thanksby nfn - Nginx Mailing List - English
Hello, Is this the right way to switch backend based in cookies? location / { if ($http_cookie ~* "memberid=") { proxy_pass http://10.10.10.10; break; } if ($http_cookie ~* "clientid=") { proxy_pass http://10.10.by nfn - Nginx Mailing List - English
Hello, I was reading this setup: http://forum.nginx.org/read.php?11,1259 and it does what I want, but is this the way to go or there is a better way? Ame say we should avoid if else? Thanksby nfn - Nginx Mailing List - English
Hello, Is there a way to remove cookies sent from the backend? In varnish we have "unset req.http.cookie" (when receiving the request before sending to the backend) or "unset beresp.http.set-cookie" (when sending the response from the backend to the client) to manipulate cookies. I'm not using cache .. just want to remove cookies before the response is sent to the clientby nfn - Nginx Mailing List - English
Hello, You rule it's working now ... It was on the wrong place. Thanks :)by nfn - Nginx Mailing List - English
Hi, with your rule, if i try http://localhost/cache/static.html (file exists) i get 404 error ... even adding root /var/www. Thanksby nfn - Nginx Mailing List - English
Hello again, Just test some rules and after some testing I have this: location ~ ^/(cache|static|etc)/ { root /var/www; if ( $request_filename ~* "^.+\.(php|pl|php3|php4|php5)$" ) { return 403; } } Any advice?by nfn - Nginx Mailing List - English
Olá António, that's exactly what I need, since these directories have write permissions, but which rules should I have? placing something like this will work, but the user can see/read the php content and I don't want that location ~ ^/(cache|static|etc)/ { root /var/www; } How do I deny execution/read access to those files (php|pl!php3|php4|php5) Thanks Nunoby nfn - Nginx Mailing List - English
Hello, I have some directories (cache, static, etc) that denies execution of some files. In these directories I have a .htaccess file with this rule: <Files ~ "^.*\.(php|cgi|pl|php3|php4|php5|php6|phtml|shtml)"> Order allow,deny Deny from all </Files> I would like to test nginx with php-fpm but I don't know how to rewrite these rules in nginx Can someoneby nfn - Nginx Mailing List - English
Hello, I have this rule in apache that denies access to some extensions in multiple locations. I have this .htaccess in some folders like uploads, docs, pdfs. <Files ~ "^.*\.(php|cgi|pl|php3|php4|php5)"> Order allow,deny Deny from all </Files> How can I join this in one line to deny access in multiple folders for these extensions? I was trying this witby nfn - Nginx Mailing List - English
Hi, Is this the same behavior when it's proxying requests to another server (apache/ruby/fastcgi, etc)? Thanksby nfn - Nginx Mailing List - English
Hi, I've tested a while ago only to guest users. The way i did it (I'm not using anymore) was creating a plugin in global start with a similar code: vbsetcookie('usercache', $vbulletin->userinfo['userid'], permanent); Now you should have a new cookie name bbusercache to play with proxy_cache_key like indicated before. Note that forums are very dynamic and didn't made any tests.by nfn - Nginx Mailing List - English
Thanks mike! I'll test this one -> https://launchpad.net/~brianmercer/+archive/php Look's easy to setup :)by nfn - Nginx Mailing List - English
Hi, I'm running nginx as frontend to apache + mod_php with good results. Apache has keepalive off and is running with few threads and with the essential modules. i made a few tests with php-cgi -d managed with supervisord and I like it. It seams faster and under load uses less memory than apache, I just don't know if APC is shared between child processes. Is APC shared between php-cgiby nfn - Nginx Mailing List - English
Hello, Sorry for bumping this, but i can't get this to work the way I want. Any ideas? Thanksby nfn - Nginx Mailing List - English
Hi, I've manage to insert a cookie named "guests=guests" in my app, because I have some doubts about the $cookie_COOKIE variable ... I don't know is matched the name or the value of the cookie. In my tests, this is what I have: proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=members:10m inactive=5m max_size=500m; location /members/ { proxby nfn - Nginx Mailing List - English
Hello, I'm using nginx/0.7.62 to proxy requests to apache2+mod_php and I would like to cache content only if a cookie has a value present: "usergroup = 1" How am I able to archive this? Thanksby nfn - Nginx Mailing List - English
Hi, Just curious. Is there any advantage to cache static files served directly from nginx? location ~ \.(gif|jpg|png)$ { root /data/www; } Thanksby nfn - Nginx Mailing List - English