TurnKey Linux Virtual Appliance Library

Tomcat assistance desperately needed

we have a Turnkey Tomcat installation using basic config i.e. / = localhost

we need to add a virtual host, such that new hostname 'new.newdomain.com' points to 

existing webapp located at  /newdomain (in webapps list)

this is a 2 line change in Apache httpd.conf but the virtual hosts manager cannot be made to work correctly and we do not know what we are doing wrong. Help??

If you are using Apache

If you are using Apache Tomcat 11.2

go to /var/lib/tomcat6/webapps/ROOT and modify index.html like the following.

<head>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></head>
 

T.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)