only .json file not load using rewrite or internal redirection cycle while internally redirecting

2016-04-20 Thread rahulgupta20nov
Hi, In nginx conf file I have written:- location /hello { alias /var/www/html/hello/some_path/www; try_files $uri $uri/ /helllo/some_path/www/index.html; } location ~ /hello/(.*)\.(css|js|html|eot|svg|ttf|woff|ico|png|map|json) { try_files $uri $uri/ /hello/som

Re: Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread CJ Ess
Ok, I understand what is happening now, thank you! On Wed, Apr 20, 2016 at 11:52 AM, Maxim Dounin wrote: > Hello! > > On Wed, Apr 20, 2016 at 09:24:52AM -0400, CJ Ess wrote: > > > I've tried putting this directive into the nginx config file in both the > > main and html sections: > > > > error_

Re: (52) Empty reply from server

2016-04-20 Thread Francis Daly
On Wed, Apr 20, 2016 at 12:54:13PM +0530, Pankaj Chaudhary wrote: Hi there, > >>But your code snippet does not match exactly the types and return values > >>of that example. I don't know if that is something worth investigating. > > I have tried to change match exactly the types and return value

Re: Making Tomcat accessible only through nginx reverse proxy

2016-04-20 Thread Francis Daly
On Wed, Apr 20, 2016 at 07:19:55AM -0400, gischethans wrote: Hi there, > I have a Tomcat server serving a web application and I have a Nginx server > running in front of it as a reverse proxy. What you need is that your users talk to nginx, and that nginx is able to talk to tomcat. What you add

Re: Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread Maxim Dounin
Hello! On Wed, Apr 20, 2016 at 09:24:52AM -0400, CJ Ess wrote: > I've tried putting this directive into the nginx config file in both the > main and html sections: > > error_log syslog:server=127.0.0.1,facility=local5 error; > > The file tests fine and reloads without issue, however if I do fus

Re: Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread CJ Ess
Yes, I went as far as to stop nginx altogether, manually verify there are no nginx processes running, then start it again and it opens the error log first thing. On Wed, Apr 20, 2016 at 9:51 AM, Robert Paprocki < rpapro...@fearnothingproductions.net> wrote: > Have you done a full restart (not a r

Re: Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread Robert Paprocki
Have you done a full restart (not a reload)? I would imagine the master process needs to flush everything out. > On Apr 20, 2016, at 06:24, CJ Ess wrote: > > I've tried putting this directive into the nginx config file in both the main > and html sections: > > error_log syslog:server=127.0.0

Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread CJ Ess
I've tried putting this directive into the nginx config file in both the main and html sections: error_log syslog:server=127.0.0.1,facility=local5 error; The file tests fine and reloads without issue, however if I do fuser -u on the error file (which is the same one used by syslog) I see that eve

Re: [nginx-announce] nginx-1.9.15

2016-04-20 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.9.15 for Windows https://kevinworthington.com/nginxwin1915 (32-bit and 64-bit versions) This version was built with OpenSSL 1.0.2g, so upgraded is strongly encouraged. These versions are to support legacy users who are already using Cygwin based builds o

Making Tomcat accessible only through nginx reverse proxy

2016-04-20 Thread gischethans
I have a Tomcat server serving a web application and I have a Nginx server running in front of it as a reverse proxy. Both the servers are on Intranet, in the same domain network. The issue I am facing is, the tomcat server is accessible through both IP addresses - if I use the Nginx IP, it redirec

Re: Redirection problem again in new rules.

2016-04-20 Thread Muhammad Yousuf Khan
Thanks Alot Francis Daly, actually i was trying to understand the working of rewrite and location rules how they handle the query. you explain it very well. Thanks again for sharing such useful and detailed explanation. i really appreciate that. :) On Tue, Apr 19, 2016 at 4:23 AM, Francis Daly

Re: (52) Empty reply from server

2016-04-20 Thread Pankaj Chaudhary
>>But your code snippet does not match exactly the types and return values >>of that example. I don't know if that is something worth investigating. I have tried to change match exactly the types and return values of that example. but below is response curl: (52) Empty reply from server >>Also, y