PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Suppress Apache response
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Suppress Apache response

Réponse
 
LinkBack Outils de la discussion
Vieux 16/05/2006, 09h33   #1
megha
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Suppress Apache response

Hi,
In my application I set the error code and the http error response
using the http response methods response.setStatus. The client that I
am using to talk to web server is windows cleint.
Now when the application gets 404 error code, the web server throws the
following

HTTP/1.1 404 Not found
Date: Tue, 16 May 2006 07:11:12 GMT
Server: Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.7c
mod_jk2/2.0.2
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Content-Length: 959

<html><head><title>Apache Tomcat/5.0.18 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 404 - Not found</h1><HR size="1"
noshade><p><b>type</b> Status report</p><p><b>message</b> <u>Not Found
.....


I want to suprress the message
<html><head><title>Apache Tomcat/5.0.18 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 404 - Not found</h1><HR size="1"
noshade><p><b>type</b> Status report</p><p><b>message</b> <u>Not Found
.....


Is there any way I can do the same.

Thanks
Megha

  Réponse avec citation
Vieux 16/05/2006, 09h54   #2
Andreas Prilop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Suppress Apache response

On 16 May 2006, megha wrote:

> Now when the application gets 404 error code, the web server throws the
> following
>
> HTTP/1.1 404 Not found
> ....
>
> I want to suprress the message
> <html><head><title>Apache Tomcat/5.0.18 - Error
>
> Is there any way I can do the same.


ErrorDocument 404 "

http://httpd.apache.org/docs/1.3/mod...#errordocument

--
The working man is dead - the acute accent is alive.
http://www.workingmansdeath.com/imag...kinoplakat.gif

  Réponse avec citation
Vieux 16/05/2006, 09h54   #3
Andreas Prilop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Suppress Apache response

On 16 May 2006, megha wrote:

> Now when the application gets 404 error code, the web server throws the
> following
>
> HTTP/1.1 404 Not found
> ....
>
> I want to suprress the message
> <html><head><title>Apache Tomcat/5.0.18 - Error
>
> Is there any way I can do the same.


ErrorDocument 404 "

http://httpd.apache.org/docs/1.3/mod...#errordocument

--
The working man is dead - the acute accent is alive.
http://www.workingmansdeath.com/imag...kinoplakat.gif

  Réponse avec citation
Vieux 18/05/2006, 15h40   #4
Juha Laiho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Suppress Apache response

"megha" <tina.raj@gmail.com> said:
> In my application I set the error code and the http error response
>using the http response methods response.setStatus. The client that I
>am using to talk to web server is windows cleint.
>Now when the application gets 404 error code, the web server throws the
>following
>
>HTTP/1.1 404 Not found
>Date: Tue, 16 May 2006 07:11:12 GMT
>Server: Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.7c
>mod_jk2/2.0.2
>Content-Type: text/html; charset=ISO-8859-1
>Content-Language: en-US
>Content-Length: 959
>
><html><head><title>Apache Tomcat/5.0.18 - Error
>report</title>

....

>I want to suprress the message
><html><head><title>Apache Tomcat/5.0.18 - Error
>report</title>

....

Create an error document for your application; documentation is in
Java Servlet specification:
http://www.jcp.org/aboutJava/communi...154/index.html

The error document can be either a static page containing an error
message, or a servlet or jsp making some processing based on the error
status.

The other response would've been applicable to Apache httpd server,
but not for Apache Tomcat (which seems to be what you're running).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
  Réponse avec citation
Vieux 18/05/2006, 15h40   #5
Juha Laiho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Suppress Apache response


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h53.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10216 seconds with 13 queries