We faced problems with the root and app contexts using HTTPD/Apache in
front of a Servlet Container as well at my company. Our solution was as
follows, all in HTTPD. I thought I'd post this in case you find it
useful. You will probably be interested in the lines from ssl.conf (if
you don't use HTTPS then put in the httpd.conf). If you run more than
just the myApp on the server, you'd need a RewriteCond(s) to exempt your
other apps/pages from the rewrite:
httpd.conf (forces HTTPS and maps to the servlet port on requests to the
app context):
RewriteEngine On
RewriteCond %{HTTPS} "off"
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ProxyRequests Off
<Proxy */myApp>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /myApp http://localhost:8080/myApp
ProxyPassReverse /myApp http://localhost:8080/myApp
ssl.conf (maps requests not to the app, such as root, to the app context):
RewriteEngine On
RewriteRule !^/myApp https://%{HTTP_HOST}/myApp%{REQUEST_URI}
On 04/13/2011 12:04 PM, Jochen Heintz wrote:
Hi,
i am tried this in AppModule :
public static void contributeAlias(Configuration configuration)
{
BaseURLSource source = new BaseURLSource()
{
public String getBaseURL(boolean secure)
{
return "http://....";
}
};
configuration.add(AliasContribution.create(BaseURLSource.class,
source));
}
but the method getBaseURL gets never called. Did i missed something.
Thanks
Jochen
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Absolute-Paths-in-Tapestry-5-2-5-tp4300824p4300975.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org