• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 943
  • Last Modified:

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

        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
1 Solution
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
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now