Hello,
you can use many values on the map, take a look on its docs.
One quickly example may be (not tested)
map $uri $custom_content_type {
default "text/html";
~(.*\.json)$ "application/json";
}
location ~ \.json$ {
proxy_hide_header Content-Type;
add_header Content-Typ
Hi,
The key_zone is just the name of a shared memory area where some metadata
about the cache entries will be saved.
The files stored on the cache_path does not use the key_zone.
They are different configurations to two different purposes.
To do what you are imagining, the file stored on cache_p
Hello All,
I am facing some issue regarding nginx redirection. I want to remove .html
extension from all the html pages and all the index.html pages. For example
1.
http://www.aaa.com/bbb/ccc.html should show the content of
http://www.aaa.com/bbb/ccc.html but the URL should show
http://www.aaa.c
Hello All,
Can somebody answer this question? I am facing this issue from many days.
--Manish
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,252360,252378#msg-252378
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/li
Thanks for your input Maxim.
However either I still do not get the purpose of the zone key or I am
missing something in the whole reasoning...
Isn't it the zone key there to isolate requests from different sources and
thus avoid collisions in the same cache path?
The only case favorable for collis
Hello!
On Wed, Aug 06, 2014 at 06:48:29PM +0200, B.R. wrote:
> On Wed, Aug 6, 2014 at 8:47 AM, itpp2012 wrote:
>
> > keys_zone is memory, the other a 'file' path, I could imagine a 'cachehash'
> > used could overwrite the other.
> >
>
> I thought of that, but learning how variables are resol
Hello!
On Wed, Aug 06, 2014 at 12:28:00PM -0400, crespin wrote:
> Maxim Dounin Wrote:
> ---
> > Hello!
> >
> > On Wed, Aug 06, 2014 at 10:22:10AM -0400, crespin wrote:
> >
> > > Hello,
> > >
> > > nevents is an ngx_int_t, so the print format
on Wed, 6 Aug 2014 16:20:51 +0400, Maxim Konovalov wrote:
> On Wed, Aug 06, 2014 at 08:16:44AM -0400, Cole Tierney wrote:
>> On Wed, 06 Aug 2014 15:19:43 +0400, Maxim Konovalov wrote:
>>> On 8/6/14 3:15 PM, Cole Tierney wrote:
Hello,
Thanks for the update!
Are there plans to update
On Wed, Aug 6, 2014 at 8:47 AM, itpp2012 wrote:
> keys_zone is memory, the other a 'file' path, I could imagine a 'cachehash'
> used could overwrite the other.
>
I thought of that, but learning how variables are resolved at request
time, and knowing that configuration is parsed on HUP signal,
Maxim Dounin Wrote:
---
> Hello!
>
> On Wed, Aug 06, 2014 at 10:22:10AM -0400, crespin wrote:
>
> > Hello,
> >
> > nevents is an ngx_int_t, so the print format must be "%i".
>
> Both signed and unsigned ngx_[u]int_t has the same size, so that'
Hello!
On Wed, Aug 06, 2014 at 10:22:10AM -0400, crespin wrote:
> Hello,
>
> nevents is an ngx_int_t, so the print format must be "%i".
Both signed and unsigned ngx_[u]int_t has the same size, so that's
more about preferable representation of numbers, not about
correctness of the code.
In th
Hello,
nevents is an ngx_int_t, so the print format must be "%i".
Regards,
yves
static ngx_int_t nevents;
--- a/nginx-1.7.4/src/event/modules/ngx_poll_module.c
+++ b/nginx-1.7.4/src/event/modules/ngx_poll_module.c
@@ -201,7 +201,7 @@ ngx_poll_del_event(ngx_event_t *ev, ngx_int_t event,
n
c0nw0nk Wrote:
---
> Also itpp2012 i don't know if you remember from the last time we
> talked but would it be better or any difference for you to compile a
> 64bit Nginx instead of a 32bit ?
For new items/issues please open a new topic.
64bit b
Also itpp2012 i don't know if you remember from the last time we talked but
would it be better or any difference for you to compile a 64bit Nginx
instead of a 32bit ?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,252064,252363#msg-252363
___
Hello!
On Wed, Aug 06, 2014 at 02:58:16PM +0800, Jerry OELoo wrote:
> Hi.
> I just copy the code from Evan Miller's body filter.
> http://www.evanmiller.org/nginx-modules-guide.html#filters-body,
> however, In my browser I could not see inserted string ()
The chapter in question doesn't looks co
Please refer this page
http://forum.nginx.org/read.php?2,239473,252358#msg-252358
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,252360,252360#msg-252360
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Hello!
On Wed, Aug 06, 2014 at 08:16:44AM -0400, Cole Tierney wrote:
> On Wed, 06 Aug 2014 15:19:43 +0400, Maxim Konovalov wrote:
> > On 8/6/14 3:15 PM, Cole Tierney wrote:
> >> Hello,
> >>
> >> Thanks for the update!
> >>
> >> Are there plans to update the mercurial respository? I just tried p
Hello Appa,
I am having the same issue. I want NGINX to serve all the json file from
upstream as a content type of application/json.I tried with map just like
you suggested but I am not able to figure out what should be inside map(That
you have written below), Can you please suggest?
map $upstrea
On Wed, 06 Aug 2014 15:19:43 +0400, Maxim Konovalov wrote:
> On 8/6/14 3:15 PM, Cole Tierney wrote:
>> Hello,
>>
>> Thanks for the update!
>>
>> Are there plans to update the mercurial respository? I just tried pulling
>> changesets, recompiling, and I am still at 1.7.1.
>>
> You are doing some
On 8/6/14 3:15 PM, Cole Tierney wrote:
> Hello,
>
> Thanks for the update!
>
> Are there plans to update the mercurial respository? I just tried pulling
> changesets, recompiling, and I am still at 1.7.1.
>
You are doing something wrong:
$ hg -q clone http://hg.nginx.org/nginx tmp
$ grep NGINX
Hi All,
Please I have installed nginx version 1.7.4 with the php5-fpm on debien
wheezy.
Work fine but php do not seem to be integrated properly with the "
An error occurred." on the browser
below my config from the default.conf file:
# pass the PHP scripts to FastCGI server listening on 1
Hello,
Thanks for the update!
Are there plans to update the mercurial respository? I just tried pulling
changesets, recompiling, and I am still at 1.7.1.
—
Cole
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
hmmm.. also you'd better to upgrade the openresty version. it' too old. :)
--
smallfish http://chenxiaoyu.org
On Wed, Aug 6, 2014 at 2:56 PM, Suraj Kumar wrote:
>
> On Wed, Aug 6, 2014 at 12:14 PM, Suraj Kumar
> wrote:
>
>> When I do dict.get_keys(100), I see the following error in nginx
>> e
23 matches
Mail list logo