RE: Weird issue with VirtualHosts

2009-04-09 Thread MattyJ
Hi Jerome,

Shortly after posting that I realized we had a couple of DNS/reverse proxy 
issues. Now that's been sorted it's working fine. 

Sorry to have wasted your time,
Matt


Hi Matt,

Are you using some kind of reverse proxy or port mapping/firewall software
in front of your Restlet component?
 
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
 

-Message d'origine-
De : MattyJ [mailto:mjwat...@gmail.com] 
Envoyé : mercredi 8 avril 2009 06:15
À : discuss@restlet.tigris.org
Objet : Weird issue with VirtualHosts

Hi,

I'm trying to setup a couple of virtual hosts following the example given
for the actual restlet website.

My code looks like this:

// 
// www.mywebsite.com
// 
VirtualHost host = new VirtualHost(getContext());
host.setHostDomain("www.mywebsite.com|" + ipAddress);
host.setHostPort("80|" + Integer.toString(port));
host.attach(new WwwMywebsiteCom(wwwUri + "/html"));
getHosts().add(host);

// 
// media.mywebsite.com
// 
host = new VirtualHost(getContext());
host.setHostDomain("media.appliedobjects.com");
host.setHostPort("80|" + Integer.toString(port));
host.attach(new MediaMywebsiteCom(wwwUri + "/media"));
getHosts().add(host);

The funny thing is when I run this code locally on my own machine the
"media.mywebsite.com" works fine. 

But when I install the jar on the production server and attempt to run in
there the "media" virtual host doesn't seem to work. In fact no requests are
ever logged.

Do you have any suggestions as to what I might be doing wrong? I've tried
various combinations of values for the host domain and ports but to no
avail.

Thanks in advance,
Matt
--
View this message in context:
http://n2.nabble.com/Weird-issue-with-VirtualHosts-tp2603116p2603116.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=15894
36

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1595002



-- 
View this message in context: 
http://n2.nabble.com/Weird-issue-with-VirtualHosts-tp2603116p2609196.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1606857


RE: Weird issue with VirtualHosts

2009-04-08 Thread Jerome Louvel
Hi Matt,

Are you using some kind of reverse proxy or port mapping/firewall software
in front of your Restlet component?
 
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
 

-Message d'origine-
De : MattyJ [mailto:mjwat...@gmail.com] 
Envoyé : mercredi 8 avril 2009 06:15
À : discuss@restlet.tigris.org
Objet : Weird issue with VirtualHosts

Hi,

I'm trying to setup a couple of virtual hosts following the example given
for the actual restlet website.

My code looks like this:

// 
// www.mywebsite.com
// 
VirtualHost host = new VirtualHost(getContext());
host.setHostDomain("www.mywebsite.com|" + ipAddress);
host.setHostPort("80|" + Integer.toString(port));
host.attach(new WwwMywebsiteCom(wwwUri + "/html"));
getHosts().add(host);

// 
// media.mywebsite.com
// 
host = new VirtualHost(getContext());
host.setHostDomain("media.appliedobjects.com");
host.setHostPort("80|" + Integer.toString(port));
host.attach(new MediaMywebsiteCom(wwwUri + "/media"));
getHosts().add(host);

The funny thing is when I run this code locally on my own machine the
"media.mywebsite.com" works fine. 

But when I install the jar on the production server and attempt to run in
there the "media" virtual host doesn't seem to work. In fact no requests are
ever logged.

Do you have any suggestions as to what I might be doing wrong? I've tried
various combinations of values for the host domain and ports but to no
avail.

Thanks in advance,
Matt
--
View this message in context:
http://n2.nabble.com/Weird-issue-with-VirtualHosts-tp2603116p2603116.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=15894
36

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1595002


Weird issue with VirtualHosts

2009-04-08 Thread MattyJ
Hi,

I'm trying to setup a couple of virtual hosts following the example given for 
the actual restlet website.

My code looks like this:

// 
// www.mywebsite.com
// 
VirtualHost host = new VirtualHost(getContext());
host.setHostDomain("www.mywebsite.com|" + ipAddress);
host.setHostPort("80|" + Integer.toString(port));
host.attach(new WwwMywebsiteCom(wwwUri + "/html"));
getHosts().add(host);

// 
// media.mywebsite.com
// 
host = new VirtualHost(getContext());
host.setHostDomain("media.appliedobjects.com");
host.setHostPort("80|" + Integer.toString(port));
host.attach(new MediaMywebsiteCom(wwwUri + "/media"));
getHosts().add(host);

The funny thing is when I run this code locally on my own machine the 
"media.mywebsite.com" works fine. 

But when I install the jar on the production server and attempt to run in there 
the "media" virtual host doesn't seem to work. In fact no requests are ever 
logged.

Do you have any suggestions as to what I might be doing wrong? I've tried 
various combinations of values for the host domain and ports but to no avail.

Thanks in advance,
Matt
-- 
View this message in context: 
http://n2.nabble.com/Weird-issue-with-VirtualHosts-tp2603116p2603116.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1589436