Hello. I can find too many docs about wordpress-mu and nginx, but none of them follows the "IfisEvil" directive, some one can point me to a good guide or document to configure rewrite rules (including supercache) ? Thanks in advance.by shaktale - Nginx Mailing List - English
Hello. Few days ago, we got the same !! php-cgi process was running using all the CPU. I did need to kill them explicity. I could reproduce it, stressing the application with http_load. After upgrading eAccelerator to 0.9.6 Final (or disabling old version), all goes to normal behaviour. Cent OS 5.4 64 bits php 5.3.1 Hope this helps.by shaktale - Nginx Mailing List - English
> For example : > if( $host ~* "(.*)\.*\.{2,4}" ) > { > addGet sd $1; > } > > This code add "?sd=$1" or "&sd=$1" (if there are already arguments GET before or not) > > If not exist how can I do for write this function (or code who make the same ?) > > Thank you and sorry for my english (I'm french :p) Hello.by shaktale - Nginx Mailing List - English
Hi all. When I click into http://forum.nginx.org/read.php?3,4638, the response always is a 502. Thanks. BR.by shaktale - Site Suggestions
> location /statics/ { > try_files $uri @statics; > } > > location @statics { > fastcgi_pass 127.0.0.1:9000; > > fastcgi_cache FCGI; > fastcgi_cache_key 127.0.0.1:9000$request_uri; > > include /usr/local/nginx/conf/fastcgi_params; > fastcgi_param SCRIPT_NAME /path/to/index.php; > fastcgi_param QUERY_STRING $uri; > } > > The only prby shaktale - Nginx Mailing List - English
> The url http://mydomain.com/statics/.* is handled by index.php, but really is a simple static page. > > Is there any manner to caching only these URLs ? > > location ~ ^/statics/.+\.php.*$ { > fastcgi_split_path_info ^(.+\.php)(.*)$; > fastcgi_pass 127.0.0.1:9000; > > fastcgi_cache FCGI; > fastcgi_cache_key 127.0.0.1:9000$request_uri; > > includeby shaktale - Nginx Mailing List - English
Hi all. I will try to start playing with cache, but is hard to find a complete documentation (yes, I know, is a new feature). If I have a classic fastcgi with try_files like this : location / { try_files $uri /index.php?$args; } # PHP location ~ ^(.+\.php.*)$ { fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_pass 127.0.0.1:9000; include /usby shaktale - Nginx Mailing List - English
Probably yuo need somthing like this: location ~ ^.+\.(js|jpe?g|gif|png|css)$ { try_files $uri /index.php; expires 1d; } loaction ~ ^/(.+)_(.+)/(.+)/$ { fastcgi_pass 127.0.0.1:9000; include /usr/local/nginx/conf/fastcgi_params; fastcgi_param SCRIPT_FILENAME /path/to/index.php; fastcgi_param SCRIPT_NAME /index.php; fastcgi_param PATH_INFO /action1/$1/action2/$2/action3/$3; } locby shaktale - Nginx Mailing List - English
Hi all. I have the folllowing config: # static files without rewrite location ~ ^.+\.(js|jpe?g|gif|png|css)$ { # 404 try_files $uri /index.php; expires 1d; } location / { rewrite ^/(.+)_(.+)/(.+)/$ /index.php/action1/$1/action2/$2/action3/$3 last; rewrite ^(/.+_.+/.+)([^/])$ $1$2/ permanent; try_files $uri /index.php?$args; }by shaktale - Nginx Mailing List - English
>location ~ ^(.+\.php)(.*)$ { >fastcgi_split_path_info ^(.+\.php)(.*)$; >fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name; >fastcgi_param PATH_INFO $fastcgi_path_info; Works like a charm, but I need to include: fastcgi_param SCRIPT_NAME $fastcgi_script_name; Thank you Igor.by shaktale - Nginx Mailing List - English
Hi again, If anyone is still interested, finally I have changed the following: location / { # If the file exists as a static file serve it directly without # running all the other rewite tests on it if (-f $request_filename) { expires max; break; } if ($request_filename !~ "\.(js|htc|ico|gif|jpg|png|css)$") { rewrite ^(.*) /index.phpby shaktale - Nginx Mailing List - English
Anyone, please ? I think that symfony, is an emergent framework, an optimal configuration for nginx will be much appreciated for the symfony comunity. Thanks againby shaktale - Nginx Mailing List - English
Hi all. In a previous post, Igor says: "If you have "if ($uri" in configuration, this means that your configuraiton is far from optimal and has hidden agendas." I'm using nginx + phpfpm + symfony framework and it's working fine. I take my configuration from this list, from an older post related to symfony. location / { # If the file exists as a static fby shaktale - Nginx Mailing List - English