Anybody here can tell me when these twe function
init_process(), and exit_process() in a module (ngx_module_t)
be called? init_process being called once when nginx starts
or when a query matched with a location defined in nginx.conf
is received? When would the exit_process() gets called? At proc
Also, It might be better to check the $arg_*argument *variable instead and
also set a check for $is_args. NGINX will process them in order within the
configuration.
map $is_args $redirect {
"?" "1";
default "";
}
map $arg_emailaddress $redirect {
~.+%40[a-z
Hi,
You would be better to accomplish this with map. Would this work?
map $args $redirect {
~emailaddress=.+%40[a-zA-Z0-9\.\-] '';
default "1";
}
server {
...
location / {
...
}
location /foo {
if ($redirect)
Thank's Francis much appreciated it seems to be working good :)
Francis Daly Wrote:
---
> On Fri, Mar 03, 2017 at 10:47:26AM -0500, c0nw0nk wrote:
>
> Hi there,
>
> > map $http_cf_connecting_ip $client_ip_from_cf {
> > default $http_cf_connecti
Hello,
Our local policy demands the rejection of any query; we do this as follows:
if ($is_args) { return 301 /; }
The introduction of Thunderbird autoconfiguration demands an exception to
the above policy, because of
"GET
/.well-known/autoconfig/mail/config-v1.1.xml?emailaddre=uname%40example.
Hi, Aleks,
Actually I read what you mention. The document about "proxy_pass_header" just
pass the headers listed in "proxy_hide_header" which do not include
"Connection", so I think it might doesn't work. I will try this.
BTW, this module ngx_http_upstream_module should be built by default righ
On Fri, Feb 24, 2017 at 07:33:19AM -0500, 0liver wrote:
Hi there,
> Can anybody point to me to the necessary pieces of information to get
> caching for resources with query strings to work?
There should be nothing special needed on the nginx side for this to
work -- it caches what it is told to
Hi Liu Peng.
Am 04-03-2017 09:12, schrieb t...@sina.com:
Hi, Alexks,
I don't want to hide the header.
My problem is that Nginx change the "Connection: close" header in the
reponse from upstream server to "Connction: keep-alive" and send to
client. I want to keep the original "Connection: close
On Fri, Feb 24, 2017 at 06:17:51AM -0500, p0lak wrote:
Hi there,
> I want to define this behavior
>
> NGINX Server (Public IP) >>> listening on port 80 >>> redirect to a LAN
> Server on port 80 (http://mylocalserver/virtualhost1)
> NGINX Server (Public IP) >>> listening on port 81 >>> redirect t
On Fri, Feb 24, 2017 at 01:24:11AM -0500, ashoba wrote:
Hi there,
> How I can set Sec-WebSocket-Protocol in config?
> I've tried proxy_set_header Sec-WebSocket-Protocol "v10.stomp, v11.stomp";
> and add_header Sec-WebSocket-Protocol "v10.stomp, v11.stomp".
> In response, I'm not getting 'Sec-Web
On Fri, Mar 03, 2017 at 10:47:26AM -0500, c0nw0nk wrote:
Hi there,
> map $http_cf_connecting_ip $client_ip_from_cf {
> default $http_cf_connecting_ip;
> }
>
> How can I make it so if the client did not send that $http_ header it makes
> $client_ip_from_cf variable value = $binary_remote_addr
>
Hi, Alexks,
I don't want to hide the header. My problem is that Nginx change the
"Connection: close" header in the reponse from upstream server to "Connction:
keep-alive" and send to client. I want to keep the original "Connection: close"
header.
Thanks
Liu Peng
- 原始邮件 -
发件人:Aleksandar
12 matches
Mail list logo