I just went through this. you have to add the computer external IP or
dns name to the jetty.xml config for it to listen on that name or IP.
its in jetty.xml under the handler section
the item for the site you are pointing to needs to have the entry for
the IP or dns name
<Item>
<New id="cfmlWebContext_1"
class="org.mortbay.jetty.webapp.WebAppContext">
<Set
name="contextPath">/</Set>
<Set
name="war"><SystemProperty name="jetty.home" default="."/>/
webroot_cfmlapps/cfmlWebContext_1/</Set>
<Set
name="defaultsDescriptor"><SystemProperty
name="jetty.home" default="."/>/etc/webdefault.xml</Set>
<Set
name="VirtualHosts">
<Array
type="java.lang.String">
<Item>127.0.0.1</Item>
<Item>MYIP or DNS Name</Item> <<<<<<<< HERE
</Array>
</Set>
</New>
</Item>
On Apr 17, 8:56 am, Andy Wu <[email protected]> wrote:
> That's precisely how to do it. I verified locally with my own copy of
> jetty that without it, I get a 404 when attempting to access it with my
> local network IP but it works fine if I add it in there.
>
> Andy
>
> Joe wrote:
> > I checked the jetty.xml and tried to replace "localhost" with the
> > server ip in the <Set name="VirtualHosts"> block. It still shows HTTP
> > ERROR: 404. Any further idea? Could you advise me where and how I
> > should set the IP. I I did as follows:
> > <New id="cfmlWebContext_1"
> > class="org.mortbay.jetty.webapp.WebAppContext">
> > ............
> > <Set name="VirtualHosts">
> > <Array type="java.lang.String">
> > <Item>[our server ip here]</
> > Item>
> > </Array>
> > </Set>
> > By the way our server os is Windows 2000 and network pc is win XP.
>
> > Thanks
>
> > On Apr 16, 9:58 pm, Andy Wu <[email protected]> wrote:
>
> >> Hi Joe,
>
> >> Check the jetty.xml. There's a configuration option in there for setting
> >> which IP addresses it's listening on.
>
> >> Andy
>
> >> Joe wrote:
>
> >>> Hello,
>
> >>> I installed the "Ready 2 Run Bundle on Windows" package it works fine
> >>> on my own pc and on our server using the url "http://localhost:
> >>> 8080/...".
>
> >>> However, it gives an error "HTTP ERROR: 404 ..." when I tried to
> >>> browse from a pc within our network by using "http://[serverip]:
> >>> 8080/...".
>
> >>> Our network consultant checked and confirmed that the 8080 port is
> >>> open and there is no firewall involed. and the problem could be the
> >>> configuration of Jetty.
>
> >>> I checked the jetty.xml and tried to replace "localhost" with the
> >>> server ip in the <Set name="VirtualHosts"> block. It still shows HTTP
> >>> ERROR: 404.
>
> >>> I can run the application on the server itself (with "http://localhost:
> >>> 8080/..." ) but cannot run from another network pc.
> >>> Is there any solution for this? how can I configure it?
>
> >>> Thanks,
> >>> Joe- Hide quoted text -
>
> >> - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official site @ http://www.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---