adding expires but not show up in headers

2013-06-18 Thread angelochen960
Hi, I added a expires as follow: location ~ ^/images/ { root /var/www expires max; } if I do a curl -I http://localhost/images/sample.jpg, I got following headers, but can not find the "Expires" in the headers, what I did wrong here? Thanks. HTTP/1.1 200 OK Server: nginx/1.4.1 D

Re: Using try_files while forcing a trailing-slash in the URL

2013-06-18 Thread Francis Daly
On Tue, Jun 18, 2013 at 03:22:04PM -0400, Ben Johnson wrote: Hi there, > The try_files directive is brilliant. The only problem I'm having is > that I would like to be able to force a trailing-slash, a la "rewrite", > on the fallback URL. > This works well, but I have a need to eliminate duplica

Re: Using try_files while forcing a trailing-slash in the URL

2013-06-18 Thread B.R.
Hello,​ On Tue, Jun 18, 2013 at 3:22 PM, Ben Johnson wrote: > Hello, > > Brand new to nginx and loving it so far. Thanks to all who contribute to > the project. > > The try_files directive is brilliant. The only problem I'm having is > that I would like to be able to force a trailing-slash, a l

Using try_files while forcing a trailing-slash in the URL

2013-06-18 Thread Ben Johnson
Hello, Brand new to nginx and loving it so far. Thanks to all who contribute to the project. The try_files directive is brilliant. The only problem I'm having is that I would like to be able to force a trailing-slash, a la "rewrite", on the fallback URL. The try_files documentation at http://wik

Re: Nginx cache files by mime type using ngx_srcache module

2013-06-18 Thread n1xman
Hi agentzh, Thanks for the response. It is not happening on my uat site as I have redone the configuration and tested with the full setup. However it happened on my try out setup where I did not want image/* content-type to be cached. 2013/06/12 15:51:43 [info] 11016#0: *19 key: "%252fsanta.jpg"

Re: munin plugin for nginx

2013-06-18 Thread Grant
> Replace > > [nginx*] > env.url http://localhost/nginx_status > > with > [nginx_*] > user root Thanks! - Grant > my nginx default file > > egrep -v "(^$|^#)" /etc/nginx/sites-enabled/default > server { > listen 80; ## listen for ipv4 > listen [::]:80 default ipv6only=on; ##

Re: munin plugin for nginx

2013-06-18 Thread basti
Replace [nginx*] env.url http://localhost/nginx_status with [nginx_*] user root my nginx default file egrep -v "(^$|^#)" /etc/nginx/sites-enabled/default server { listen 80; ## listen for ipv4 listen [::]:80 default ipv6only=on; ## listen for ipv6 server_name local

Re: munin plugin for nginx

2013-06-18 Thread Grant
> My config looks like: > > /etc/munin/plugin-conf.d/munin-node > > ... > [nginx_*] > user root > > /etc/nginx/sites-enabled/default I don't have /etc/nginx/sites-enabled/ at all. What kind of stuff is in the default file? I'm on Gentoo. - Grant > ... > ## munin nginx status (request/ connect

Re: munin plugin for nginx

2013-06-18 Thread basti
My config looks like: /etc/munin/plugin-conf.d/munin-node ... [nginx_*] user root /etc/nginx/sites-enabled/default ... ## munin nginx status (request/ connections handeled) location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } ... This runs for me v

Re: munin plugin for nginx

2013-06-18 Thread Grant
>> > I'm having some trouble getting the nginx plugin working for munin. >> > I've added the following to nginx config and restarted: >> > >> > location /nginx_status { >> > stub_status on; >> > access_log off; >> > allow 127.0.0.1; >> > deny all; >> > } >> > >> > I've added the following munin con

Re: virtual server configuration

2013-06-18 Thread Janet Valbuena
Hi Wong, hi Vasil I did restart nginx and reloaded the browser while I was setting up this virtual server yesterday several times. Strangely, this morning when I started my computer all worked well. Maybe I needed to restart the network or something else? Thanks very much for your help. Janet