

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
28 messages in ru.sysoev.nginxRe: Location problems| From | Sent On | Attachments |
|---|---|---|
| Matteo Niccoli | Feb 19, 2008 1:37 am | |
| Denis F. Latypoff | Feb 19, 2008 2:22 am | |
| Matteo Niccoli | Feb 19, 2008 2:38 am | |
| Igor Clark | Feb 19, 2008 3:04 am | |
| Denis F. Latypoff | Feb 19, 2008 3:23 am | |
| Igor Clark | Feb 28, 2008 11:41 am | |
| Igor Sysoev | Feb 28, 2008 12:49 pm | |
| Igor Clark | Feb 29, 2008 1:38 am | |
| Igor Sysoev | Feb 29, 2008 2:41 am | |
| Igor Clark | Feb 29, 2008 3:13 am | |
| Igor Sysoev | Feb 29, 2008 3:30 am | |
| Igor Clark | Feb 29, 2008 7:36 am | |
| Cliff Wells | Feb 29, 2008 11:20 pm | |
| Igor Sysoev | Feb 29, 2008 11:47 pm | |
| Igor Clark | Mar 3, 2008 6:07 am | |
| Igor Sysoev | Mar 3, 2008 6:15 am | |
| Igor Clark | Mar 3, 2008 8:52 am | |
| Igor Sysoev | Mar 3, 2008 8:55 am | |
| Igor Clark | Mar 3, 2008 9:43 am | |
| Igor Sysoev | Mar 3, 2008 9:49 am | |
| Igor Clark | Mar 4, 2008 6:13 am | |
| Igor Clark | Mar 6, 2008 9:40 am | |
| Igor Sysoev | Mar 8, 2008 12:05 pm | |
| Igor Clark | Mar 10, 2008 3:04 am | |
| Igor Sysoev | Mar 10, 2008 3:28 am | .method |
| Igor Clark | Mar 10, 2008 3:51 am | |
| Igor Clark | Mar 31, 2008 11:14 am | .conf, .conf, .log |
| Igor Clark | Apr 7, 2008 3:04 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: Location problems | Actions... |
|---|---|---|
| From: | Igor Clark (igor...@public.gmane.org) | |
| Date: | Feb 29, 2008 3:13:25 am | |
| List: | ru.sysoev.nginx | |
Hi Igor,
Everything that doesn't exist as a file gets routed to either / frontend.php, or /admin.php if the URI starts with /admin. If so, it's IP-restricted in this case, basic_auth protected in other cases.
So we want to be able to do:
/ -> /frontend.php -> fastcgi
/speakers/show/all -> /frontend.php?control_path=/speakers/show/all -> fastcgi
/admin -> /admin.php -> fastcgi, protected
/admin/speakers/edit/32 /admin.php?control_path=/admin/speakers/edit/ 32 -> fastcgi, protected
I'm just wondering whether our approach of "rewrite first, then deal with locations" is just wrong, maybe we should deal with locations first and then rewrite if necessary.
Thanks for your help, Igor
On 29 Feb 2008, at 10:42, Igor Sysoev wrote:
On Fri, Feb 29, 2008 at 09:39:20AM +0000, Igor Clark wrote:
Hi Igor, thank you very much. When I did
location ~^ /admin/
it still gave a 404, but when I changed it to
location ~^ /admin.php
it worked perfectly. Seems I've been trying to apply "location" to pre- rewrite URLs, which just won't work - is that right?
Could you write what URIs and how you want to handle, for example:
/ -> fascgi /admin/ -> fascgi, auth protected ...
?
On 28 Feb 2008, at 20:50, Igor Sysoev wrote:
On Thu, Feb 28, 2008 at 07:41:34PM +0000, Igor Clark wrote:
I just want to do the following, but still have all the other directives work, so that rewrites and PHP work under /admin:
fastcgi_index index.php; fastcgi_intercept_errors on; include conf/fastcgi_params;
location ^~ /admin/ {
allow 1.2.3.4; deny all;
location ~ \.php$ { fastcgi_pass 127.0.0.1:9999; } }
location ~ \.php$ { fastcgi_pass 127.0.0.1:9999; }
-- Igor Sysoev http://sysoev.ru/en/
-- Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749 5355 // www.pokelondon.com








.method