Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Virtual Host

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I am a newbie in using the Resin Server (3.0.6 at the moment)
I would ask the community, if someone could give me a hint in configuring a virtual host with resin.
For instance I want to link the host www.myhost.com directly to the webapplication myhost which lies under webapps/myhost.
I've already read the resin documentation but I didn't manage it.
I did the following in the resin.conf file:
<host host-name="www.myhost.com" id='www.www.myhost.com'>
<document-directory>C:\resin-3.0.6\webapps\myhost</document-directory>
</host>
this brings me to my page only if I go directly to "http://www.myhost.com/myhost" but I want to enter it by "http://www.myhost.com".
Any hints?
By the way, what is the difference between the document-directory and the root-directory ?
Thanks a lot in advance
Thomas
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may have to use a META tag to redirect to the desired page or in the Resin.config file, set the default document.
Regards,
Tom Pridam
CIO
www.365MT.com
 
Thomas B�hler
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your answer...
Could you give me an example, plz ?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Thomas B�hler:
Hi!
I am a newbie in using the Resin Server (3.0.6 at the moment)
I would ask the community, if someone could give me a hint in configuring a virtual host with resin.

For instance I want to link the host www.myhost.com directly to the webapplication myhost which lies under webapps/myhost.

I've already read the resin documentation but I didn't manage it.
I did the following in the resin.conf file:

<host host-name="www.myhost.com" id='www.www.myhost.com'>

<document-directory>C:\resin-3.0.6\webapps\myhost</document-directory>
</host>

this brings me to my page only if I go directly to "http://www.myhost.com/myhost" but I want to enter it by "http://www.myhost.com".

Any hints?

By the way, what is the difference between the document-directory and the root-directory ?

Thanks a lot in advance
Thomas

 
Ursi Barone
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Thomas B�hler:
Hi!
I am a newbie in using the Resin Server (3.0.6 at the moment)
I would ask the community, if someone could give me a hint in configuring a virtual host with resin.

For instance I want to link the host www.myhost.com directly to the webapplication myhost which lies under webapps/myhost.

I've already read the resin documentation but I didn't manage it.
I did the following in the resin.conf file:

<host host-name="www.myhost.com" id='www.www.myhost.com'>

<document-directory>C:\resin-3.0.6\webapps\myhost</document-directory>
</host>

this brings me to my page only if I go directly to "http://www.myhost.com/myhost" but I want to enter it by "http://www.myhost.com".

Any hints?

By the way, what is the difference between the document-directory and the root-directory ?

Thanks a lot in advance
Thomas

 
Ursi Barone
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i had the same problem. What are you dong about it now? Whathave you done in between to work on it? Looking forward to your answer.
Ursi
 
I love a woman who dresses in stainless steel ... and carries tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic