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

Posted on 2012-08-23
Medium Priority
Last Modified: 2013-12-02
        ServerAdmin admin@mat.com
        ServerName rc1.mat.com
        ServerAlias www.mat.com

        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

Expert Comment

ID: 38332312
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

arober11 earned 1500 total points
ID: 38343940
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  

See:  http://stackoverflow.com/questions/3754237/how-to-set-a-custom-404-page-in-jboss-5

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 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