Re: Loadable runtime modules?

2014-02-21 Thread wardrop
Thanks for the replies guys. Reines, I didn't know about the method of upgrading modules that you described. I also appreciate the reasoning in the link that you shared Vladmir. Much appreciated. One thing about Nginx I do appreciate is how much less painful it is to compile compared to Apache, whi

Re: Translating apache config to nginx

2014-02-21 Thread Grant
>>> What is "normal operation"? If the request you make is like /thr.ee, >>> it should be allowed; if it is not like /thr.ee is should be blocked. >> >> I just meant normal browsing around the inbox in Roundcube. > > If you assume that people on this list magically know what Roundcube > URIs look l

Re: Translating apache config to nginx

2014-02-21 Thread Jonathan Matthews
On 21 February 2014 21:51, Grant wrote: >> What is "normal operation"? If the request you make is like /thr.ee, >> it should be allowed; if it is not like /thr.ee is should be blocked. > > I just meant normal browsing around the inbox in Roundcube. If you assume that people on this list magically

WordPress + Code Igniter Config not working

2014-02-21 Thread toddlahman
Could someone look over my configuration? It appears I am missing something that is causing it not to work. I have a Code Igniter application that runs from the root WordPress folder fine with Apache, but it is not working with my Nginx configuration. The WordPress root folder is: /var/www/vhosts/

Re: Serve *only* from cache for particular user-agents

2014-02-21 Thread Darren Pilgrim
On 2/21/2014 7:25 AM, rge3 wrote: I havne't found any ideas for this and thought I might ask here. We have a fairly straightforward proxy_cache setup with a proxy_pass backend. We cache documents for different lengths of time or go the backend for what's missing. My problem is we're getting ov

Re: Translating apache config to nginx

2014-02-21 Thread Grant
>> Here is the description: >> >> "deny access to files not containing a dot or starting with a dot in >> all locations except installer directory" > > So: you want it to block /one and /two/, to allow /thr.ee, and to block > /.four, yes? That's how I read it too. >> Should the following accompl

Join Us! Nginx User Summit 2/25 in San Francisco

2014-02-21 Thread Sarah Novotny
The Users Have Spoken. So, don’t forget the inaugural NGINX User Summit! Please join us February 25 in San Francisco to learn what's coming up with NGINX, and to collaborate with the larger NGINX community. We're eager to hear what the users say, and we also look forward to sharing some insi

Re: Translating apache config to nginx

2014-02-21 Thread Francis Daly
On Fri, Feb 21, 2014 at 07:36:20AM -0800, Grant wrote: Hi there, > Here is the description: > > "deny access to files not containing a dot or starting with a dot in > all locations except installer directory" So: you want it to block /one and /two/, to allow /thr.ee, and to block /.four, yes?

fastcgi caching

2014-02-21 Thread Grant
I'm using the following config to cache only /piwik/piwik.php: fastcgi_cache_path /var/cache/php-fpm levels=1:2 keys_zone=piwik:10m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; location /piwik/piwik.php { fastcgi_cache piwik; add_header X-Cache $upstream_cache_status;

Re: Service restart testing nginx.conf

2014-02-21 Thread Styopa Semenukha
You must have used `service nginx reload` or `service nginx configtest`. On Friday, February 21, 2014 10:36:01 AM Paul N. Pace wrote: > It seems like way back in the olden days, when I restarted nginx ('sudo > service nginx restart'), if there was a configuration issue in nginx.conf, > I would get

Service restart testing nginx.conf

2014-02-21 Thread Paul N. Pace
It seems like way back in the olden days, when I restarted nginx ('sudo service nginx restart'), if there was a configuration issue in nginx.conf, I would get a warning telling me such and, IIRC, nginx would boot using the last known valid configuration. It doesn't seem to happen that way any more

Re: Serve *only* from cache for particular user-agents

2014-02-21 Thread rge3
ajay Wrote: --- > you can use http://nginx.org/en/docs/http/ngx_http_map_module.html > > Ex: > > map $http_user_agent $mobile { > ~* msn-bot 'http://devnull'; > > default 'http://productionrupal'; > > } Actually that worked perfect

Re: Serve *only* from cache for particular user-agents

2014-02-21 Thread Maxim Dounin
Hello! On Fri, Feb 21, 2014 at 11:46:02AM -0500, rge3 wrote: > Maxim Dounin Wrote: > --- > > Hello! > > > > On Fri, Feb 21, 2014 at 10:25:58AM -0500, rge3 wrote: > > > > > I havne't found any ideas for this and thought I might ask here. We >

Re: Serve *only* from cache for particular user-agents

2014-02-21 Thread Ajay k
you can use http://nginx.org/en/docs/http/ngx_http_map_module.html Ex: map $http_user_agent $mobile { ~* msn-bot 'http://devnull'; default 'http://productionrupal'; } Thanks, Ajay K On Fri, Feb 21, 2014 at 10:16 PM, rge3 wrote: > Maxim Dounin Wrote: > ---

Re: Serve *only* from cache for particular user-agents

2014-02-21 Thread rge3
Maxim Dounin Wrote: --- > Hello! > > On Fri, Feb 21, 2014 at 10:25:58AM -0500, rge3 wrote: > > > I havne't found any ideas for this and thought I might ask here. We > have a > > fairly straightforward proxy_cache setup with a proxy_pass backend

Re: Loadable runtime modules?

2014-02-21 Thread Reinis Rozitis
Thanks, that's handy to be aware of, but would still like to enquire as to why Nginx doesn't support such loadable modukes? I don't see how that makes any harder (or more time consuming) when the modules are linked into the binary. There is no need to always recompile the whole source as you

Re: Serve *only* from cache for particular user-agents

2014-02-21 Thread Maxim Dounin
Hello! On Fri, Feb 21, 2014 at 10:25:58AM -0500, rge3 wrote: > I havne't found any ideas for this and thought I might ask here. We have a > fairly straightforward proxy_cache setup with a proxy_pass backend. We > cache documents for different lengths of time or go the backend for what's > missi

Re: Translating apache config to nginx

2014-02-21 Thread Grant
>> >> location ~ ^(?!installer)(\.?[^\.]+)$ { >> >> deny all; >> >> } > >> > Alternatively: what request do you make? What response do you expect? And >> > what is the regex above intended to do? >> >> I actually got these apache deny directives from the roundcube list. > > Possibly the roundcu

Serve *only* from cache for particular user-agents

2014-02-21 Thread rge3
I havne't found any ideas for this and thought I might ask here. We have a fairly straightforward proxy_cache setup with a proxy_pass backend. We cache documents for different lengths of time or go the backend for what's missing. My problem is we're getting overrun with bot and spider requests.

Re: Issue with spdy and proxy_pass

2014-02-21 Thread p.heppler
In Railo you can access some environment and client vars within a struct called cgi. If I hit my site with plain ssl it shows cgi.server_port = 80. Should be 443, shouldn't it? Hitting Tomcat directly shows cgi.server_port= which is fine. Posted at Nginx Forum: http://forum.nginx.org/read.php

Re: virtual or physical?

2014-02-21 Thread Anton Yuzhaninov
On 02/21/14 11:28, Marc-Olivier Meunier wrote: If I have one host, am I going to get better performances if I run only one nginx on the physical host, or would it be more beneficial to run 4 virtual machines each running a different nginx? With nginx on physical host you will get better perform