0

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 ?

yonia
  • 1,681
  • 1
  • 14
  • 12

1 Answers1

1

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

Community
  • 1
  • 1
yunandtidus
  • 3,847
  • 3
  • 29
  • 42