Is there a mod that can do this?

This is a discussion on Is there a mod that can do this? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I am running apache in a reverse proxy mode and I am looking for a mod that would look ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008
omarfk@gmail.com
 
Posts: n/a
Default Is there a mod that can do this?

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
  #2 (permalink)  
Old 01-12-2008
Kees Nuyt
 
Posts: n/a
Default Re: Is there a mod that can do this?

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)
  #3 (permalink)  
Old 01-12-2008
omarfk@gmail.com
 
Posts: n/a
Default Re: Is there a mod that can do this?

On Jan 12, 5:00 pm, Kees Nuyt <k.n...@nospam.demon.nl> 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.
  #4 (permalink)  
Old 01-12-2008
Kees Nuyt
 
Posts: n/a
Default Re: Is there a mod that can do this?

On Sat, 12 Jan 2008 09:19:26 -0800 (PST), omarfk@gmail.com
wrote:

>On Jan 12, 5:00 pm, Kees Nuyt <k.n...@nospam.demon.nl> 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...yerroroverride
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)
  #5 (permalink)  
Old 01-12-2008
omarfk@gmail.com
 
Posts: n/a
Default Re: Is there a mod that can do this?

On Jan 12, 11:30 pm, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
> On Sat, 12 Jan 2008 09:19:26 -0800 (PST), oma...@gmail.com
> wrote:
>
>
>
> >On Jan 12, 5:00 pm, Kees Nuyt <k.n...@nospam.demon.nl> 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...yerroroverride
> 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 :)


  #6 (permalink)  
Old 01-12-2008
Kees Nuyt
 
Posts: n/a
Default Re: Is there a mod that can do this?


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...yerroroverride
>> 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)
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:50 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0