Re: ngx_conf_t args count

2013-12-15 Thread Jeffrey Walton
On Mon, Dec 16, 2013 at 2:15 AM, Ruslan Ermilov wrote: > On Sun, Dec 15, 2013 at 04:31:08PM -0500, Jeffrey Walton wrote: >> From Miller's http://www.evanmiller.org/nginx-modules-guide.html, section >> 5.2: >> >> ngx_http_upstream_hash(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) >> { >> n

Re: ngx_conf_t args count

2013-12-15 Thread Ruslan Ermilov
On Sun, Dec 15, 2013 at 04:31:08PM -0500, Jeffrey Walton wrote: > From Miller's http://www.evanmiller.org/nginx-modules-guide.html, section 5.2: > > ngx_http_upstream_hash(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) > { > ngx_http_upstream_srv_conf_t *uscf; > ngx_http_script_compile_

Re: SSL OCSP stapling won't enable

2013-12-15 Thread justin
Steve, Yeah, I am getting OCSP response: no response sent. Should I try ssl_stapling_verify off; Any other ideas? Thanks. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245528,245549#msg-245549 ___ nginx mailing list nginx@nginx.org http://

ngx_conf_t args count

2013-12-15 Thread Jeffrey Walton
>From Miller's http://www.evanmiller.org/nginx-modules-guide.html, section 5.2: ngx_http_upstream_hash(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { ngx_http_upstream_srv_conf_t *uscf; ngx_http_script_compile_t sc; ngx_str_t *value; ngx_array_t

Re: hello

2013-12-15 Thread Ilan Berkner
Nginx does not use the .htaccess file, only Apache does. To prevent all users from accessing your site, except those coming from Israel, you can use the MaxMind Geo IP database in conjunction with an if statement in the Nginx configuration file. See http://eng.eelcowesemann.nl/linux-unix-android/

Re: hello

2013-12-15 Thread Jonathan Matthews
On 15 December 2013 15:21, nginx14 wrote: > Hello, I have a nginx server is enabled. > And I have a file called htaccess > The file should cause to allowing accessed only from Israel. > > But the file does not work, > I realized that it is related to nginx only. Nginx does not use htaccess files

hello

2013-12-15 Thread nginx14
Hello, I have a nginx server is enabled. And I have a file called htaccess The file should cause to allowing accessed only from Israel. But the file does not work, I realized that it is related to nginx only. What can you do? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245545,24554

Proxy_cache or direct static files ?

2013-12-15 Thread Larry
Hello, I don't quite understand what I could get from caching with proxy_cache vs serving static files directly. Everywhere people tend to say that it is better to cache, but isn't caching the same as serving directly from static file ? Say that I serve home.html from a plain static html file, w