From owner-freebsd-java@FreeBSD.ORG Wed Nov 28 18:22:10 2012 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A55A04D5 for ; Wed, 28 Nov 2012 18:22:10 +0000 (UTC) (envelope-from mfournier@sd63.bc.ca) Received: from mail.sd63.bc.ca (mail.sd63.bc.ca [142.31.146.55]) by mx1.freebsd.org (Postfix) with ESMTP id 3AD078FC0C for ; Wed, 28 Nov 2012 18:22:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.sd63.bc.ca (Postfix) with ESMTP id CA72C1F407F8 for ; Wed, 28 Nov 2012 10:22:08 -0800 (PST) X-Virus-Scanned: amavisd-new at sd63.bc.ca Received: from mail.sd63.bc.ca ([127.0.0.1]) by localhost (mail.sd63.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id viGhOVfBNDLl for ; Wed, 28 Nov 2012 10:22:08 -0800 (PST) Received: from mail.sd63.bc.ca (localhost [127.0.0.1]) by mail.sd63.bc.ca (Postfix) with ESMTP id 662011F4072D for ; Wed, 28 Nov 2012 10:22:08 -0800 (PST) Date: Wed, 28 Nov 2012 10:22:07 -0800 (PST) From: Marc Fournier To: freebsd-java@freebsd.org Message-ID: <2499889.49.1354126926241.JavaMail.mfournier@Marcs-Mac-Pro.local> In-Reply-To: <26089750.39.1354126329852.JavaMail.mfournier@Marcs-Mac-Pro.local> Subject: Mapping / -> jboss:/application in Apache ... MIME-Version: 1.0 X-Originating-IP: [142.31.148.2] X-Mailer: Zimbra 7.2.1_GA_2790 (Zimbra Desktop/7.2.1_11637_Mac) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 18:22:10 -0000 What is the currently recommended way to do this? I'm trying proxy_ajp in Apache 2.2, since it seems the simplist to setup, and reduces the # of modules I need to support ... but if I do something like: ProxyPass / ajp://localhost:8009/subfolder ProxyPassReverse / ajp://localhost:8009/subfolder When I go to: http://localhost the url gets rewritten as 'http://localhost/subfolder and I get an error: HTTP Status 404 - /subfoldersubfolder/ from jboss ... I want the whole /subfolder to be hidden behind the scenes, since this is the only thing being served from that server, and adding /subfolder/ just makes the URL longer then it needs to be ... Is this a problem with using Apache2.2/proxy_ajp itself, or how I'm setting up the proxy stuff ... ? If its with Apache2.2, would using mod_jk fix it? Or, should I just change the context-path in jboss to re-point :8080/ and do / on Apache -> :8080/ on jboss ... ? Thoughts / advice? thanks ...