-
1. Re: Multiple context path for a single .war
nickarls Apr 25, 2013 7:37 AM (in response to mrinmoy28)I guess you could have something in front doing URL rewrites but I'm not sure what that is what you're getting at?
-
2. Re: Multiple context path for a single .war
mrinmoy28 Apr 25, 2013 7:56 AM (in response to nickarls)Let me explain a bit. The .war application we are talking about is used by atleat 10 other websites under a brand. Therefore the context path includes the BRAND name i.e. context path looks somehting like /BRANDapplication. Now there is another website who does not want to use the BRAND part because to access the same application they are using a different domain altogether. Hence the new website wants the context path as /application (BRAND will be removed). That is why we are thinking how we can provide these 2 different context paths (/BRANDapplication & /application) for a single web app.
-
3. Re: Multiple context path for a single .war
nickarls Apr 25, 2013 8:03 AM (in response to mrinmoy28)There is the virtual-server concept, too but I don't think you can get down to a single deployment for your scenario(?)
-
4. Re: Multiple context path for a single .war
sfcoy Apr 25, 2013 8:45 PM (in response to mrinmoy28)This can be done with Apache httpd configuration.
-
5. Re: Multiple context path for a single .war
mrinmoy28 Apr 26, 2013 1:08 AM (in response to sfcoy)Hi Stephen, by apache redirection you can receive the 2nd context path in apache and forward it to the 1st context path. I guess in that case the link which user is clicking might contain 2nd context path, but after launcing the page URL will have the 1st one. If I am wrong, could you please elaborate little more.
-
6. Re: Multiple context path for a single .war
sfcoy Apr 26, 2013 1:17 AM (in response to mrinmoy28)If your application is correctly generating page relative links then it should stick to the original context.
If your pages have the application context hard coded in them somewhere then you will need to rectify this.