|
Home > Archive > WebSphere HTTP Server > August 2004 > ErrorDocument, Redirect and WebSphere web plugin
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
ErrorDocument, Redirect and WebSphere web plugin
|
|
|
| Hi,
I saw that some people had problems with the ErrorDocument setting, but my case seems to be particular.
The issue I'm facing is as follows:
I can't redirect users to a customized error page.
My configuration is:
I have a front web server linked to WebSphere by the WebSphere web plugin.
I have also some virtual host in my http.conf because we need to redirect users (We have DNS aliases to offer customers easy and short URLs).
My http.conf has the following parameters:
NameVirtualHost websphere-test
<VirtualHost app01.fr.myfirm.com app01> (app01 is the DNS alias used by customers for the first application)
ServerAlias app01.fr.myfirm.com
ErrorDocument 404 /Error404.html
ErrorDocument 500 /Error500.html
Redirect permanent / http://app01.fr.myfirm.com/app01
</VirtualHost>
<VirtualHost app02.fr.myfirm.com app02> (app02 is the DNS alias used by customers for the second application)
ServerAlias app02.fr.myfirm.com
ErrorDocument 404 /Error404.html
ErrorDocument 500 /Error500.html
Redirect permanent / http://app02.fr.myfirm.com/app01
</VirtualHost>
(The document root is set to
DocumentRoot "C:\Program Files\IBM HTTP Server/htdocs/en_US"
(At the end of the httpd.conf we have the web plugin loading lines)
LoadModule ibm_app_server_http_module "C:\Program Files\IBM HTTP Server\modules/mod_ibm_app_server_http.dll"
WebSpherePluginConfig "C:\Program Files\IBM HTTP Server\conf/plugin-cfg.xml"
Any idea ?
Thanks a lot for any help you could provide.
Maxime Heinisch.
PS: An additionnal question: How can I manage to make special characters appearing like less than, greater than signs ? It seems that the browser view them as HTML code.
| |
| Sunit Patke 2004-08-18, 6:01 pm |
| I am not in a position to setup and test what you are trying but these are
my thoughts:
You have not set DocumentRoot for each of the VirtualHost, so it will use
the default (global)
DocumentRoot and hence always display the same error pages for both the
Virtual Hosts.
If this is not the issue then can you please post what is the exact error
you are seeing. Please include any entries in the access_log and error_log
of the HTTP Server.
Sunit
<m.heinisch@wyniwyg.com> wrote in message
news:338353189.1092822370751.JavaMail.wasadmin@swg3ws006...
> Hi,
>
> I saw that some people had problems with the ErrorDocument setting, but my
case seems to be particular.
> The issue I'm facing is as follows:
> I can't redirect users to a customized error page.
>
> My configuration is:
> I have a front web server linked to WebSphere by the WebSphere web plugin.
> I have also some virtual host in my http.conf because we need to redirect
users (We have DNS aliases to offer customers easy and short URLs).
>
> My http.conf has the following parameters:
> NameVirtualHost websphere-test
> <VirtualHost app01.fr.myfirm.com app01> (app01 is the DNS alias used by
customers for the first application)
> ServerAlias app01.fr.myfirm.com
> ErrorDocument 404 /Error404.html
> ErrorDocument 500 /Error500.html
> Redirect permanent / http://app01.fr.myfirm.com/app01
> </VirtualHost>
> <VirtualHost app02.fr.myfirm.com app02> (app02 is the DNS alias used by
customers for the second application)
> ServerAlias app02.fr.myfirm.com
> ErrorDocument 404 /Error404.html
> ErrorDocument 500 /Error500.html
> Redirect permanent / http://app02.fr.myfirm.com/app01
> </VirtualHost>
>
>
> (The document root is set to
> DocumentRoot "C:\Program Files\IBM HTTP Server/htdocs/en_US"
>
> (At the end of the httpd.conf we have the web plugin loading lines)
> LoadModule ibm_app_server_http_module "C:\Program Files\IBM HTTP
Server\modules/mod_ibm_app_server_http.dll"
> WebSpherePluginConfig "C:\Program Files\IBM HTTP
Server\conf/plugin-cfg.xml"
>
> Any idea ?
>
> Thanks a lot for any help you could provide.
>
> Maxime Heinisch.
>
> PS: An additionnal question: How can I manage to make special characters
appearing like less than, greater than signs ? It seems that the browser
view them as HTML code.
|
|
|
|
|