How to edit url and pass forward to wsgi?

2015-09-02 Thread Thomas Nyberg
Hello, If I have the following directive: location ~ /staging/dog/.*/info/cat { rewrite /staging/(.+) /$1 break; include uwsgi_params; uwsgi_pass 127.0.0.1:3130; } then a call to `http://127.0.0.1/staging/doc/v0.2/info/cat` gets passed through to my wsgi handler

Re: How to send all these requests to the same file when I have an Angular state based router?

2015-09-02 Thread Francis Daly
On Wed, Sep 02, 2015 at 01:37:49PM -0400, maplesyrupandrew wrote: Hi there, > I'm using the Angular ui-router which uses states to control the routes. > > Meaning that all request should serve the same index.html file, and the > JavaScript worries about loading in appropriate content. >From tho

How to send all these requests to the same file when I have an Angular state based router?

2015-09-02 Thread maplesyrupandrew
I'm using the Angular ui-router which uses states to control the routes. Meaning that all request should serve the same index.html file, and the JavaScript worries about loading in appropriate content. The .htaccess rules that control the same thing are below: RewriteEngine On # Required t

Re: Why is NGINX serving a 404 here?

2015-09-02 Thread maplesyrupandrew
Thanks for the response! I made that change, and I think what was really giving the 404 was that I had changed permissions on the `index.html` file, but not on the var/www/ folder, which I needed so that the nginx user group could access it. Thanks! Posted at Nginx Forum: http://forum.nginx.org/r

Re: Implementing proxy_cache_lock when updating items

2015-09-02 Thread Maxim Dounin
Hello! On Mon, Aug 31, 2015 at 09:16:00AM -0400, footplus wrote: > Hello, > > I am currently implementing a caching proxy with many short-lived items, > expiring at a specific date (Expires header set at an absolute time between > 10 and 30 seconds in the future by the origin). For various reas

ABout setting cookie to capture j_username and j_password

2015-09-02 Thread Govind
Hi, We are using NGINX as proxy server and redirecting to amazon ELB to access Agile application. we are unable to access application because j_username & j_password are not sent with cookie to proxy server. Is there a way to set up cookie to capture j_username & j_password? Please help Posted at

Re: How to cache js/css request containing a question mark?

2015-09-02 Thread B.R.
You will need to be a little bit more specific than 'this is not working' to get some help. http://www.catb.org/esr/faqs/smart-questions.html Btw, the documentation show the default value for proxy_cache_key if none is provided, and it already takes arguments (and thus arguments' separator) into a

Re: nginx v1.8.0 / redirects

2015-09-02 Thread B.R.
I would suggest you avoid multiple redirects in the case a client connects with http://domain, because your current setup will make the client following this flow: http://domain > http://www.domain > https://www.domain This will hurt your TTFB. I suggest your first redirect should directly point t