References for others: http://wiki.nginx.org/NginxHttpCoreModule#try_files http://wiki.nginx.org/Wordpressby nerdgrind - Nginx Mailing List - English
I see http://wiki.nginx.org/NginxHttpRewriteModule now, but I am still unsure about how some of the logic works. For example the follow rewrite code block allows YOURLS to be properly used with Nginx, but I don't see how this flows logically.: if (!-f $request_filename){ set $rule_0 1$rule_0; } if (!-d $request_filename){ set $rule_0 2$rule_0; } if ($rule_0by nerdgrind - Nginx Mailing List - English
I've seen code for virtual domains in the nginx.conf to handle setups with WP Super Cache using an if condition that appears to assign a variable value with "set" as shown in the example below. Could someone provide me with a link, or links, where I can see some examples of how this is used, how to use set, and what language it is from, so I can write some of my own configurations usiby nerdgrind - Nginx Mailing List - English
miradev, Can you post your fcgi init script? I am also using a RHEL5 OS, and would like to see how yours compares with my own. All the best, Toddby nerdgrind - Nginx Mailing List - English
Oldham, Would you be kind enough to share your supervisord configs for mysqld and memcached as well? All the best, Toddby nerdgrind - Nginx Mailing List - English
Nosek, That cartoon was great! Thanks for injecting some realistic humor into the mix. All the best, Toddby nerdgrind - Nginx Mailing List - English
Mike, On your website perhaps you could post all the configurations you use to run php-fpm, including the events file from Ubuntu you use to respawn php-fpm.by nerdgrind - Nginx Mailing List - English
Gentlemen, I respect your'e opinions, but for all you're heated desperation to defend php-fcgi you may have forgotten this thread was started by someone who found php-fcgi to be unstable, and he hasn't been able to find a solution. I found one that worked for me when php-fcgi failed. Offering a solution to someone that results in the same failure doesn't seem to be a solution to me. Perhapsby nerdgrind - Nginx Mailing List - English
Apache is rock solid. That's a fact. Keep reading to see how many web sites support this fact. php-fcgi is unstable, and unreliable. That's a fact. It's no joke when a web site goes down on a production server. Down time is lost money. The forums are saturated with complaints about the instability and unreliability of php-fcgi, etc., serving PHP for Nginx and other servers that don't serve Pby nerdgrind - Nginx Mailing List - English
Mike, I know you're a superfan of php-fpm, and fcgi in particular, but some of us have very high traffic blogs that require 100% uptime if possible, which Apache can provide. php-fpm, spawn-fcgi, and php-fcgi are for small blogs that can afford to experiment, and aren't going to lose money when fcgi crashes or hangs. Apache is rock solid when handling PHP, and this is a fact. fcgi has stabilby nerdgrind - Nginx Mailing List - English
You could use Apache to serve PHP scripts rather than spawn-fcgi/php-cgi. Apache's handling of PHP has been time tested, and performs as well or better than fcgi in my experience on a high traffic Wordpress blog. We use: proxy_pass http://127.0.0.1:8008; Apache can listen on several ports. I had a lot of headaches with fcgi, which made me question why I even needed it whenby nerdgrind - Nginx Mailing List - English
Is there a way to exclude caching .html files? Is there also a way to define the file types that are cashed, such as a list of the static files?by nerdgrind - Nginx Mailing List - English
I have a Wordpress blog I'd like to cache files for in the built-in Nginx cache. I'm not completely sure what is cached, or even how to find out. I have WP Super Cache that generates .html files, and I would like to cache those files in Nginx for only 15 minutes. I would like to have all of the other static files such as .css, .png, .gif, .js, etc., stored for 1 year, but I would like those filesby nerdgrind - Nginx Mailing List - English
Thank you for setting me straight. I appreciate your time.by nerdgrind - Nginx Mailing List - English
I use Apache as the backend proxy server to process the php files for Wordpress. If there are any headers identified in .htaccess files, such as the one in the cache directory for WP Super Cache, those headers, such as Cache-Control are sent back to the browser, along with any headers set in the http nginx.conf. When I read about proxy_ignore_headers I thought it meant Nginx would ignore headerby nerdgrind - Nginx Mailing List - English
Would like to see proxy_ignore_headers have the option to set it to "any" header, or config specific like: Vary WP-Super-Cache X-Pingback All the best, Toddby nerdgrind - Nginx Mailing List - English
If someone else can help answer my configuration questions regarding how to isolate proxy_pass using a regular expression that would be great.by nerdgrind - Nginx Mailing List - English
Mike can you email me your config files, and include files, so I can take a fresh look at your approach? nerdfinds at nerdgrind.comby nerdgrind - Nginx Mailing List - English
I run Red Hat Enterprise Linux 5 server. If I were to install PHP-FPM, which patches the PHP package, it would be replaced when PHP is updated on the next yum update. I have spawn-cgi installed, and can run it only from the command line as such: /usr/local/bin/spawn-fcgi -a 127.0.0.1 -p 9001 -C 5 -u apache -g apache -f "/usr/bin/php-cgi /maxconns=1024 /maxreqs=1024" -P /var/run/fastcgby nerdgrind - Nginx Mailing List - English
I setup Nginx as the frontend server, and Apache as the backend to serve only PHP for Wordpress, however, after checking the headers I found Apache is sending cache-control, and other headers that should only be handled from the Nginx configuration. This leads me to believe that Apache may be serving the static as well as PHP files, when it should only be serving the PHP files. To isolate the iby nerdgrind - Nginx Mailing List - English
There is actually a link in the Russian wiki page Dave linked to above. The link is on the word time, and it lists the syntax for the time format that can be used for expires. http://translate.googleusercontent.com/translate_c?hl=en&ie=UTF-8&sl=ru&tl=en&u=http://sysoev.ru/nginx/docs/syntax.html&prev=_t&rurl=translate.google.com&twu=1&usg=ALkJrhiPIr-K56soM05_MMx-Bby nerdgrind - Nginx Mailing List - English
Thank you Dave, the English Wiki was missing the example you posted. http://wiki.nginx.org/NginxHttpHeadersModule All the best, Toddby nerdgrind - Nginx Mailing List - English
I have seen expires in hours (h), days (d), and max. How do I write an expire in 30 minutes? Is there a link to resource that lists all the expire options?by nerdgrind - Nginx Mailing List - English
My question was answered in this other thread: http://forum.nginx.org/read.php?2,27566by nerdgrind - Nginx Mailing List - English
I went back and read all of http://wiki.nginx.org/NginxHttpCoreModule#location. Thank you for pointing me in the right direction. The way I understand it is that if there are no regular expression matches in the static location, then Nginx will use / in the proxy_pass location for everything else, and in this case everything else would be the php files.by nerdgrind - Nginx Mailing List - English
I have one "location" container that servers static content: location ~ \.(html|htm|xml|css|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ and another "location" container that uses a backend apache server to serve PHP file requests: location / { proxy_pass http://127.0.0.1:8008; Are the "location" contaiby nerdgrind - Nginx Mailing List - English
I tried to use ~ \.php$ again today to only serve php pages with the backend with proxy_pass but I got this error: 404 Not Found Toddby nerdgrind - Nginx Mailing List - English
Here is an example: http://www.nerdgrind.com/share-files-and-folders-and-printers-over-a-network/ The homepage loads normally at the address http://www.nerdgrind.com/, but anything else, for example http://www.nerdgrind.com/page/2/ or single article pages like the example above, won't load at all. All the best, Toddby nerdgrind - Nginx Mailing List - English
I am using Nginx as a frontend server to server only static files, and apache as the backend server to serve only php file. I saw a configuration for proxy_pass that would allow me to be 100% sure I was only serving php files by using the expression~ \.php$. I saw this from a reply from Igor in http://forum.nginx.org/read.php?2,13955 I am currently using: server ... location / {by nerdgrind - Nginx Mailing List - English