i have deployed a website on apache Tomcat server 8.0 (lets suppose the folder name is WebsiteFolderName) in the form of war file. when i access the website by url [www.example.com] , my site redirects to [www.example.com/login.jsp] and then gives me a invalid path error.
But when i access the site using [www.example.com/WebsiteFolderName] , my site redirects to [www.example.com/WebsiteFolderName/login.jsp] and then login page works fine but rest of my website pages also face this path issue.
what should i do so that i can access my website using www.example.com instead of http://www.example.com/WebsiteFolderName
You got two easy options:
<Context path="" docBase="your_war_file" debug="0" reloadable="true"></Context>
Option 2 is easier, but option 1 is easier for fast deployment.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.