I'm tryiing to migrate a site that uses codeigniter behind modx to draw pages, and this is the block that breaks the site when I remove it from .htaccess... RewriteRule ^$ home RewriteCond %{HTTP_HOST} ^(?:www\.)?([^\.]*)\..*$ RewriteCond %{REQUEST_URI} !^/?$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*)by GreenGecko - Nginx Mailing List - English
On Mon, 2014-03-17 at 00:53 -0400, bignginxfan wrote: > I am trying to increase the limit on open files for nginx. I've set cat > /proc/sys/fs/file-max to 1000000, set worker_rlimit_nofile to 8388608 but I > still keep getting errors like: > > setrlimit(RLIMIT_NOFILE, 8388608) failed (1: Operation not permitted) > accept4() failed (24: Too many open files) > > How do I inby GreenGecko - Nginx Mailing List - English
If I pass a variable, set to true via a fastcgi_param, does it arrive as a logical or string value? If it's a string, is there a way to pass as a logical true/false? Cheers, Steve _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginxby GreenGecko - Nginx Mailing List - English
On Thu, 2014-03-13 at 15:34 -0400, Jeff Kaufman wrote: > I haven't been able to find a good guide for people who have been > using nginx as installed by their linux distribution who want to > switch to using an nginx they built themselves. This comes up a lot > with ngx_pagespeed because for many users we're the first module they > want which isn't packaged with their distro. Doesby GreenGecko - Nginx Mailing List - English
Hi! On Wed, 2014-03-05 at 21:18 +0000, Richard Ibbotson wrote: > On Wednesday 05 Mar 2014 21:03:22 Jonathan Matthews wrote: > > Nginx doesn't execute PHP. It passes each request destined for your > > blog (i.e. the locations you decide are "your blog") to another > > process that runs/is-running the PHP. Take a look here, and it might > > help: > > >by GreenGecko - Nginx Mailing List - English
I've built up a version of 1.5.10 on amazon linux 2013.09 which supports spdy and ngx_pagespeed... configure looks like this: ../configure --prefix=/etc/nginx \ --sbin-path=/usr/sbin/nginx \ --conf-path=/etc/nginx/nginx.conf \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ --pid-path=/var/run/nginx.pid \ --lock-path=/var/run/nginx.lock \ --http-client-bodyby GreenGecko - Nginx Mailing List - English
Hi folks, I'm just about to build up a server to take over about 100 smallish drupal sites. I've found that it is better to share a lot of resources between sites if possible, rather than allocate small slices to each. I am talking about the php-fpm backend that I'll be using here, not nginx directly. What security implications do you see when sharing a php backend across some / all of the sitesby GreenGecko - Nginx Mailing List - English
3.3 Path... End of para 1. "The path is terminated by the first question mark ("?") or number sign ("#") character, or by the end of the URI." although I think most web servers add & to ?. Steve On Wed, 2014-02-12 at 02:07 +0100, António P. P. Almeida wrote: > Hello, > > > While doing an audit for a client I came across an URL of the from: >by GreenGecko - Nginx Mailing List - English
On Mon, 2014-02-10 at 17:46 +0100, jack linkers wrote: > Hello, > > I'm new to linux and webservers, but I have a brain and C# background. > I installed ngx_pagespeed with nginx on a fresh ubuntu 13.10 following > this > tutorial :https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source > I installed everything under root directory, successfully buby GreenGecko - Nginx Mailing List - English
On Tue, 2014-02-04 at 17:45 +0400, Maxim Dounin wrote: > Changes with nginx 1.5.10 04 Feb 2014 > > *) Feature: the ngx_http_spdy_module now uses SPDY 3.1 protocol. > Thanks to Automattic and MaxCDN for sponsoring this work. > > *) Feature: the ngx_http_mp4_module now skips tracks too short for a > seek requested. &by GreenGecko - Nginx Mailing List - English
I think ( it's hard to read ) that you're not telling the site which http cache to use ( fastcgi_cache microcache; ). On my systems ( I'm looking at an Amazon one so RH based ), /var/cache/nginx is already in use. I set up /var/cache/nginx_fastcgi instead, which is not empty. (1GB is way too big btw). I created a file /etc/nginx/microcache, containing --8<-- # Setup var defaults set $no_caby GreenGecko - Nginx Mailing List - English
On Mon, 2013-12-30 at 02:05 +0100, Richard Stanway wrote: > > Here's a snippet of my config... > > > > location = /assets/Photo\ Gallery/Weather/current\.jpg { > > expires 10m; > > log_not_found off; > > } > > > > The "location =" syntax does not use regular expressions. You may also > wanby GreenGecko - Nginx Mailing List - English
I'm trying to enable a 10 minute autorefresh for my webcam which you can see at http://www.diamondharbour.org.nz/Local-Weather.html Server runs nginx 1.4.4 ( and an ancient CMS called Etomite ). Here's the WPT result http://www.webpagetest.org/result/131229_HV_MK2/ Here's a snippet of my config... location = /assets/Photo\ Gallery/Weather/current\.jpg { expires 10m;by GreenGecko - Nginx Mailing List - English
rewrite /poczatek(.*) $scheme://$host$uri/index.php?cat=poczatek permanent; *should* work. I've not used rewriites with gets though... Steve On Wed, 2013-11-27 at 20:18 +0100, Marcin Kasiński wrote: > Hello, > > > > I have a problem with redirect url in nginx. > > > > I want to redirect http://almelle.atmserv.pl/poczatek na > http://almelle.atmserv.pl/indeby GreenGecko - Nginx Mailing List - English
Well, this has absolutely nothing to do with nginx, but openssl x509 -in <your cert> -text -noout will tell you which domain ( or hostname ) the certificate is for. Steve On Tue, 2013-11-26 at 22:48 +0000, Radha Venkatesh (radvenka) wrote: > Jonathan, > > The requirement is that we match an existing hostname entry in /etc/hosts with the Client certificate CN (CN has to be theby GreenGecko - Nginx Mailing List - English
mkdir -p /data/ram/864/.tmp ?? smainklh@free.fr wrote: >Hello, > >We're trying to use an appliance with the Nginx Webdav server. >It is a streaming encoding plateform which is trying to send chunks. > >But for each chunks, we got a 500 error. > >We noticed the following error logs : >2013/10/25 16:24:17 35861#0: *50524 no user/password was provided for basic authentiby GreenGecko - Nginx Mailing List - English
This is a slight oversimplification as processes in waitio are also adding to the load average. Use of programs like top, iotop, mytop etc will give you a clearer idea of what is going on, and where your bottleneck lies. Steve Jan-Philip Gehrcke <jgehrcke@googlemail.com> wrote: >Hi Nikolaos, > >just a small follow-up on this. In your initial mail you stated > > > The newby GreenGecko - Nginx Mailing List - English
The ultimate bottleneck in any setup like this is usually raw cpu power. A single virtual core doesn't look like it'll hack it. You've got 35 php processes serving 250 users, and I think it's just spread a bit thin. Apart from adding cores, there are 2 things I'd suggest looking at - are you using an opcode cacher? APC ( install via pecl to get the latest ) works really well with php in fby GreenGecko - Nginx Mailing List - English
On 08/10/13 21:35, Andrew Galdes wrote: > Hi all, > > I'm looking for some guidance with Nginx. We have inherited a > web-server that experiences heavy load. The server is running: Ubuntu > Server 12.4, 24 Cores, 50~GB RAM. > > The CPU usage during peak time is 100%. Memory is about 50%. > > The client has asked that we configure Nginx to give the best user > experby GreenGecko - Nginx Mailing List - English
On Tue, 2013-10-01 at 22:57 +0100, Ian Hobson wrote: > On 01/10/2013 20:36, Jonathan Matthews wrote: > > > To be fair, chap, you're the one who has access to the log files! What > > do *they* say? > They tell me nothing new. > > When I change a static file, I get a 500 error on the next static file > I request - even if it is not the file I have changed. > >by GreenGecko - Nginx Mailing List - English
OK, the problem is that you're listening on *http* on port 443. You need to use listen 443 ssl ; for ssl. As an aside, you can combine the http: and https: configs, using the two listen statements, and dropping the 'ssl on' in a single block. Makes admin simpler... havn't checked but the two look pretty similar. hth, Steve On Thu, 2013-09-26 at 22:34 +0000, Eric Tyrer wrote: > Problemby GreenGecko - Nginx Mailing List - English
On 26/09/13 19:20, Maurizio De Santis wrote: > I have two locations, /a and /b . Both of them share these directives > > expires max; > add_header Cache-Control public; > add_header ETag ""; > break; > > and location /b to has gzip_static on too. > > Is there a way to write this without writing two times the common > directives? > Thatby GreenGecko - Nginx Mailing List - English
I think you need to do some regexp on the args if ( $args ~ title=([^&]+) { rewrite ^(.*)title=([^&]+).*$ /article/$2? last; } Note... totally untested. Steve On Sun, 2013-09-08 at 23:01 -0500, Andrew Martin wrote: > Hello, > > > I have read through the nginx rewrite documentation and looked at > various examples, but can't figure out how to create a rewrite rule >by GreenGecko - Nginx Mailing List - English
Make sure the server cert it first in the file, followed by the ca certs. Steve On 1/09/2013, at 11:11 PM, Daniel Lundqvist <daniel@malarhojden.nu> wrote: > Hi, > > I am trying to configure nginx 1.4.1 (using OpenSSL 1.0.1e) with a PEM encoded certificate file that contains the whole chain, 3 including Root CA. But I can not get it to work. I have followed documentation at http:by GreenGecko - Nginx Mailing List - English
On Sun, 2013-08-18 at 16:08 +0800, Edwin Lee wrote: > Hi, > > Is is alright to have two installations of nginx on the same machine? > I have a running instance of nginx with php installed from distribution package manager. > Instead of writing another config, I would like to compile and install nginx from source code and run as second instance. > The second instance is to optimiby GreenGecko - Nginx Mailing List - English
Use the official instructions from https://github.com/pagespeed/ngx_pagespeed and you'll have no problems. Well, I haven't upgraded from 1.4.1 yet, but that works fine. Steve On 18/08/13 19:46, ovidiu wrote: > I'm trying to follow this tutorial: > http://www.howtoforge.com/using-ngx_pagespeed-with-nginx-on-debian-wheezy to > build nginx with ngx_pagespeed on a Debian Wheezy machine. Uby GreenGecko - Nginx Mailing List - English
It makes no difference what file system the file is on. You just need to ensure that the files are accessible, so take care with uid/gid used to mount, as well as file ownership. Standard entries in /etc/exports work from what I remember. You will have a performance hit to contend with. I usually use lsync with a backup of rsync and keep the files local. hth, Steve On 12/08/13 19:34, Rakshby GreenGecko - Nginx Mailing List - English
On Sat, 2013-07-20 at 00:50 -0400, momyc wrote: > It's my next task to implement connection multiplexing feature in Nginx's > FastCGI module. I haven't looked at recent sources yet and I am not familiar > with Nginx architecture so if you could give me some pointers on where I > could to start it would be great. Sure thing anything I produce would be > available for merging with maiby GreenGecko - Nginx Mailing List - English
How are you using them?? Raid 10? On the offchance, is http://www.greengecko.co.nz/content/western-digital-can-i-have-my-2-days-back relevant? Cheers, Steve On Tue, 2013-07-16 at 10:10 +0500, shahzaib shahzaib wrote: > We're using 4XSata HDD 7200 rpm and yes it is hardly crossing > 20MB/sec. Could you please guide me a bit about the Max speed of SATA > read? > > > Thanks fby GreenGecko - Nginx Mailing List - English
Your disk maxes out at 20MB/sec read? On Tue, 2013-07-16 at 09:59 +0500, shahzaib shahzaib wrote: > Hello, > > > We're using nginx-1.2.8 to serve large static files for video > streaming. However all nginx worker_processes are in "D" state and HDD > I/O utilization is 99%. > > # ps aux |grep nginx > root 3046 0.0 0.0 20272 688 ? Ssby GreenGecko - Nginx Mailing List - English