Rewrite help

2016-11-08 Thread khav
Suppose i have a url as `http://somesite.com/ekjkASDs.gifv` , i want to rewrite it as `http://somesite.com/vid.php?id=ekjkASDs` Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270815,270815#msg-270815 ___ nginx mailing list nginx@nginx.org ht

Make nginx treat another extension as mp4

2016-11-08 Thread khav
have converted an animated gif animated.gif to an mp4 animated.mp4.I then rename animated.mp4 to animated.gifv. How can i tell nginx to treat .gifv files as mp4. location ~* \.(mp4|gifv)$ { mp4; mp4_buffer_size 4M; mp4_max_buffer_size 10M; } Posted at Nginx Forum: https://foru

Rewrite rules not working

2016-09-11 Thread khav
I am trying to make pretty urls using rewrite rules but they are not working 1. https://example.com/s1/video.mp4 should be rewrite to https://example.com/file/server/video.mp4 location = /s1/(.*)$ { rewrite ^/s1/(.*) /file/server/$1 permanent; } 2. https://example.com/view/

Re: AW: AW: AW: Disabling HTTP/2 for a specific location

2016-08-19 Thread khav
Ah that was stupid... i forgot to copy the php location from my other server block Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268988,269058#msg-269058 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: AW: AW: AW: Disabling HTTP/2 for a specific location

2016-08-19 Thread khav
Here is a simplified version of the config.I get 405 (Method not allowed).Documentation for the module say that the error happen if the request method is not POST http://www.grid.net.ru/nginx/upload.en.html server { listen 443 http2; location = /upload { proxy_pass http://mywebsite.com/uplo

Re: AW: AW: Disabling HTTP/2 for a specific location

2016-08-19 Thread khav
Here is a simplified version of the config.I get 405 (Method not allowed).Documentation for the module say that the error happen if the request method is not POST http://www.grid.net.ru/nginx/upload.en.html server { listen 443 http2; location = /upload { proxy_pass http://mywebsite.com/upl

Re: AW: AW: Disabling HTTP/2 for a specific location

2016-08-18 Thread khav
@Lukas do you mean something like this location = /upload { proxy_pass http://mywebsite.com/upload; } server { listen 80; server_name mywebsite.com; location = /upload { } } Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268988,269037#msg-269037 ___

Disabling HTTP/2 for a specific location

2016-08-16 Thread khav
I use nginx 1.11.3 with nginx upload module.The problem is that Nginx upload module don't support HTTP/2 and thus when you upload you get 500 Internal Error. For now i am trying to use a separate server block to disable http2 just for the upload and enable it for the rest server { listen 443;

Re: Third party module appears to be not loaded

2016-08-09 Thread khav
The nginx-upload-module works well so i guess the issue is with nginx-upload-progress-module Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268865,268870#msg-268870 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/list

Re: Third party module appears to be not loaded

2016-08-09 Thread khav
I even took latest version just to be sure git clone -b master https://github.com/masterzen/nginx-upload-progress-module/ Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268865,268866#msg-268866 ___ nginx mailing list nginx@nginx.org http://

Third party module appears to be not loaded

2016-08-09 Thread khav
Hi , I compile nginx with nginx upload progress module but i still can't use any of the configuration variables.Nginx throws errors like [emerg] unknown directive "track_uploads" nginx version: nginx/1.11.3 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) built with OpenSSL 1.0.2h 3 May

Re: Http2 not getting enable

2015-10-04 Thread khav
Chrome : Version 45.0.2454.101 m Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261987,262002#msg-262002 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Http2 not getting enable

2015-10-04 Thread khav
I have http traffic redirect to https by default so i think HTTP/2.0 should have been displayed in network tab-->protocol in chrome but its not the case https://gyazo.com/583ac40f5961db80433c75d69843b923 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261987,261999#msg-261999 _

Re: Http2 not getting enable

2015-10-03 Thread khav
@Alt Protocol is still showing as http/1.1 not h2 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261987,261994#msg-261994 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Http2 not getting enable

2015-10-02 Thread khav
None of the only http2 indicators are able to detect http2 although i have it enable Website Link : https://www.onestopmarketing.club Full Nginx Config : http://pastebin.com/ScGmZNwX I also did restart nginx or reload the configuration with no change at all Posted at Nginx Forum: http://forum

Re: Http2 not starting up

2015-09-28 Thread khav
Turn out maxcdn havent implemented http2 yet Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261910,261911#msg-261911 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Http2 not starting up

2015-09-28 Thread khav
HTTP2 isn't working for me .I still use HTTP/1.1 is reponse headers but nginx don't show any error.I also restarted nginx with no change server { listen 443 http2 ; ssl on; ssl_certificate/etc/ssl/filterbypass.me.crt; #(or .pem) ssl_certificate_key/etc/ssl/filt

Re: fastcgi_max_temp_file_size 0 vs fastcgi_buffering off

2015-08-25 Thread khav
For video streaming which option will be the best according to you I currently use fastcgi_max_temp_file_size 0 fastcgi_connect_timeout 60; Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261232,261235#msg-261235 ___ nginx mailing list nginx

fastcgi_max_temp_file_size 0 vs fastcgi_buffering off

2015-08-25 Thread khav
Is fastcgi_max_temp_file_size 0; and fastcgi_buffering off; the same ? If no what is the difference between those two Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261232,261232#msg-261232 ___ nginx mailing list nginx@nginx.org http://mail

keepalive_timeout timeout causes high TTFB

2015-07-24 Thread khav
I am trying to further optimize SSL but if i enable keepalive_timeout i get high TTFB as shown in the report below http://tools.pingdom.com/fpt/#!/KggzF When i disable keepalive_timeout , TTFB is fixed but nginx recommand keepalive_timeout : http://nginx.org/en/docs/http/configuring_https_server

Nginx restart/reload not working

2015-01-07 Thread khav
I have compiled nginx from source and i think that there is something wrong with my init script.I changed the error log from debug to crit but error log was still showing [debug] in logs.I had to killall nginx and then i ran service nginx start to nginx again #!/bin/sh # # nginx - this script star

Re: OCSP_check_validity() status expired

2014-12-28 Thread khav
I confirm that the issue is resolved and what indeed the time.It was not properly sync Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255769,255813#msg-255813 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ng

Re: OCSP_check_validity() status expired

2014-12-26 Thread khav
the "date" command give the following on my server so i think the date is ok (correct me if i am wrong) Fri Dec 26 14:58:27 MST 2014 In php.ini date.timezone = "US/Mountain" [root@sv1 ~]# cat /etc/sysconfig/clock ZONE="US/Mountain" Posted at Nginx Forum: http://forum.nginx.org/read.php?2,25576

Re: OCSP_check_validity() status expired

2014-12-26 Thread khav
@ionsec These lines are already in my config but i add the "valid=300s" to the resolver line @Maxim how can i fix it Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255769,255802#msg-255802 ___ nginx mailing list nginx@nginx.org http://mail

OCSP_check_validity() status expired

2014-12-24 Thread khav
I am seeing a lot of these errors in my /var/log/nginx/error.log [error] 11405#0: OCSP_check_validity() failed (SSL: error:2707307D:OCSP routines:OCSP_check_validity:status expired) while requesting certificate status, responder: ocsp2.globalsign.com How can i fix that Posted at Nginx Forum:

Re: Users not able to watch videos greater than 10 mins

2014-12-18 Thread khav
Maxim i am already using latest Nginx version (1.7.8) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255549,255636#msg-255636 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Users not able to watch videos greater than 10 mins

2014-12-18 Thread khav
I fixed the oscp error and i keep monitoring to see if the video stop issue happen again...Any idea how to fix the open socket issue Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255549,255626#msg-255626 ___ nginx mailing list nginx@nginx.

Re: Users not able to watch videos greater than 10 mins

2014-12-18 Thread khav
I am seeing these errors in /var/log/nginx/error.log 2014/12/18 12:50:28 [error] 45444#0: OCSP_basic_verify() failed (SSL: error:27069065:OCSP routines:OCSP_basic_verify:certificate verify error:Verify error:unable to get issuer certificate) while requesting certificate status, responder: ocsp2.gl

Users not able to watch videos greater than 10 mins

2014-12-16 Thread khav
My site does video streaming and users are not able to play videos greater than 10 mins.After 10-11 mins flowplayer stop playing the video but i don't get any error either by php/nginx/flowplayer Is there anything wrong with my fastcgi buffers fastcgi_pass unix:/tmp/php5-fpm.sock;

Re: nginx + php-fpm = file not found

2014-12-14 Thread khav
I fixed it ... but for that i had to change my document root setup when i was using /home/servergreek.com/public_html/www i got "no input file specified"(although the directory existed and had index.php in it).Then i did a server reinstall again but i choose /var/www/servergreek.com/public_html/w

Re: nginx + php-fpm = file not found

2014-12-13 Thread khav
I added cgi.fix_pathinfo=0 to php.ini and now i get no input file specified Thanks for helping me out Jader Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255466,255472#msg-255472 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.

nginx + php-fpm = file not found

2014-12-12 Thread khav
I am getting File not found error with nginx and i have been trying to fix this for hours.The config look similar to what i use on other sites but i don't know why it doesn't work.html files works fine thought.index.php location is /home/servergreek.com/public_html/www/index.php.Thanks for helping

Package 'nginx' isn't signed with proper key and segfault

2014-11-18 Thread khav
Earlier i was using nginx installed from epel repo but i then decided to use latest nginx I use the exact modules that the epel one used except that i added spdy and i complie from source(just so as not to break things). /var/log/messages Nov 18 10:53:41 sv1 abrtd: Package 'nginx' isn't signed w

Re: File '/usr/sbin/nginx' seems to be deleted

2014-11-15 Thread khav
I did a nginx restart but the errors still here Nov 15 11:22:06 sv1 abrtd: Package 'nginx' isn't signed with proper key Nov 15 11:22:06 sv1 abrtd: 'post-create' on '/var/spool/abrt/ccpp-2014-11-15-11:21:50-44431' exited with 1 Nov 15 11:22:06 sv1 abrtd: Deleting problem directory '/var/spool/abrt/

Re: File '/usr/sbin/nginx' seems to be deleted

2014-11-13 Thread khav
@Maxim Dounin So a simple service nginx restart would do the job ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254626,254811#msg-254811 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

File '/usr/sbin/nginx' seems to be deleted

2014-11-05 Thread khav
I am seeing a lot of these entries in my logs Nov 6 04:29:13 sv1 kernel: nginx[62598]: segfault at 0 ip 00438f38 sp 0 0007fffa5a934c0 error 4 in nginx (deleted)[40+e2000] Nov 6 04:29:13 sv1 abrt[22289]: File '/usr/sbin/nginx' seems to be deleted Nov 6 04:29:13 sv1 abrt[222

Re: SSL slow on nginx

2014-07-01 Thread khav
I am currently using 1024 bit dhparams for maximum compatibility Here is my ssllabs report : https://www.ssllabs.com/ssltest/analyze.html?d=filterbypass.me If i remove the DH from my cipher suites , will handshake simulation be still a success for all browsers listed in the ssllabs report above

Re: SSL slow on nginx

2014-07-01 Thread khav
Thanks Maxim and GreenGecko for the insights The worker process does match my number of cpu cores (running on 8 cores atm) How can i know the number of handshakes per seconds occurring on the server The openssl speed result have been posted on http://pastebin.com/hNeVhJfa for readability Yo

SSL slow on nginx

2014-06-27 Thread khav
For my site , ssl seems to be slow even though i got A+ on sslabs (implemented ocsp stapling, Forward Secrecy , spdy) Here is the result from pingdom http://tools.pingdom.com/fpt/#!/cc2MfH/https://www.filterbypass.me/ Notice the high connect time and high ssl negociation time Here is my ng

Re: Recommended spdy configuration

2014-06-27 Thread khav
Thanks for the info Valentin Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251150,251276#msg-251276 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Recommended spdy configuration

2014-06-25 Thread khav
What is the most suitable value according to you for the following directives `spdy_headers_comp` and `spdy_chunk_size` . i want to optimize spdy to get better performance.I am only using Nginx as my webserver (No apache or any other software). My Nginx vesion is : 1.7.2 Thanks Posted at Nginx