• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IBM Http Server : Unable to redirect to custom error page

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Really wondering if anyone has done it, please give me pointers regarding how to implement it. Tons of document suggest how to use custome error pages with IHS/Apache. I am using IHS1.3.19.3 on Solaris8. Trying to implement simplest custom error page for http error 404. As per the docs, I need to add a line ErrorDocument 404 /error404.html where error404.html should be in docroot folder. After this modification, I never forget to restart the IHS. Still if I give any invalid url (i.e. <a href="http://<hostname rel="nofollow">/test.html" target="_blank">http://<hostname>/test.html when test.html does not exist at server), I see the usual http 404 page, not the error page error404.html which I would like. Is here something I am missing???
 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most likely problem is that WebSphere fileserving is switched on so IHS is simpley passing all the requests to WebSphere. Use the AAT to edit the EAR file to switch off file serving or setup error page redirect in WebSphere. See infocenter/handbook for details.
 
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<error-page>
<error-code>404</error-code>
<location>/404.html</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/ErrorHandler</location>
</error-page>
[ February 13, 2003: Message edited by: David Hibbs ]
 
expectation is the root of all heartache - shakespeare. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic