Re: map $uri in 1.3.0+ NOT working in 1.6.0+

2014-10-02 Thread nikolaos2012
Turns out that this was a mis-configuration on our end and that it works great in 1.6.0+ We had the issue on a test server that had 2 sites sharing the same IP address but moreover both sites assigned the $use_secure variable so it was being overwritten by the 2nd site and always set to 0 b/c of n

Re: Safe log rotation

2014-10-02 Thread Igor Sysoev
On 03 Oct 2014, at 01:31, jmobile wrote: > Thanks Igor for pointing this out. > > If file is renamed, would it guarantee that nginx continues writing to it > without interruption? This is guaranteed by OS. -- Igor Sysoev Join us for nginx.conf 2014, October 20-22, San Francisco. Get 25% off

map $uri in 1.3.0+ NOT working in 1.6.0+

2014-10-02 Thread nikolaos2012
We have the following code that worked in 1.3.16 # Map VWS URI's to HTTP ($use_secure=0), HTTPS ($use_secure=1) or keep same ($use_secure=2) map $uri $use_secure { default 0; ~^/sites/ 2; ~^/account/ 1; } And this file for the main config that includes the map file: include /srv/etc/web_x/

Re: Safe log rotation

2014-10-02 Thread jmobile
Thanks Igor for pointing this out. If file is renamed, would it guarantee that nginx continues writing to it without interruption? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253681,253729#msg-253729 ___ nginx mailing list nginx@nginx.org

Re: nginx-1.7.6

2014-10-02 Thread vicendominguez
vicendominguez Wrote: --- > > I have make a fast "adaptation" to 1.7.6 of the yaoweibin's tengine I have made... :shame: Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253626,253724#msg-253724 __

Re: nginx-1.7.6

2014-10-02 Thread vicendominguez
Ok ten-four. Thanks for answering. I have make a fast "adaptation" to 1.7.6 of the yaoweibin's tengine patch: https://github.com/vicendominguez/no_buffer_yaoweibin_nginx_patch I have a very easy configuration in nginx but it is working very well for me. Kind regards, Vicente

Re: redirection issue

2014-10-02 Thread Kurogane
Thats working thanks!! I set default_server in localhost because i want to show default page when you go to http://1.2.3.4 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253713,253719#msg-253719 ___ nginx mailing list nginx@nginx.org http://

Re: Re: Nginx 1.6.2 - Redirect users base on 4 digits number provide

2014-10-02 Thread Styopa Semenukha
On Thursday, October 02, 2014 12:14:41 PM mottycruz wrote: > Thank you very much Styopa, I am working on server that was installed by > person no longer in the company. I don't know if Map modules was originally > installed. I am using Ubuntu 10.04.4 TLS. > > here is part of my current configurati

Re: redirection issue

2014-10-02 Thread Adie Nurahmadie
On Fri, Oct 3, 2014 at 12:39 AM, Adie Nurahmadie wrote: > > On Fri, Oct 3, 2014 at 12:33 AM, Kurogane wrote: > >> No. >> > > There is your problem, the config supposed to looks like this: > > server { > listen 80 default_server; > server_name localhost; >

Re: redirection issue

2014-10-02 Thread Adie Nurahmadie
On Fri, Oct 3, 2014 at 12:33 AM, Kurogane wrote: > No. > There is your problem, the config supposed to looks like this: server { listen 80 default_server; server_name localhost; root /home/nginx/default/public; } server { listen 80;

Re: redirection issue

2014-10-02 Thread Kurogane
No. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253713,253715#msg-253715 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx centos build only supports SSLv3 and ignores ssl_protocols[solved -- found an issue in nginx]

2014-10-02 Thread mayak
On 10/02/2014 02:49 PM, Rob Stradling wrote: Hi. Visit https://www.ssllabs.com/ssltest/viewMyClient.html and check out "Protocol Details -> Signature algorithms". I expect you'll find that your browser doesn't offer SHA512/RSA. Judging from a recent discussion on the IETF TLS list [1], there

Re: redirection issue

2014-10-02 Thread Adie Nurahmadie
On Fri, Oct 3, 2014 at 12:22 AM, Kurogane wrote: > Hello All, > > I am facing some issue regarding nginx redirection i'm unable to fix it. I > want to create redirect non www to www but always redirect me to > default_server how i can fix this issue. > > This is what i have > > server { >

redirection issue

2014-10-02 Thread Kurogane
Hello All, I am facing some issue regarding nginx redirection i'm unable to fix it. I want to create redirect non www to www but always redirect me to default_server how i can fix this issue. This is what i have server { listen 80 default_server; server_name local

Re: Nginx 1.6.2 - Redirect users base on 4 digits number provide

2014-10-02 Thread mottycruz
Thank you very much Styopa, I am working on server that was installed by person no longer in the company. I don't know if Map modules was originally installed. I am using Ubuntu 10.04.4 TLS. here is part of my current configuration: upstream backend { server alice.fqdn.com:80; } # Note

Re: Nginx 1.6.2 - Redirect users base on 4 digits number provide

2014-10-02 Thread Styopa Semenukha
On Thursday, October 02, 2014 10:51:25 AM mottycruz wrote: > Hello All, > > I am trying to redirect users base on four digits number they provide. For > instance, if they provide a number 4024 they will be redirect to web server > name fly.fqdn.com, if digits are 5025 they will be directed to anot

Nginx 1.6.2 - Redirect users base on 4 digits number provide

2014-10-02 Thread mottycruz
Hello All, I am trying to redirect users base on four digits number they provide. For instance, if they provide a number 4024 they will be redirect to web server name fly.fqdn.com, if digits are 5025 they will be directed to another web server name guide.fqdn.com. if this possible? if so, can som

Re: Distributed cache

2014-10-02 Thread Bertrand Paquet
It's exactly what I need. Thx you. Bertrand On Thu, Oct 2, 2014 at 3:09 PM, Wandenberg Peixoto wrote: > Take a look on SRCache module if > it is suitable for you. > > On Thu, Oct 2, 2014 at 9:24 AM, Bertrand Paquet > wrote: > >> Hi, >> >> I need to ha

Re: Distributed cache

2014-10-02 Thread Wandenberg Peixoto
Take a look on SRCache module if it is suitable for you. On Thu, Oct 2, 2014 at 9:24 AM, Bertrand Paquet wrote: > Hi, > > I need to have the same cache content on every frontend nodes. I'm seeking > a solution to do what the nginx proxy cache does, but i

Re: nginx-1.7.6

2014-10-02 Thread Maxim Dounin
Hello! On Thu, Oct 02, 2014 at 07:01:34AM -0400, vicendominguez wrote: > I don't see any patch for the client body buffering mmm... > > is this ticket still pending for 1.7.x > (http://trac.nginx.org/nginx/ticket/251) or is in this version??? > > if not, any date? This would be very interes

Re: nginx centos build only supports SSLv3 and ignores ssl_protocols[solved -- found an issue in nginx]

2014-10-02 Thread Rob Stradling
Hi. Visit https://www.ssllabs.com/ssltest/viewMyClient.html and check out "Protocol Details -> Signature algorithms". I expect you'll find that your browser doesn't offer SHA512/RSA. Judging from a recent discussion on the IETF TLS list [1], there seems to be some confusion over whether the

encoded vs un-encoded URLs in requests are treated the same

2014-10-02 Thread idabic
Hello! How correct is the assumption that nginx will always treat Encoded URLs in requests same as un-encoded unless processing of urls is manually overridden by custom rules to intercept requests and change the cache key? Note: nginx is configured as reverse proxy Bottom line is, I have a clien

Re: Proxy_cache_methods and OPTIONS

2014-10-02 Thread idabic
Thanks for your answer, highly appreciated! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253403,253702#msg-253702 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Distributed cache

2014-10-02 Thread Bertrand Paquet
Hi, I need to have the same cache content on every frontend nodes. I'm seeking a solution to do what the nginx proxy cache does, but in a distributed way : using memcached, riak or any another storage. Do you know if it's possible with Nginx ? If not, do you know a solution with other products ?

Re: nginx-1.7.6

2014-10-02 Thread vicendominguez
I don't see any patch for the client body buffering mmm... is this ticket still pending for 1.7.x (http://trac.nginx.org/nginx/ticket/251) or is in this version??? if not, any date? This would be very interesting to know. thx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253626,

Re: Safe log rotation

2014-10-02 Thread Igor Sysoev
On 02 Oct 2014, at 11:08, oscaretu . wrote: > I think you should remove the line: > > sleep 15 > > It doesnt' anything useful, It just delay the restart, so during 15 seconds > the request will end been registered in the old log file Of course this sleep is not required, it is just to see t

Re: Safe log rotation

2014-10-02 Thread oscaretu .
I think you should remove the line: sleep 15 It doesnt' anything useful, It just delay the restart, so during 15 seconds the request will end been registered in the old log file mv /mnt/vg0-lv0/access.log /mnt/vg0-lv0/access.log.OLD sudo kill -USR1 `cat /var/run/nginx.pid` sleep 2 head -n 5 /mn