Nginx SSI caching

2014-09-04 Thread Anatoliy Papenko
Привет Может сможете помочь, У меня стоит nginx caching на GET-запросы для статических страничек. В одной из них есть ssi-вызов /user/ssi POST-запроса Как мне кэшировать этот запрос для каждого пользователя (уже по новому proxy_cache_key, который будет включать в себя $cookie_token)? Пробую

Re: Fetching HTTP value into config at start-up

2014-09-04 Thread oscaretu .
Hello, igorclark Perhahs you can create a shell to launch nginx, and before that, ejecute a shell to assign a environment variable as a result of the execution of a program, or create (update) a file that is to be included from nginx config file when starting Some ideas:

bitwasp htaccess

2014-09-04 Thread Cyrus
I've got a nice easy htaccess I need to convert to nginx. RewriteEngine On RewriteBase /bitwasp RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] # Checks to see if the user is attempting to access a valid file, #such as an image or css document, if this isn't true it

Nginx as reverse proxy with apache

2014-09-04 Thread dedero
Hello!, I would like to ask you about a concern that I have and I could not find anything in the forums or google. The situation is: I already have configured an apache server with 2-step authentication and reverse proxy, which is used to as an additional security layer to enter a Remote

Re: Fetching HTTP value into config at start-up

2014-09-04 Thread igorclark
Thanks Oscar. Yes I'd read that first page and a bunch of those search results before. I guess I'll end up writing custom config files per environment, too, and maybe a script to regenerate and send a HUP to nginx when the data changes. I really wanted to avoid this because it's just one more

nginx + memcached + gzip

2014-09-04 Thread LinU777
Hello. I have service with memcached for storing large xml data. Data is compressed in memcached. I want to send responce gzipped if client supports that and decompressed if not. But with my config responce goes to client always decompressed. There is my site config: server { listen 80;

Re: nginx + memcached + gzip

2014-09-04 Thread LinU777
I have checked with curl: curl -I http://static.app1.feeds.lan/uploads/one_feed/1/feed.xml --compressed HTTP/1.1 200 OK Server: nginx/1.6.1 Date: Thu, 04 Sep 2014 14:39:54 GMT Content-Type: text/xml Connection: keep-alive Vary: Accept-Encoding curl -I

Re: Questions regarding spdy module, browser behaviour and access forbidden by rule

2014-09-04 Thread georg
On 09/04/2014 12:39 AM, Valentin V. Bartenev wrote: On Thursday 04 September 2014 02:04:09 Valentin V. Bartenev wrote: On Wednesday 03 September 2014 23:50:07 georg wrote: On 09/03/2014 10:23 PM, Valentin V. Bartenev wrote: On Wednesday 03 September 2014 20:18:50 georg wrote: [..] However,

Re: Questions regarding spdy module, browser behaviour and access forbidden by rule

2014-09-04 Thread georg
On 09/04/2014 12:04 AM, Valentin V. Bartenev wrote: On Wednesday 03 September 2014 23:50:07 georg wrote: On 09/03/2014 10:23 PM, Valentin V. Bartenev wrote: On Wednesday 03 September 2014 20:18:50 georg wrote: [..] However, using Iceweasel 31.0-1~bpo70+1 (out of wheezy-backports), the

Mapping requests and responses

2014-09-04 Thread divya84
I am currently using nginx as a reverse proxy. I want to be able to map a requests to its corresponding response. For example, I want to log some parts of a user request (say form field values in a POST request) along with the set-cookie that was set in the corresponding response header. Would

Re: terminate a connection after sending headers

2014-09-04 Thread erankor2
Thank you very much Maxim ! this works ! However, I bumped into a new problem, I use 2 different types of asyncronous operations in my code - file I/O and http requests. When I call ngx_http_run_posted_requests from the aio callback it works well, but when I call it from the HTTP completion

Re: nginx mail proxy - dovecot ssl backend

2014-09-04 Thread dukzcry
Yes, but got moved. Here's the diff: https://github.com/dukzcry/nginx/commit/f0af0f19ccc5e173fa43974cd05ef0b52692.diff and here's the patched tree: https://github.com/dukzcry/nginx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219069,253083#msg-253083

Re: terminate a connection after sending headers

2014-09-04 Thread Maxim Dounin
Hello! On Thu, Sep 04, 2014 at 04:38:41PM -0400, erankor2 wrote: Thank you very much Maxim ! this works ! However, I bumped into a new problem, I use 2 different types of asyncronous operations in my code - file I/O and http requests. When I call ngx_http_run_posted_requests from the aio