Is there a mod that can do this?
Is there a mod that can do this?
am 12.01.2008 03:32:34 von omarfk
Hello,
I am running apache in a reverse proxy mode and I am looking for a mod
that would look at the result from the application server, and based
on certain conten, would do certain things like display specific text
or go to a different url..
Basically, this application server I am reverse proxing for has a very
ugly 404/error page, and would like to show something else if a 404/
error/no index occur.
Thanks
Re: Is there a mod that can do this?
am 12.01.2008 14:00:49 von Kees Nuyt
On Fri, 11 Jan 2008 18:32:34 -0800 (PST), omarfk@gmail.com
wrote:
>Hello,
>
>I am running apache in a reverse proxy mode and I am looking for a mod
>that would look at the result from the application server, and based
>on certain conten, would do certain things like display specific text
>or go to a different url..
>
>Basically, this application server I am reverse proxing for has a very
>ugly 404/error page, and would like to show something else if a 404/
>error/no index occur.
>
>Thanks
In httpd.conf add:
ErrorDocument 404 /your404script.php
--
( Kees
)
c[_] In youth we learn; in age we understand. (#114)
Re: Is there a mod that can do this?
am 12.01.2008 18:19:26 von omarfk
On Jan 12, 5:00 pm, Kees Nuyt wrote:
> On Fri, 11 Jan 2008 18:32:34 -0800 (PST), oma...@gmail.com
> wrote:
>
> >Hello,
>
> >I am running apache in a reverse proxy mode and I am looking for a mod
> >that would look at the result from the application server, and based
> >on certain conten, would do certain things like display specific text
> >or go to a different url..
>
> >Basically, this application server I am reverse proxing for has a very
> >ugly 404/error page, and would like to show something else if a 404/
> >error/no index occur.
>
> >Thanks
>
> In httpd.conf add:
> ErrorDocument 404 /your404script.php
> --
> ( Kees
> )
> c[_] In youth we learn; in age we understand. (#114)
Thanks for your response. But doesn't that assume that the
applications server outputs something that can be interpreted by
apache as a 404 error? The problem is that the application server
does not do the standard error pages/messages and there is no way I
can modify the response.
Re: Is there a mod that can do this?
am 12.01.2008 20:30:36 von Kees Nuyt
On Sat, 12 Jan 2008 09:19:26 -0800 (PST), omarfk@gmail.com
wrote:
>On Jan 12, 5:00 pm, Kees Nuyt wrote:
>> On Fri, 11 Jan 2008 18:32:34 -0800 (PST), oma...@gmail.com
>> wrote:
>>
>> >Hello,
>>
>> >I am running apache in a reverse proxy mode and I am looking for a mod
>> >that would look at the result from the application server, and based
>> >on certain conten, would do certain things like display specific text
>> >or go to a different url..
>>
>> >Basically, this application server I am reverse proxing for has a very
>> >ugly 404/error page, and would like to show something else if a 404/
>> >error/no index occur.
>>
>> >Thanks
>>
>> In httpd.conf add:
>> ErrorDocument 404 /your404script.php
>> --
>> ( Kees
>
>Thanks for your response. But doesn't that assume that the
>applications server outputs something that can be interpreted by
>apache as a 404 error? The problem is that the application server
>does not do the standard error pages/messages and there is no way I
>can modify the response.
Hm, I think I answered too fast. Looking closer to your
question, I don't think I have the answer.
But I found this:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyerr oroverride
Perhaps the combination of that and my first suggestion
will work?
--
( Kees
)
c[_] Hardware, n.: The parts of a computer system
that can be kicked. (#307)
Re: Is there a mod that can do this?
am 13.01.2008 00:04:15 von omarfk
On Jan 12, 11:30 pm, Kees Nuyt wrote:
> On Sat, 12 Jan 2008 09:19:26 -0800 (PST), oma...@gmail.com
> wrote:
>
>
>
> >On Jan 12, 5:00 pm, Kees Nuyt wrote:
> >> On Fri, 11 Jan 2008 18:32:34 -0800 (PST), oma...@gmail.com
> >> wrote:
>
> >> >Hello,
>
> >> >I am running apache in a reverse proxy mode and I am looking for a mod
> >> >that would look at the result from the application server, and based
> >> >on certain conten, would do certain things like display specific text
> >> >or go to a different url..
>
> >> >Basically, this application server I am reverse proxing for has a very
> >> >ugly 404/error page, and would like to show something else if a 404/
> >> >error/no index occur.
>
> >> >Thanks
>
> >> In httpd.conf add:
> >> ErrorDocument 404 /your404script.php
> >> --
> >> ( Kees
>
> >Thanks for your response. But doesn't that assume that the
> >applications server outputs something that can be interpreted by
> >apache as a 404 error? The problem is that the application server
> >does not do the standard error pages/messages and there is no way I
> >can modify the response.
>
> Hm, I think I answered too fast. Looking closer to your
> question, I don't think I have the answer.
>
> But I found this:http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#pro xyerroroverride
> Perhaps the combination of that and my first suggestion
> will work?
> --
> ( Kees
> )
> c[_] Hardware, n.: The parts of a computer system
> that can be kicked. (#307)
That did it!
I have been trying for several days to solve this problem and have
been staring at this page all the time.
Takk :)
Re: Is there a mod that can do this?
am 13.01.2008 00:17:46 von Kees Nuyt
On Sat, 12 Jan 2008 15:04:15 -0800 (PST), omarfk@gmail.com
wrote:
[snip]
>> >Thanks for your response. But doesn't that assume that the
>> >applications server outputs something that can be interpreted by
>> >apache as a 404 error? The problem is that the application server
>> >does not do the standard error pages/messages and there is no way I
>> >can modify the response.
>>
>> Hm, I think I answered too fast. Looking closer to your
>> question, I don't think I have the answer.
>>
>> But I found this:http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#pro xyerroroverride
>> Perhaps the combination of that and my first suggestion
>> will work?
>> --
>> ( Kees
>> )
>> c[_] Hardware, n.: The parts of a computer system
>> that can be kicked. (#307)
>
>
>That did it!
>I have been trying for several days to solve this problem and have
>been staring at this page all the time.
>
>Takk :)
Beklager, jeg snakker ikke norsk, but anyway, velkommen!
--
( Kees
)
c[_] Unqualified superlatives are the worst of all. (#440)