| From | Sent On | Attachments |
|---|---|---|
| eliott | Jan 26, 2008 7:18 pm | |
| Cliff Wells | Jan 27, 2008 9:10 pm | |
| eliott | Jan 27, 2008 10:13 pm | |
| Igor Sysoev | Jan 27, 2008 10:21 pm | |
| eliott | Jan 27, 2008 10:31 pm | |
| Igor Sysoev | Jan 27, 2008 10:58 pm | |
| Volodymyr Kostyrko | Jan 28, 2008 12:54 am | |
| Igor Sysoev | Jan 28, 2008 1:36 am | |
| Cliff Wells | Jan 28, 2008 2:11 am | |
| Volodymyr Kostyrko | Jan 28, 2008 2:49 am | |
| eliott | Jan 28, 2008 7:06 pm |
| Subject: | Re: question about proxy_store | |
|---|---|---|
| From: | Volodymyr Kostyrko (c.kw...@public.gmane.org) | |
| Date: | Jan 28, 2008 12:54:56 am | |
| List: | ru.sysoev.nginx | |
eliott wrote:
I am having problems with proxy being unable to store pages that do not have a file extension (such as a directory or "nice url").
1. User requests http://domain.com/page/hello/ 2. nginx looks in the root, can not find the page. 3. nginx uses the error page, which then calls a proxy pass inside a location 4. nginx fetches the page. 5. nginx cannot save the results, because it is /page/hello/ nginx does create the /page/hello/ directory inside the proxy_store directory though.
location /{ proxy_pass http://somewhere.com/; proxy_set_header X-Real-IP $remote_addr; proxy_store /home/arcade/www2/$uri#; proxy_set_header Host $host; }
Trick is to add some symbol to any path making any url a valid file link. If we do select symbol which would not come in uri at any case we can use as escape symbol.
Works for me.
-- Sphinx of black quartz judge my vow.





