Xin Herbert Wu wrote:
(1) Assume I have a web app called mywebapp.war and I deployed it to the jboss server(http1.1 connector listens on port 8080). I can access this web app with the URL http://localhost:8080/mywebapp/index.html (easy for development) (2) Now I want to add the apache server(assuming on port 80) as the front-end to access mywebapp.war with shorter url http://localhost:80/index.html (nice for production)
JkMount /mywebapp/* yourworker RewriteEngine On RewriteCond %{REQUEST_URI} ^/(.*)$ #You can have Apache serve static content #for example /mywebapp/images/* #RewriteCond %{REQUEST_URI} !^/images/.*$ RewriteRule ^/(.*) /mywebapp/$1 [PT] Regards, Mladen. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]