liftweb - change base url

I have a website developed with Liftweb, which runs on tomcat 6 on port 8080 behind an apache webserver on port 80. The apache server binds the / path to the tomcat application folder (which look like /liftweb-application/).

Unfortunately, lift adds automatically the liftWeb.js in my HTML code with the tomcat application folder as prefix. Thus, instead of www.mydomain.com/ajax_request/liftAjax.js, I have www.mydomain.com/liftweb-application/ajax_request/liftAjax.js which doesn't exist.

My question is : is there a way to change the base url from www.mydomain.com/liftweb-application/ to www.mydomain.com/ ?

Thanks in advance !

Answers


Yes, you will need to deploy your WAR file as the ROOT context in Tomcat. This seems like a pretty decent explanation: http://benhutchison.wordpress.com/2008/07/30/how-to-configure-tomcat-root-context/


Need Your Help

Prompt user to rate an Android app inside the App

android user-input rating voting

In my Android app, I want to prompt the user at some point of time to rate the app in Android market.

What does “Percentage of New Users” mean in Load Test TFS 2013?

visual-studio-2013 performance-testing load-testing

I am running a Web Performance test in Visual studio 2013 Ultimate version, I need some clarification on my scenario:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.