Point it relative to your webapp path. -----Original Message----- From: John McKaine [mailto:sevjob...@mail.ru] Sent: Monday, March 01, 2010 3:55 PM To: users@tomcat.apache.org Subject: Re: How configure Tomcat redirect to web page instead index.htm
ramzi khlil wrote: > > In web.xml you can specify the main page. > > On Mon, Mar 1, 2010 at 4:29 PM, John McKaine <sevjob...@mail.ru> wrote: > >> >> Hello everyone. >> >> I have the website, deployed on Tomcat server (virtual host). >> When I enter in browser my domain - http://workinua.com.ua/ >> http://workinua.com.ua/ i get from server index.htm page and then by >> this code - >> >> <script> >> function redirect() { >> window.location="home.html"; >> } >> </script> >> >> redirect to my home page - http://workinua.com.ua/home.html >> http://workinua.com.ua/home.html >> >> Is it possible to configure Tomcat server to my home page(no trick >> with redirect on index.htm) ? >> >> Thanks in advance. >> >> -- >> View this message in context: >> http://old.nabble.com/How-configure-Tomcat-redirect-to-web-page-inste >> ad-index.htm-tp27749302p27749302.html >> Sent from the Tomcat - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > Thanks for your reply. But I have tried for my local server something like <welcome-file-list> <welcome-file>home.html</welcome-file> </welcome-file-list> it doesn't work... -- View this message in context: http://old.nabble.com/How-configure-Tomcat-redirect-to-web-page-instead-index.htm-tp27749302p27749558.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org