|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
Messages: n/a
Hébergeur: |
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 |
|
Messages: n/a
Hébergeur: |
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 |
|
Messages: n/a
Hébergeur: |
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 |
|
Messages: n/a
Hébergeur: |
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 |
|
Messages: n/a
Hébergeur: |
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) |
|
![]() |
| Outils de la discussion | |
|
|