Hi All, I am just wondering, say for 1000 url redirects, what will be more efficient. Rewrite Style: ============ server { rewrite old-url-1 new-url-1 permanent; rewrite old-url-2 new-url-2 permanent; rewrite old-url-3 new-url-3 permanent; #.... rewrite $old-url-1000 $new-url-1000 permanent; }by rahul286 - Nginx Mailing List - English
First, we can use "watch/monitor" files in linux for changes and execute some command based on it. Now, for a site lets put a ".nginxaccess" file to hold site specific configuration (file will be writable by PHp, etc so web-site can update it) Then we can put in main site config "include $documentroot/.nginxaccess" And also start a daemon to watch "/var/by rahul286 - Nginx Mailing List - English
With reference to: http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache_path file names in a cache looks like this: /data/nginx/cache/c/29/b7f54b2df7773722d382f4809d65029c Is there any way to use different scheme for this, for example: /data/nginx/cache/$http_host/$request_uri/ === Reason: With reference to http://nginx.org/en/docs/http/ngx_http_fastcgi_modby rahul286 - Nginx Mailing List - English
I have a case where I need to use Nginx map in slightly different way. I use following to create a variable $blogpath `map $uri $blogname{ ~^(?P<blogpath>/[_0-9a-zA-Z-]+/)files/(.*) $blogpath ; }` Next, I want to run another map using: `map $http_host$blogpath $blogid{ #map lines }` Problem is - map doesn't support 2 input parameters. It thrby rahul286 - Nginx Mailing List - English
Hi All, I use Nginx on many sites and recently I thought to make use of fastcgi_cache to capture response of PHP-FPM. I want to put it in RAM (We have 32GB RAM. More than 50% of it is free) I am confused as some article suggests - declaring "open_file_cache" before we can make use of fastcgi_cache. Can't I directly use fastcgi_cache on /run/cache ? Please suggest.by rahul286 - Nginx Mailing List - English
Hi All, After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres setup) We are using nginx without any issues from long. Today, all of a sudden - nginx started returning "504 Gateway Time- out" out of the blue... I checked nginx error log for aby rahul286 - Php-fpm Mailing List - English
(note - this is reposting of - http://forum.nginx.org/read.php?11,127694) Hi All, After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres setup) We are using nginx without any issues from long. Today, all of a sudden - nginx started returning &by rahul286 - Nginx Mailing List - English
Hi All, After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres setup) We are using nginx without any issues from long. Today, all of a sudden - nginx started returning "504 Gateway Time-out" out of the blue... I checked nginx error lby rahul286 - How to...
Hi All, We have moved all websites/portals we have to the nginx over the time except our SVN repo. I tried many times but failed to find a good solution to get SVN working on Nginx. Please be noted accessing SVN from browser is important for us using URLs like http://svn.example.com/myrepo/trunk/ Is there any way to achieve this without using Apache? If not, how to use apache in baby rahul286 - How to...
Noticed these lines in file - php5-fpm.conf ====START==== ; Sets the number of server processes created on startup. ; Used only with 'dynamic' pm.style ; default : min_spare + (max_spare - min_spare) / 2 ; ;pm.start_servers = 20 ====END==== Following line can be simplified... ; default : min_spare + (max_spare - min_spare) / 2 to ; default : (max_spare + min_spare) / 2 Nothing wrong aboutby rahul286 - Php-fpm Mailing List - English
First - all my servers are running fine. Thanks a ton to nginx! Lately, I have been brainstorming a lot on 3 configuration variables to squeeze maximum performance that I can get from my hardware. 3 variables of my interest are: [*] worker_processes [*] worker_connections [*] PHP_FCGI_CHILDREN I searched extensively on Google, mailing lists, wiki, etc but till date couldn't find any rby rahul286 - Nginx Mailing List - English
Hi, I am administrating many wordpress MU site with very heavy traffic. I typically work on Ubuntu+Nginx+PHP FastCGI+Wordpress+Wp-Super Cache and I am really impressed with overall performance. Now some sites are growing more and more, and I guess replacing "Wp-Super-Cache" with "W3 Total Cache" will be a big added bonus. My biggest problem is that "W3 Total Cache&qby rahul286 - How to...
I am having tough time migrating following rewrite rule over nginx. RewriteRule ^trans/(.+?)/(.*?)$ wp-content/plugins/best-seo-itranslator-for-wordpress/translonator.php?act=doTranslatePage&lang=$1&dir=$2 Can anyone help me please? Thanks, -Rahul -- http://devilsworkshop.org/ _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/lby rahul286 - Nginx Mailing List - English
Hey guys. I just configured bbPress (once again) with nginx. I am running into an issue as described below. I have following lines in my nginx config with some other lines... location / { root /PATH/TO/rtforums.com; index index.php index.html index.htm; autoindex on; if (!-e $request_filename) { rewrite ^/topic/(.*)$ /topiby rahul286 - How to...
I am trying to get "X-Accel-Redirect" working on my ngnix and Wordpress MU server. I came across this official wordpress thread - http://trac.mu.wordpress.org/changeset/1946 I followed it. I added codes in blogs.php. I also defined 'WPMU_ACCEL_REDIRECT' as 'true'. After that I ended in 500 errors. :-( Then I found this article written in chinese - http://bit.ly/74uWtM (engby rahul286 - Nginx Mailing List - English
First let me show my understanding of ngnix working till now... In my ngnix.conf - inside php-fastcgi handler block I have settings... fastcgi_buffers 64 4k; i.e. 256K buffer size (I am on 32-bit platform). This means that if php scripts generate more than 256K size responses nginx will read first 256K sends it to a client and empties the buffer's contents. If there's more responce data - itby rahul286 - Nginx Mailing List - English