Re: GeoIP2 Maxmind Module Support for Nginx

2019-01-22 Thread Karl Johnson
On Mon, Oct 1, 2018 at 4:49 AM anish10dec wrote: > In both the cases , either geoip2 or ip2location we will have to compile > Nginx to support . > > Currently we are using below two RPM's from Nginx Repository > (http://nginx.org/packages/mainline/centos/7/x86_64/RPMS/) > nginx-1.10.2-1.el7.ngx.x

Using variable in vhost

2018-06-12 Thread Karl Johnson
Hello, I have a nginx multi-user setup that use the same fpm config for all vhost but each vhost has his own user so I had to set a variable in the vhost config to set the fastcgi_pass path in the included file. This way the vhost config is always clean. I've read somewhere that variable in vhost

Adding expires on all images break nginx rewrite

2015-03-17 Thread Karl Johnson
Hello, I host a website based on Laravel with Nginx 1.6.2 + PHP-FPM 5.6. Most images on the website are in /static folder and are served to visitors with a PHP file (see /static location). I want to add a 30 days expire on all images of this vhost. However, when I add the "location ~* \.(?:image)

Re: Adding expires on all images break nginx rewrite

2015-03-17 Thread Karl Johnson
bly create > another (internal) location block to do the rewrite. > > > On Wed, Mar 18, 2015 at 2:49 AM, Karl Johnson > wrote: > >> Hello, >> >> I host a website based on Laravel with Nginx 1.6.2 + PHP-FPM 5.6. Most >> images on the website are in /stati

Re: Adding expires on all images break nginx rewrite

2015-03-17 Thread Karl Johnson
Yes that's what I understood after few tests. I will add the expire by the PHP script. Thanks for all the help! Karl On Tue, Mar 17, 2015 at 3:07 PM, Nurahmadie Nurahmadie wrote: > > On Wed, Mar 18, 2015 at 3:46 AM, Karl Johnson > wrote: > >> Thanks for the reply Nura

Tweak fastcgi_buffer

2015-07-22 Thread Karl Johnson
Hello, I need to tweak fastcgi_buffer to 1m on a website that has heavy requests to avoid buffer. If I use a distro with 4096 pagesize, is it better to do 256x 4k or 4x 256k? [root@web ~]# getconf PAGESIZE 4096 [root@web ~]# fastcgi_buffer_size 4k; fastcgi_buffers 256 4k; OR fastcgi_buffer_siz

Re: Tweak fastcgi_buffer

2015-07-29 Thread Karl Johnson
On Thu, Jul 23, 2015 at 3:21 PM, Maxim Dounin wrote: > Hello! > > On Wed, Jul 22, 2015 at 05:50:12PM -0400, Karl Johnson wrote: > > > Hello, > > > > I need to tweak fastcgi_buffer to 1m on a website that has heavy requests > > to avoid buffer. If I use a dis