On Mon, Apr 13, 2009 at 11:37 AM, SSSlippy <nginx-forum@nginx.us> wrote: > May I ask why php-fpm was not an option. It's an improved version of fast cgi? it's not really an "improved version of fastcgi". it's a more robust fastcgi management layer bolted on to php w/ a couple extra improvements and enhancements to php.by mike - Nginx Mailing List - English
Possibly could be based on the player. I'm sure you can code in the headers. On Apr 12, 2009, at 12:00 PM, Gabriel Ramuglia <gabe@vtunnel.com> wrote: > Flash players may or may not send referrers. It seems to vary based on > the web browser used. Documentation for flash would lead me to believe > that it never sends referrers, but practical experience shows that > thiby mike - Nginx Mailing List - English
And video embedding is infamous for not sending info. At least windows media player type embedding. Not sure if flash players are better. On Apr 12, 2009, at 11:35 AM, Gabriel Ramuglia <gabe@vtunnel.com> wrote: > Your browser will almost always send referrers. As mentioned, > sometimes a security suite will block referrers. Sometimes flash won't > send referrers when it mby mike - Nginx Mailing List - English
Its not Wordpress sending the header it's your browser sending the header (unless this is wordpress fetching images using some plugin and then youll have to modify the script to send a referer header (I believe it is spelled wrong, technically) On Apr 12, 2009, at 10:41 AM, Max wrote: > Hello, > > Thanks. I tried that. But it's still not working. I am using > wordpby mike - Nginx Mailing List - English
2009/4/12 Igor Sysoev <is@rambler-co.ru>: > No. nginx supports the limited subset only. Is there any reason it cannot? /me would really love nginx to be able to have a mod_svn :) and anything else webdav can offer. obviously you have limited time, but is it something someone else could improve upon or is there a reason for it's limited subset?by mike - Nginx Mailing List - English
Try "valid_referers none blocked *.etc.com etc" perhaps you're not sending a referrer header. Some "internet security suites" do that for "privacy" and I hate them. or malfunctioning browsers or some browsers include that option now. that's the only thing I see wrong there. On Sun, Apr 12, 2009 at 8:45 AM, Max <maxbear@gmail.com> wrote: > Helloby mike - Nginx Mailing List - English
On Thu, Apr 9, 2009 at 11:11 PM, Michael Shadle <mike503@gmail.com> wrote: > 2009/4/9 Igor Sysoev <is@rambler-co.ru>: > >> server_name ~^(.+)\.user\.foo\.com$; > > awesome! it works. > >>> if ($1 == 'something) { >>> require include.conf; >>> } > >> This i ssome kind of configuration macro, butby mike - Nginx Mailing List - English
Sat, Apr 11, 2009 at 8:21 AM, Denis Filimonov <denis@filimonov.name> wrote: > Too little information to tell for sure, but it seems the problem is caused by > MySQL table locking issues, not PHP. which would create a chain reaction, which has happened to me before... mysql blocking/taking time -> php -> nginx waiting for the response try removing your mysql queries (orby mike - Nginx Mailing List - English
On Fri, Apr 10, 2009 at 11:25 AM, Robert Gabriel <lists@ruby-forum.com> wrote: > Fix it, with the help of memory_limit to 256M, max_execution_time=300s > and fastcgi_read_timeout=240s and finally after about 5 mins or so, i > got the mail, fully :) > > Seems it needs quite a lot of memory and time to be able to do this. (cough) not if you tweaked it to use x-accel-reby mike - Nginx Mailing List - English
On Fri, Apr 10, 2009 at 5:04 AM, Robert Gabriel <lists@ruby-forum.com> wrote: > I have nginx 0.6.36 with php-fastcgi. Im using SquirrelMail and have a > mail that is 25M, no attachement, just a text mail so big. Im trying to > read it, but fastcgi ends-up in > 2009/04/10 13:55:35 22626#0: *537 recv() failed (104: Connection > reset by peer) while reading response headerby mike - Nginx Mailing List - English
2009/4/9 Igor Sysoev <is@rambler-co.ru>: > server_name ~^(.+)\.user\.foo\.com$; awesome! it works. >> if ($1 == 'something) { >> require include.conf; >> } > This i ssome kind of configuration macro, but it's currently not easy > to implement this. really? why is that? seems like it should be pretty straightforward, but yby mike - Nginx Mailing List - English
i'd like to do something like: server { listen 80; server_name *.user.foo.com; root /home/user/web/$1; } this would be basically required too: server { listen 80; server_name *.user.foo.com; root /home/user/web/$1; if ($1 == 'something) { require include.conf; } } it would be nice if i could assign "user" as a variable too. however, tby mike - Nginx Mailing List - English
/me has done his part adding at least 100+ domains to the list :) On Wed, Apr 8, 2009 at 1:17 PM, Cliff Wells <cliff@develix.com> wrote: > For those who are counting: > > http://survey.netcraft.com/Reports/200904/ > > > Regards, > Cliff > > >by mike - Nginx Mailing List - English
and if you want to FORCE the header use header('Content-Type: foo/bar', true); the true will make sure it overrides On Tue, Apr 7, 2009 at 4:59 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Tue, Apr 07, 2009 at 02:51:39PM -0700, Kon Wilms wrote: > >> I'm having an odd problem with x-accel-redirect when using PHP to >> process the requeby mike - Nginx Mailing List - English
On Tue, Apr 7, 2009 at 4:56 PM, michael <nginx-forum@nginx.us> wrote: > When will I not need to calculate Content-Length? When using X-Accel or when using PHP readfile()...? With X-Accel, yes, I should not need to calculate the Content-Length... What about when/if using readfile() when you use x-accel. when you use readfile i would expect you have to provide -all- the headers. :)by mike - Nginx Mailing List - English
agreed. although according to maxim if i understand it you won't even need to calculate content-length yourself, nginx will do it for you. so it saves you that step too. On Tue, Apr 7, 2009 at 3:32 PM, michael <nginx-forum@nginx.us> wrote: > Yes, I'm in the process of doing that -- have it already in testing... But it would seem kinda odd that it would occur at all... > >by mike - Nginx Mailing List - English
I would look at leveraging x-accel-redirect instead. why have php keep spoonfeeding the file when you can offload it to the webserver? :) On Tue, Apr 7, 2009 at 12:54 PM, michael <nginx-forum@nginx.us> wrote: > Hi, > > I am having a weird issue where nginx is truncating a few bytes of content from the end of files. The files are being served from PHP (FastCGI via php-fpm) usiby mike - Nginx Mailing List - English
On Tue, Apr 7, 2009 at 10:59 AM, Cliff Wells <cliff@develix.com> wrote: > I'd suggest looking into one of the clustered filesystems such as GFS or > Lustre, although that might be more difficult to deploy on an existing > infrastructure. those require exported filesystems (iscsi, fake iscsi, SANs, etc) and can be a pain in the ass to manage. I tried OCFS2 for a little whby mike - Nginx Mailing List - English
On Tue, Apr 7, 2009 at 9:17 AM, Larry Bates <larry.bates@vitalesafe.com> wrote: > I do something like this but solved it a completely different way. I put > storage behind the balanced servers and shared it among them using NFS. That > way every server sees a consistent set of files. Otherwise users get "nailed" > to a server and that sort of defeats the purpoby mike - Nginx Mailing List - English
2009/4/6 Maxim Dounin <mdounin@mdounin.ru>: > Hello! >> header('Content-Transfer-Encoding: binary'); This is being ignored, according to your statement below, right? > NOTE: passing Content-Length which doesn't match actual message > length is really bad idea. This works now as nginx doesn't use > persistent connections to backends, but likely break things asby mike - Nginx Mailing List - English
2009/4/6 Igor Sysoev <is@rambler-co.ru>: > *) Bugfix: now nginx takes into account the "X-Accel-Expires", > "Expires", and "Cache-Control" header lines in a backend response. It wasn't doing this before? I had code like this (PHP) - was the Cache-Control being ignored? (I think all headers should be allowed to pass arbitrarily onby mike - Nginx Mailing List - English
means it will not process any further rewrites On Sun, Apr 5, 2009 at 12:56 PM, rkmr.em@gmail.com <rkmr.em@gmail.com> wrote: > Hi Michael, > Thanks a lot for this. Yes you are right, i think i need this /123456/xxxx/ > > in that case, is the following correct? > rewrite ^/(\d+)/(.+)/ /$2?id=$1 last; > > > can you explain what the word last means? >by mike - Nginx Mailing List - English
rewrite ^/(\d+)/(.+) /$2?id=$1 last; more or less. although you'd probably want to make it /123456/xxxx/ - without the delimiter the url can be anything really. On Sun, Apr 5, 2009 at 12:38 PM, rkmr.em@gmail.com <rkmr.em@gmail.com> wrote: > if i get a url like this > /123456/xxxx > > will nginx be able to rewrite the url to: > /xxxx?id=123456 > > if so howby mike - Nginx Mailing List - English
870 servers? drool ;) okay, i'll take it from you guys and give it a whirl. On Sun, Apr 5, 2009 at 11:31 AM, Marlon de Boer <marlon@hyves.nl> wrote: > >>> I don't want to deploy 5.2.9 to production with a >>> small little glitch >>> due to a version mismatch. >>> >>> Andrei, help us out... where'd ya go man? :) >> >> Iby mike - Php-fpm Mailing List - English
On Wed, Apr 1, 2009 at 7:11 AM, iberkner <iberkner@gmail.com> wrote: > > I compiled php 5.2.9 with 5.2.8 patch is that an issue? seems to be > working? > > thanks Yeah I would like to know, does anyone know if there's going to be some random little bug that occurs because of this or not? I don't want to deploy 5.2.9 to production with a small little glitch due tby mike - Php-fpm Mailing List - English
On Sat, Apr 4, 2009 at 2:57 AM, Makeable <matt@makeable.co.uk> wrote: > We are now indeed configuring pools on a per-user basis. > > As a proposal, it would be nice to allow dynamic configuration of > pools based on the passed docroot. I actually had something similar in my "ideas for a fastcgi management app" which php-fpm wound up meeting almost all of my neby mike - Php-fpm Mailing List - English
That's because it is hitting the location ~* \.(js|css|jpg|jpeg|gif|png)$ { first try this (until Igor comes up with something better) location ~* \.(js|css|jpg|jpeg|gif|png)$ { if (!-f $request_filename) { proxy_pass http://thins; break; } if (-f $request_filename) { expires max; break; } } I don't know if the braces got alignby mike - Nginx Mailing List - English
2009/4/1 Igor Sysoev <is@rambler-co.ru>: > I'm going to release tomorrow 0.6.36 with try_files. Still, that is additional overhead for you to maintain two branches. Sounds like you're planning 0.8.x around June anyway... and with some people running 0.5.x still too, I'd say let's all try to make a push for more people to run 0.7.x - since that will soon (hopefully) be the stableby mike - Nginx Mailing List - English
2009/4/1 Igor Sysoev <is@rambler-co.ru>: > You should get http://sysoev.ru/nginx/patch.try_files.0.6.35.5 > and use > > location / { > try_files $uri $uri/index.html $uri.html @rails; > } > > location @rails { > proxy_pass http://site-here; > } Exactly. try_files was going to be what I wasby mike - Nginx Mailing List - English
On Wed, Apr 1, 2009 at 3:34 AM, nmk <nginx-forum@nginx.us> wrote: > if (!-f $request_filename) { > proxy_pass http://thins; > break; > } > > location ~* \.(js|css|jpg|jpeg|gif|png)$ { > if (-f $request_filename) { > expires max; > break; > } > } > > } >by mike - Nginx Mailing List - English