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.l og
# 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 *>
			Order deny,allow
			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>
ServerAdmin admin@mat.com
ServerName rc1.mat.com
ServerAlias www.mat.com
ErrorLog /var/log/httpd/mat-error.l
# Log everything in common format, except events tagged with dontlog - see end
of httpd.conf for details
CustomLog /var/log/httpd/mat-access.
#Redirect to proper start page.
RewriteEngine On
RewriteRule ^/$ /Admin-0.1/login [R=301,L]
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
			Order deny,allow
			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>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Regards,
Ravish Mody