Hi,
Is it possible to route specific types directly to a named location
without using error_page?
e.g.
location .php$ {
@phpapp;
}
That doesn’t work, but is there any way to do this?
Thanks very much,
Igor
Hi,
Is it possible to route specific types directly to a named location
without using error_page?
e.g.
location .php$ {
@phpapp;
}
That doesn’t work, but is there any way to do this?
Thanks very much,
Igor
Of course, I meant to type
location ~ .php$ {
ahem!
Hello Igor,
Monday, September 22, 2008, 6:45:18 PM, you wrote:
Of course, I meant to type
location ~ \.php$ {
ahem!
On 22 Sep 2008, at 12:21, Igor C. wrote:
Hi,
Is it possible to route specific types directly to a named location
without using error_page?
no
Igor
–
Igor C. • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749
5355 • www.pokelondon.com
Hi Denis,
On 22 Sep 2008, at 12:48, Denis F. Latypoff wrote:
Is it possible to route specific types directly to a named location
without using error_page?no
OK, thanks for the information.
Is there another way to do what I’m trying to do though? I have this
config:
location / {
error_page 404 = @phpapp;
}
location @phpapp {
proxy_pass http://x.x.x.x;
proxy_set_header … # etc
}
so that dynamic stuff which isn’t found is routed to Apache (some PHP
code relies on some Apache features).
But I don’t want to have to duplicate all the proxy stuff inside
(an)other location block(s).
I could put it in an include, but it would be nice to be able to do it
in config directly somehow.
Thanks,
Igor
Hello Igor,
Monday, September 22, 2008, 8:13:18 PM, you wrote:
Hi Denis,
On 22 Sep 2008, at 12:48, Denis F. Latypoff wrote:
Is it possible to route specific types directly to a named location
without using error_page?
no
OK, thanks for the information.
Is there another way to do what I’m trying to do though?
no
I have this config:
location / { error_page 404 = @phpapp; }
location @phpapp { proxy_pass http://x.x.x.x; proxy_set_header ... # etc }
so that dynamic stuff which isn’t found is routed to Apache (some PHP
code relies on some Apache features).
But I don’t want to have to duplicate all the proxy stuff inside
(an)other location block(s).
I could put it in an include, but it would be nice to be able to do it
in config directly somehow.
Thanks,
Igor
Ah. OK. Thanks Denis …
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs