Reputation: 1741
I have an application that can be browsed into when i go to http://localhost:8080/application name/app/index.html#/home
I would like to be able to browse it when i just hit the server name e.g http://localhost:8080
How can it be done ?
Upvotes: 0
Views: 562
Reputation: 4096
When using tomcat, in web.xml you can add :
<welcome-file-list>
<welcome-file>app/index.html</welcome-file>
</welcome-file-list>
Then you can access it with :
http://localhost:8080/application_name/
This will only shorter the root page of your application, but I think this is the more important when you want to spread it.
After doing this you should take a look at :
Deploying my application at the root in Tomcat
Upvotes: 1