From: Nigel C. <nca...@ex...> - 2006-03-08 09:49:32
|
Hi Kenny, A context can have one or more virtual hosts. So, every request that matches the item that you have defined will be passed to that context. If you have added www.mysite.com to your virtual hosts, then every request for this url will be mapped to your context. Regards, Nigel ----- Original Message ----- From: <kia...@mx...> To: <jet...@li...> Sent: Wednesday, March 08, 2006 4:06 PM Subject: Re: [Jetty-support] Virtual Host Configuration > HI Nigel for replying me! So if my PC has the ip address of "1.2.3.4" then > i just put the following in my jetty.xml file: >> <Call name="addWebApplication"> >> ... >> >> <Set name="virtualHosts"> >> <Array type="java.lang.String"> >> <Item></Item> >> <Item>127.0.0.1</Item> >> <Item>localhost</Item> >> <Item>www.acme.com</Item> > <item>1.2.3.4</item> >> </Array> >> </Set> >> </Call> > Is it ok you think??The servlet need to handle request from a mobile > device and my computer(having an access point of "1.2.3.4") on which the > jetty 5.1.10 is working.I will be accessing the servlet by a mobile client > which is also a laptop having wireless card configuration. My access point > let`s say have ip address "1.2.3.4". To access the servlet from my laptop > i just put the url http://1.2.3.4:8080/servletAppPath? > ANy idea coz i have tried with the "http://localhost:8080/servletAppPath" > and this works fine when accessing the servlet on the same PC. > Thanks giving some advice! > Kenny > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Jetty-support mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jetty-support |