How to creat a Custom error pages in Apache for JBoss AS7

Posted on 2012-08-23
Last Modified: 2013-12-02

        ErrorLog /var/log/httpd/mat-error.log
        # Log everything in common format, except events tagged with dontlog - see end    
       of httpd.conf for details
        CustomLog /var/log/httpd/mat-access.log common env=!dontlog
        #Redirect to proper start page.
       RewriteEngine On
       RewriteRule ^/$ /Admin-0.1/login [R=301,L]
       ProxyRequests Off
       ProxyPreserveHost On
        <Proxy *>
&#9;&#9;&#9;Order deny,allow
&#9;&#9;&#9;Allow from all
        # ProxyPass to the jboss instance
        ProxyPass / http://localhost:8081/
        ProxyPassReverse / http://localhost:8081/
         <Location />
        Order allow,deny
        Allow from all
Question by:gunasekharyalamuri
    LVL 2

    Expert Comment

    Hi ,

    You can try using "mod_jk" for the custom error pages for different error codes.

    To get more information with a working example you can go through the below link

    Topic: Custom error pages in Apache for JBoss AS7

    Ravish Mody
    LVL 26

    Accepted Solution

    Hi, as your using mod_proxy Apache httpd dosen't see the errors, or serve the error pages, they all come from Jboss, so you'll need to add the pages and / or url's to the GLOBAL web.xml located in: /server/<your server>/deployers/jbossweb.deployer  


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now