From owner-freebsd-java@FreeBSD.ORG Wed Nov 28 20:13:31 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 4345571E for ; Wed, 28 Nov 2012 20:13:31 +0000 (UTC) (envelope-from mfournier@sd63.bc.ca) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id E5DB58FC13 for ; Wed, 28 Nov 2012 20:13:30 +0000 (UTC) Received: from maia.hub.org (unknown [200.46.151.189]) by hub.org (Postfix) with ESMTP id CE4491D31EB3 for ; Wed, 28 Nov 2012 16:13:23 -0400 (AST) Received: from hub.org ([200.46.204.220]) by maia.hub.org (mx1.hub.org [200.46.151.189]) (amavisd-maia, port 10024) with ESMTP id 13140-05 for ; Wed, 28 Nov 2012 20:13:23 +0000 (UTC) Received: from [10.5.250.150] (remote.ilcs.sd63.bc.ca [142.31.148.2]) by hub.org (Postfix) with ESMTPA id BEECE1D31EB2 for ; Wed, 28 Nov 2012 16:13:22 -0400 (AST) From: Marc Fournier Message-Id: Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: =?windows-1252?Q?=5BSOLVED=5D_Was=3A_Re=3A_Mapping_/_-=3E_jboss?= =?windows-1252?Q?=3A/application_in_Apache_=85?= Date: Wed, 28 Nov 2012 12:13:21 -0800 References: <2499889.49.1354126926241.JavaMail.mfournier@Marcs-Mac-Pro.local> To: freebsd-java@freebsd.org In-Reply-To: <2499889.49.1354126926241.JavaMail.mfournier@Marcs-Mac-Pro.local> X-Mailer: Apple Mail (2.1499) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 20:13:31 -0000 Figured it out =85 much simpler (at least then I was able to find) then = under Tomcat =85 Step 1: Edit standalone.xml to change enable-welcome-root to false: From: to: And then add a file jboss-web.xml to your .war file's WEB-INF directory = that contains: / And you are away to races =85 On 2012-11-28, at 10:22 , Marc Fournier wrote: >=20 > 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: >=20 > ProxyPass / ajp://localhost:8009/subfolder > ProxyPassReverse / ajp://localhost:8009/subfolder >=20 > When I go to: >=20 > http://localhost >=20 > the url gets rewritten as 'http://localhost/subfolder >=20 > and I get an error: >=20 > HTTP Status 404 - /subfoldersubfolder/ >=20 > from jboss ... >=20 > 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 ... >=20 > 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? >=20 > Or, should I just change the context-path in jboss to re-point :8080/ = and do / on Apache -> :8080/ on jboss ... ? >=20 > Thoughts / advice? >=20 > thanks ... >=20 >=20 >=20 >=20