From owner-freebsd-java@FreeBSD.ORG Thu Nov 29 10:20:59 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 22B28D3A for ; Thu, 29 Nov 2012 10:20:59 +0000 (UTC) (envelope-from zhoushuqun@gmail.com) Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9E5DA8FC13 for ; Thu, 29 Nov 2012 10:20:58 +0000 (UTC) Received: by mail-ea0-f182.google.com with SMTP id a14so5110094eaa.13 for ; Thu, 29 Nov 2012 02:20:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=+pN/d50Fr1EDWYR6MaTlEuuhfrZRAhL52/d8cP2LPy8=; b=XOcnH6V8gGwswKL36AbXsBOzJ3JkEUjAjvJdMkqlXEDhT0T1HJPrMSvKONecBbhSIE OYFisHRH7eJJwR9eIkVuub+NKivWaeN3wpGyu08g9Trzi/USjgdMUVgEiDesWI0Fbo9U rtNDrUC3VLpwFZGJmp+tYdKr0BMKUpeUzG9w+Wb50+/QEIPyRHdNNSIKjVNDL+ZZnt3I CU4P+Fpnw1eXPo2OwHYWNla31kFvWbmvqKxZXApVurkzqyNqJD9jJoWhhXX8djg5dYT6 LsaZ6pSEIkQsmHROpdkD7Ofm9S0tCpZVQY3S5IjHUMVIZoD30tCc9iiV/C9kWm8lEiVH 1Q3w== Received: by 10.14.221.9 with SMTP id q9mr81101847eep.3.1354184457288; Thu, 29 Nov 2012 02:20:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.42.198 with HTTP; Thu, 29 Nov 2012 02:20:16 -0800 (PST) In-Reply-To: <2499889.49.1354126926241.JavaMail.mfournier@Marcs-Mac-Pro.local> References: <26089750.39.1354126329852.JavaMail.mfournier@Marcs-Mac-Pro.local> <2499889.49.1354126926241.JavaMail.mfournier@Marcs-Mac-Pro.local> From: Sutra Zhou Date: Thu, 29 Nov 2012 23:20:16 +1300 Message-ID: Subject: Re: Mapping / -> jboss:/application in Apache ... To: Marc Fournier Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-java@freebsd.org 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: Thu, 29 Nov 2012 10:20:59 -0000 I think deploying your webapp on the "/" context-path in jboss is better than on "/subfolder" since in the webapp it may context-path aware, if you deploy on "/subfolder" in the java webapp it will be "/subfolder", then it maybe redirect you to "/subfolder". You can read this thread http://stackoverflow.com/questions/6063339/spring-security-and-ajp-proxyfor more about this. On Thu, Nov 29, 2012 at 7:22 AM, Marc Fournier wrote: > > 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 ... > > > > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" >