2 Replies Latest reply on Oct 8, 2012 6:07 AM by erasmo2 marciano2

    How to redirect requests to HTTPS & use custom error pages?

    alxtsg Newbie

      Hi. I am using GlassFish 3 and thinking about migrating to JBoss AS 7.1.1 Final. Currently I have the following problems when setting up JBoss:


      1. How to redirect HTTP requests to HTTPS? I have read the JBoss Web documentation but the file server.xml mentioned cannot be found. If there is replacement of the rewrite engine in JBoss AS 7.1.1 Final, where can I find the references/ articles to study?


      2. In GlassFish, I can set a property "send-error_1" with value "code=404 path=${com.sun.aas.instanceRoot}/docroot/404.html" in each virtual server to redirect user to 404.html when 404 error (resource not found) occurred. May I know how should I configure JBoss to get the similar result? BTW I want to have a global configuration but not setting it again and again in each web application.


      Many thanks.