Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live
↧

Nginx access_log premissions

is there a setting for nginx when you set access_log that you can set premissions at the same time? for right now it is rw-r----- on all log files in /var/log/nginx and I need it to be rw-r--r--

View Article


Re: Where to specify gzip and buffer parameters on nginx proxy and nginx web...

ok, got the buffers and gzip on the proxy level. I wanted to do caching on actual web server level. I have specified following in 'http' section;proxy_cache_path /var/cache/www levels=1:2...

View Article


Re: Where to specify gzip and buffer parameters on nginx proxy and nginx web...

Within location you forgot something like this:fastcgi_cache_key $scheme$host$request_method$request_uri;fastcgi_cache_valid 200 302 304 30m;fastcgi_cache_valid 301 1h;fastcgi_cache_valid any...

View Article

How to catch proxy timeout errors and log them?

Hello, colleagues!Please, give me some ideas how to log proxy timeout errors.Best,Benvolio

View Article

Nginx as incomming mail server relay ?

Mail server relay.I was happy to learn that nginx had mail proxy facilities.....i would like to use nginx (ipv4/ipv6) incomming mail smtp frontend (pointed to by mx records)my email server is older and...

View Article


Help configuring nginx file

Hi there,I have a flex app running on my PC and would like to deploy it to my Virtual server CentoOS 6.5. and make it available to outside world.I think that I implemented all the steps in this...

View Article

S3 Proxy/Cache: invalidating requests

I am having a strange issue. I am trying to create a caching proxy server between my apps and a private s3 bucket.Everything works fine if I disable the "proxy_cache" line, but if it is enabled (which...

View Article

How to allow TRACE method on NGINX v 1.4

What configuration do I require to allow Nginx to pass TRACE method to my server.Currently nginx returns me a 405 Not Allowed response.I am guessing there has to be a configuration setting in...

View Article


x-forwarded-for and geoip

Hello, I use nginx as web server and have problem with visitors which use opera mini. Opera mini use transcoder and I always get ip of transcoder server instead of real visitor ip. But visitor ip is...

View Article


Re: x-forwarded-for and geoip

You could use IF alot of times but IF should only be used as an exit method (if x=y return 503), a better way would be via Lua;rewrite_by_lua 'if not ngx.var.remote_ip then ngx.var.remote_ip = 'value';...

View Article

no live upstreams - need some IQ applied

So, we are getting the "no live upstreams" error under load. The upstream webnodes have plenty of resources, not exceeding maxclients (Apache), etc. all underutilized.There are no other interesting...

View Article

Redirect to dynamic IP (from file or DB)

I have a Raspberry PI and I would like to redirect one subdomain from my NGINX to the IP of that RPI but because it changes I dont know the propper way. It is possible to do it without LUA? reading the...

View Article

Start restreaming when service goes live

So, there's a service that starts streaming sometimes. It has static RTMP link to stream that doesn't change overtime. Is there an automatic way to restream this stream somewhere else? I can start...

View Article


Connection keep alive for transparent proxy

Hi all,It's my first time asking question here.I use Nginx as a local transparent proxy for a long time (only listen 127.0.0.1:80/443).I know we can set "keepalive_timeout" in nginx.conf to keep...

View Article

Re: Reading request body in a module

Hi I have develope your examplebut my HTTP connections remaning into CLOSE_WAIT status.Have you an idea of this cause?ThanksStefano

View Article


How to redirect requests based on request_body regex match ?

Hello All,I was trying to use nginx in a proxy_pass mode, and redirect requests to a set of servers based on the $request_body contents. I tried the following simplified sample configuration but it...

View Article

Sluggish TTFB recently.

Hi all,Currently running into a host of problems with a collections of sites that I'm running off a Digital Ocean LEMP stack. There is a > 1s TTFB delay & things are in general are...

View Article


Stop One Site From Viewing Other's Files

I'm pretty lost here. I've been searching everywhere and haven's had any luck on this yet. I have two server blocks set up under nginx. I followed this tutorial:>>...

View Article

Re: Sluggish TTFB recently.

Hi,since this howto-area is not so frequently read, please post and discuss your question over at the mailing-list:http://forum.nginx.org/list.php?2cheers,mex

View Article

Re: Stop One Site From Viewing Other's Files

See http://forum.nginx.org/read.php?2,254701

View Article
Browsing all 4759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>