Re: Request big JS file very slow if enable gzip on

2014-10-26 Thread colky
I always use " gzip_comp_level 4;". and i already tried "gzip_proxied any;" before, the gzip_proxied property is use for jboss response content. in my settings, js file is handled by Nginx, not jboss: location /wx/js/ { root /home/developer/jboss/server/citycard_dev/deploy/cityc

Re: Request big JS file very slow if enable gzip on

2014-10-26 Thread Valentin V. Bartenev
On Monday 27 October 2014 10:52:26 Dewangga wrote: > Hi, > > Oh sorry, I still use the comp_level to 9. Should I decrease it? If > yes, which value? Try to benchmark to find out what is the best for your server. I think the optimal levels for realtime compression is 1-3. wbr, Valentin V. Bart

Re: Request big JS file very slow if enable gzip on

2014-10-26 Thread Dewangga
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Oh sorry, I still use the comp_level to 9. Should I decrease it? If yes, which value? Sorry for thread discussion hijacking :) On 10/27/2014 10:44, Valentin V. Bartenev wrote: > On Monday 27 October 2014 10:29:46 Dewangga wrote: >> Hi, >> >> Ha

Re: Request big JS file very slow if enable gzip on

2014-10-26 Thread Valentin V. Bartenev
On Monday 27 October 2014 10:29:46 Dewangga wrote: > Hi, > > Have you tried to put `gzip_comp_level` on level 9? Based on > http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_comp_level > This is a very bad advice. The difference in compression ratio between level 1 and level 9 is abo

Re: Request big JS file very slow if enable gzip on

2014-10-26 Thread Dewangga
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Have you tried to put `gzip_comp_level` on level 9? Based on http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_comp_level And tried to put `gzip_proxied any` http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_proxied On 10/2

Request big JS file very slow if enable gzip on

2014-10-26 Thread colky
Sorry about everyone, i posted in another forum but not got any response, really really hope can got your all help about the issue which already confuse me many days. I installed nginx-1.6.2-1.el6.ngx.x86_64 with yum on CentOS 6.5 system. below are my settings: nginx.conf

Re: upstream sent invalid status "-1 Copy failed" while reading response header from upstream

2014-10-26 Thread NaZz
Hello, thank you for help. Yes I have already tried that. (tried putting it to client_max_body_size 20M;) My php post_max_size and max_upload_filesize are = 20M (for the sake of fixing this problem) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254276,254288#msg-254288 __

Re: How to cache phpsessid?

2014-10-26 Thread photographer
I mean like cookie:PHPSESSID=ove0lb88riehifbbvl58s3gbv0 If this cookie is present all pages is not cached. I know how to do not cache, but I need cache ;) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254281,254285#msg-254285 ___ nginx maili

Re: How to cache phpsessid?

2014-10-26 Thread Philipp
Am 26.10.2014 10:51 schrieb photographer: Thank you for answer. I.e. Nginx cannot store to cache a page with phpsessid cookie? What caching means? If you talk about proxy_cache; you might want to check: http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_key Setting that for

Re: How to cache phpsessid?

2014-10-26 Thread photographer
Thank you for answer. I.e. Nginx cannot store to cache a page with phpsessid cookie? If it is truth, then I need ping programmers. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254281,254283#msg-254283 ___ nginx mailing list nginx@nginx.org

Re: How to cache phpsessid?

2014-10-26 Thread NitrouZ
Hi, Did you want to centralize your session? Or what? IMHO, nginx didn't have capability to cache the session. CMIIW If you want to centralize your session, store them into database. On Sunday, October 26, 2014, photographer wrote: > How to cache phpsessid? > > Please, prompt me how to cache p

How to cache phpsessid?

2014-10-26 Thread photographer
How to cache phpsessid? Please, prompt me how to cache pages with phpsessid? Website set many different cookies. I can manage the page cache by them. However site send phpsessid for all user, even for user who not signed in. I would like cache page even they has phpsessid. Thanks. Posted at Ng

Re: upstream sent invalid status "-1 Copy failed" while reading response header from upstream

2014-10-26 Thread NitrouZ
Hi, Have you tried to increase your client_max_body_size to 3MB? Or equivalent with your php.ini configuration. On Sunday, October 26, 2014, NaZz wrote: > I have a joomla website and when I am trying to update a larger extension I > get bad gateway (502) error. > I am able to update all small (

upstream sent invalid status "-1 Copy failed" while reading response header from upstream

2014-10-26 Thread NitrouZ
Hi, Have you tried to increase your client_max_body_size to 3MB? Or at least equivalent with your php.ini configuration. On Sunday, October 26, 2014, NaZz > wrote: > I have a joomla website and when I am trying to update a larger extension I > get bad gateway (502) error. > I am able to update a