Link to home
Start Free TrialLog in
Avatar of gunasekharyalamuri
gunasekharyalamuri

asked on

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

<VirtualHost 58.95.23.25:80>
        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
        </Proxy>
        # ProxyPass to the jboss instance
        ProxyPass / http://localhost:8081/
        ProxyPassReverse / http://localhost:8081/
         <Location />
        Order allow,deny
        Allow from all
        </Location>
</VirtualHost>
Avatar of rmody
rmody
Flag of India image

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
http://middlewaremagic.com/jboss/?p=1334

Regards,
Ravish Mody
ASKER CERTIFIED SOLUTION
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial