Re[2]: Proxying to ip-camera

2016-04-08 Thread wishmaster
Hi, --- Original message --- From: "Francis Daly" Date: 8 April 2016, 10:12:08 > On Fri, Apr 08, 2016 at 08:45:48AM +0300, wishmaster wrote: > > > On Thu, Apr 07, 2016 at 06:44:08PM +0300, wishmaster wrote: > > Hi there, > > > > > > I ha

Re[2]: Proxying to ip-camera

2016-04-07 Thread wishmaster
Hi, Francis. > On Thu, Apr 07, 2016 at 06:44:08PM +0300, wishmaster wrote: > > Hi there, > > > > I have the web site and would like to proxying all requests to /ipcam > > > location to internal ip-camera. > > > > > > website http://site.com

Re: Proxying to ip-camera

2016-04-07 Thread wishmaster
> > Hi, > > I have the web site and would like to proxying all requests to /ipcam > location to internal ip-camera. > > website http://site.com > ip-cam http://site.com/ipcam > > Below config: > > location /ipcam { > proxy_pass http://192.168.20.99:80/; > proxy_redirect off; > proxy_set_head

Proxying to ip-camera

2016-04-07 Thread wishmaster
Hi, I have the web site and would like to proxying all requests to /ipcam location to internal ip-camera. website http://site.com ip-cam http://site.com/ipcam Below config: location /ipcam { proxy_pass http://192.168.20.99:80/; proxy_redirect off;

Re: Nginx + Php-fpm Ownership issue !!

2015-12-30 Thread wishmaster
Hi, > > Hi, > > > We've installed nginx + php-fpm on FreeBSD OS and both of them are listening > on www user / group. Here is the config : > > NGINX : > > user www ; > > > > PHP-FPM : > > > [www] > listen = /var/run/www.socket > user = www > group = www > listen.owner = www > listen.gro

Re[2]: [Announcement] New book about Nginx

2015-08-27 Thread wishmaster
Hi, this is not my business but this reply from "B.R." has excited me. This is example of disrespect and discourtesy to the another's work. Please, keep your fucking opinion to yourself. --- w --- Original message --- From: "B.R." Date: 27 August 2015, 20:04:31 Is this for this book I

Re[2]: nginx_slowfs_cache

2015-04-19 Thread wishmaster
--- Original message --- From: "Rainer Duffner" Date: 19 April 2015, 16:15:19 > > > Am 19.04.2015 um 15:12 schrieb wishmaster : > > > > > > `ngx_slowfs_cache` is `nginx` module which allows caching of static files > > (served using `root`

Re[2]: nginx_slowfs_cache

2015-04-19 Thread wishmaster
--- Original message --- From: "Rainer Duffner" Date: 19 April 2015, 15:53:29 > > > Am 19.04.2015 um 13:14 schrieb wishmaster : > > > > Hi, > > > > Today after upgrading from nginx version 1.6.x to 1.7.x I have got a > > segmenta

nginx_slowfs_cache

2015-04-19 Thread wishmaster
Hi, Today after upgrading from nginx version 1.6.x to 1.7.x  I have got a segmentation fault. After short investigation the culprit was found. It is module by Frikle - nginx_slowfs_cache. Is anybody has the same issue? Is this module is obsolete? Cheers, Vitaliy __

fastcgi_ignore_headers inside if{} - block

2015-03-08 Thread wishmaster
Hi. I need set some fascgi_* inside "if" block. E.g.: if ($foo = "bar") { fastcgi_ignore_headers "Set-Cookie"; } But the error is occure on configtest stage: nginx: [emerg] "fastcgi_ignore_headers" directive is not allowed here Is there any workaround? -- Cheers, Vitaliy ___

Re: Caching based on Content Size

2014-10-07 Thread wishmaster
Hi, what about $http_content_length and map this variable with directives $*_cache_bypass and $*_no_cache. Cheers, w --- Original message --- From: "trm asn" Date: 7 October 2014, 17:35:41 > Hi List :  > > Is there any way to restrict object caching bases on their sizes . > > > For exa

Re[2]: Response header from fcgi server

2014-09-17 Thread wishmaster
--- Original message --- From: "Francis Daly" Date: 17 September 2014, 17:29:43 > On Wed, Sep 17, 2014 at 05:22:14PM +0300, wishmaster wrote: > > Hi there, > > > My problem is still actual. > > I am attempting to use http header from f

Re[3]: Response header from fcgi server

2014-09-17 Thread wishmaster
--- Original message --- From: "wishmaster" Date: 17 September 2014, 10:21:03 > > > > --- Original message --- > From: "Francis Daly" > Date: 17 September 2014, 10:06:47 > > > > > On Wed, Sep 17, 2014 at 08:49:36AM +0300

Re[2]: Response header from fcgi server

2014-09-17 Thread wishmaster
--- Original message --- From: "Francis Daly" Date: 17 September 2014, 10:06:47 > On Wed, Sep 17, 2014 at 08:49:36AM +0300, wishmaster wrote: > > Hi there, > > > PHP-application sends response with HTTP header X-Language and I need pass > > thi

Re: Response header from fcgi server

2014-09-16 Thread wishmaster
  --- Original message --- From: "wishmaster" Date: 17 September 2014, 08:49:51 > Hi, > > PHP-application sends response with HTTP header X-Language and I need pass > this to nginx. > With Firebug I see this header, but variable $http_x_language or > $s

Response header from fcgi server

2014-09-16 Thread wishmaster
Hi, PHP-application sends response with HTTP header X-Language and I need pass this to nginx. With Firebug I see this header, but variable $http_x_language or $sent_http_x_language is empty. What I am doing wrong? ___ nginx mailing list nginx@nginx

Re: How to measure time spent on response compression for Nginx?

2014-09-14 Thread wishmaster
--- Original message --- From: "Wei Chen" Date: 14 September 2014, 07:18:40 > Hi folks: > > We want to measure how long Nginx takes to compress certain response > with Gzip format. Is there any way/tool to get accurate timing? > You can find some information about gzip on Calome.

fastcgi_cache_bypass. Need some explain.

2014-09-11 Thread wishmaster
Hi, I am attempting to configure nginx to avoid caching some data. map $http_x_requested_with $no_cache { default 0; "XMLHttpRequest" 1; } fastcgi_cache_bypass $no_cache; fastcgi_no_cache $no_cache; With above configuration exceptions work

Re[2]: Nginx multiple php sites

2014-07-15 Thread wishmaster
--- Original message --- From: "B.R." Date: 15 July 2014, 19:16:19 > > > I also think CodeIgniter needs the PATH_INFO environment variable set. This is not true, as you can choose of using PATH_INFO, QUERY_STRING, REQUEST_URI and so on, so this tricks with path_info is excessiv

Re[2]: Nginx 1.7.0: location @php

2014-06-01 Thread wishmaster
I have the same problem in my php-application. Admin folder is protected with auth_basic and the rest folders - without auth. I have not found any solution except code duplication for php location. --- Original message --- From: "TECK" Date: 2 June 2014, 06:47:47 > Francis, > > We

Re: Nginx - PHP FPM Server load is very high

2014-03-06 Thread wishmaster
--- Original message --- From: "agriz" Date: 6 March 2014, 21:18:05 > Hi > > The server is struggling to handle the traffic. > I have 8GB ram. Quad core server. > > I have changed the config file for nginx and i have default config for php > fpm. > Please advice the best config. > >

Re[2]: How to disable PHP output buffering

2014-02-12 Thread wishmaster
--- Original message --- From: "gaspy" Date: 13 February 2014, 08:20:21 > "To ensure configuration of the PHP part is done correctly, you can dump > communication between nginx and PHP." > > Now that sounds interesting. How can I do this? > Use php process listening on inet/inet6 soc

Re: security risks... ( a bit OT )

2014-02-12 Thread wishmaster
Hi, Steve. I use a lot of sites, like you: joomla, opencart, etc. I have 2 security principals: - virtualization. I use FreeBSD "light" jails + vnet. Each CMS in own jail, e.g. joomla-jail with all sites written on joomla cms, opencart-jail and so on. - php pools. Each site in own pool with ri

Re[3]: proxy_cache_methods OPTIONS;

2014-01-26 Thread wishmaster
--- Original message --- From: "wishmaster" Date: 26 January 2014, 12:07:24 > > > > --- Original message --- > From: "Jeroen Ooms" > Date: 26 January 2014, 05:27:46 > > > > > On Fri, Jan 24, 2014 at 11:42 PM, wishmaste

Re[2]: proxy_cache_methods OPTIONS;

2014-01-26 Thread wishmaster
--- Original message --- From: "Jeroen Ooms" Date: 26 January 2014, 05:27:46 > On Fri, Jan 24, 2014 at 11:42 PM, wishmaster wrote: > > What is your proxy_cache_methods value? > > I tried both > > proxy_cache_methods OPTIONS; > Because "

Re: X-Frame-Options: Nginx includes header twice

2014-01-24 Thread wishmaster
--- Original message --- From: "Some Developer" Date: 25 January 2014, 06:04:10 > I'm running Nginx 1.4.4 on Ubuntu 12.04 and have added the X-Frame-Options > header for one of my sites but in testing it appears that Nginx includes this > itself in addition to user configured headers

Re: proxy_cache_methods OPTIONS;

2014-01-24 Thread wishmaster
I think you should use official site. http://nginx.org/en/docs/http/ngx_http_proxy_module.html What is your proxy_cache_methods value? --- Original message --- From: "Jeroen Ooms" Date: 25 January 2014, 01:34:11 > Is it possible to cache the OPTIONS method? This pages gives exactly > th

fastcgi_cache and 304 response

2014-01-11 Thread wishmaster
Hi, I use nginx + php-fpm (via fcgi) and needed responses from php-server are putting into cache. I have one thought, could be better send cached pages to clients from cache with 304 code instead 200. So we must know time when response has been cached (something like variable) and send 304 res

Re: Empty error log

2014-01-08 Thread wishmaster
--- Original message --- From: "chAlx" Date: 8 January 2014, 11:08:35 > I have installed Nginx for a small web server with static content. It works > fine but the site error log file is always empty. All errors such as 404 are > written to the access log only. File grants are the sam

Re[2]: Nginx FastCGI cache for vBulletin

2013-12-09 Thread wishmaster
--- Original message --- From: "ivanp" Date: 9 December 2013, 10:38:02 > Done that already. Actually using Zend OPcache + Memcached, it is better > than XCache. > > fastcgi_cache would additionally boost speed for guest users, just looking > for correct config. Confirm. I have e-marke

Re[2]: why the change in links on the wiki?

2013-12-04 Thread wishmaster
--- Original message --- From: "Maxim Dounin" Date: 5 December 2013, 00:33:44 > Hello! > > On Wed, Dec 04, 2013 at 01:04:17PM -0800, David Birdsong wrote: > > > I noticed this a few months back. Why do the links on wiki.nginx.org link > > to > > nginx.org/en/docs/ instead of to wiki.nginx.

fastcgi_buffering and caching from FastCGI server

2013-12-02 Thread wishmaster
Hi, devel team! Playing with caching responses from FCGI server I've found not documented issue. When fastcgi_buffering is "off", then fastcgi_cache doesn't work. Yes, this is logical completely, but I think would be better specify it in docs. What do you think? Cheers, w ___

Re: Generating/Updating .gz files for gzip_static

2013-10-22 Thread wishmaster
--- Original message --- From: "gaspy" Date: 22 October 2013, 15:12:54 > I'm new to nginx. I love the gzip_static option and I;ve been thinking about > the best way to generate, update and delete these files. > I wrote an article here: > http://www.richnetapps.com/generation-of-gzip-files-fo

Re[2]: nginx and GeoLite2

2013-10-21 Thread wishmaster
Hi, --- Original message --- From: "Maxim Dounin" Date: 21 October 2013, 16:13:01 > Hello! > > On Mon, Oct 21, 2013 at 12:38:30PM +0300, wishmaster wrote: > > > Hi > > I am planning to use GeoLite with nginx. On the MaxMind website there is an >

nginx and GeoLite2

2013-10-21 Thread wishmaster
Hi I am planning to use GeoLite with nginx. On the MaxMind website there is an announcement: Announcement Free access to the latest in IP geolocation databases is now available in our GeoLite2 Databases I've used this db but nginx returned the error. Is it possible to use GeoLite2? Nginx versi

Re[2]: Rewrite URL to only show value of $_GET argument

2013-09-09 Thread wishmaster
--- Original message --- From: "Andrew Martin" Date: 9 September 2013, 15:53:01 > Thanks for the suggestions. I was not able to get $arg_title to work. Here is > the relevant section of my nginx config:        server_name mysite.com; > > > > > try_files $uri $uri/ index.php; > > > loc

Re[2]: proxy buffering for media files?

2013-09-03 Thread wishmaster
--- Original message --- From: "Maxim Dounin" Date: 3 September 2013, 17:58:00 > Hello! > > On Tue, Sep 03, 2013 at 10:39:49AM -0400, bkosborne wrote: > > > I'm working on a configuration for an nginx proxy that splits requests > > between two upstream servers. The main reason I'm using a

Re: Avice for my vhost configuration

2013-08-06 Thread wishmaster
--- Original message --- From: "Mik J" Date: 6 August 2013, 00:44:37 > Hello, > > > > > > > I plan to configure my nginx server with a couple of vhosts. > > For each of them I want: > > - to use php > > - deny access begining by a dot > > - not logging access to favicon > > > >

Re: call http request from location

2013-06-25 Thread wishmaster
--- Original message --- From: "asd" Date: 25 June 2013, 18:48:37 > Hy. > > It possible exec curl from location or call http request with other solution? > > > I need request special url if user start playing mp4 video. > I think this is job for php or any other server-side application.

Re[2]: Re[2]: auth_basic 500 Internal Server Error

2013-06-24 Thread wishmaster
Yeah, Steve! You're right. Thanks. nginx config dir had rwx for root:wheel only. Need to sleep :-). --- Original message --- From: "Steve Holdoway" Date: 25 June 2013, 00:25:26 > On Tue, 2013-06-25 at 00:20 +0300, wishmaster wrote: > > > > --- Original

Re[2]: auth_basic 500 Internal Server Error

2013-06-24 Thread wishmaster
--- Original message --- From: "Reinis Rozitis" Date: 24 June 2013, 23:00:48 > > 2013/06/24 22:03:05 [crit] 34189#0: *1 open() > > "/usr/local/etc/nginx/authpw" failed (13: Permission denied) > > > > # ls -lo ./authpw > > -r--r- 1 root www - 50 24 чер 21:58 ./authpw > > > > What I ha

auth_basic 500 Internal Server Error

2013-06-24 Thread wishmaster
Hi, guys! I am attempting to secure one subdirectory on the server with ngx_http_auth_basic_module. Unfortunately, without success. In log file error: 2013/06/24 22:03:05 [crit] 34189#0: *1 open() "/usr/local/etc/nginx/authpw" failed (13: Permission denied), client: 111.222.251.165, server: s

Re[2]: server name rewrite

2013-06-19 Thread wishmaster
Thank you Francis, your answer is exhaustive, as always. --- Original message --- From: "Francis Daly" Date: 20 June 2013, 00:27:48 > On Wed, Jun 19, 2013 at 09:22:11PM +0300, wishmaster wrote: > > Hi there, > > > From http://wiki.nginx.org/Pitfalls I use tw

server name rewrite

2013-06-19 Thread wishmaster
Hi, guys! E.g. I have server new_server_name.com and want to rewrite requests to www.new_server_name.com and old_server_name.com to present server. >From http://wiki.nginx.org/Pitfalls I use two server's {} directives for this >instead if(). server { server_name www.new_server_name.com old_se

Re: Need some help with rewrite rule translation

2013-06-12 Thread wishmaster
--- Original message --- From: "Simon H�nscheid" Date: 13 June 2013, 01:14:11 > Hello List, > > I managed to translate nearly all our old apache rules, but have some > problems with the following ones: > > # skip existing files > RewriteCond %{REQUEST_FILENAME} -f [OR] > RewriteCond %{REQU

Re: Howto force text type of dir/subdir/file?

2013-05-29 Thread wishmaster
--- Original message --- From: "Patrick Lists" Date: 29 May 2013, 17:35:18 > Hi, > > On a CentOS 6.4 box with nginx 1.4.1 I would like to expose > /usr/share/doc/* as /doc so I can easily browse the docs from > the installed packages. > > Config I have right now (thanks Nodex on irc for

Re[2]: Rewriting

2013-05-23 Thread wishmaster
efined locations in your config > For example: > > server > { > listen 80; > > if ($remote_addr ~ '192.168.1.25') > { > return 403; > } > > location / > { > ... > } > > location ~ \.php$ > { > ... > } > > } > > On

Rewriting

2013-05-23 Thread wishmaster
Hi, I use opencart with nginx+php-fpm. Sometimes it is necessary to redirect all clients, except admin (190.212.201.0/24), to "Service unavailable" page which is simple index.html file with logo, background image and some text, located in /unav directory. Below some of nginx.conf location / {