OK, first of all - I'm not running nor know Jetty. I have the Apache / 
Tomcat / J2EE setup on my server.
Therefore, what I did has a very high probability of being absolutely no 
help at all:

In my /etc/apache2/sites-available/default file - I set up a proxy 
connection between Apache and Tomcat like so:

<VirtualHost *:80>
        ServerName www.company.com
        ProxyPass / http://[severIp]:[tomcatPort]/myopenbdpath/company/
        ProxyPassreverse / http://[severIp]:[tomcatPort]/myopenbdpath/company/
        HostnameLookups Off
</VirtualHost>

(Apache needs to be running some proxy modules too. nuther subject)

But the part that may be more relevant is the extra redirect I had to 
set up for those company.com requests:

<VirtualHost *:80>
        ServerName company.com
        Redirect 301 / http://www.company.com/
</VirtualHost>

Since I use a CF script to write out these Apache config files anyway, it was 
no big deal for me to write the redirect host in addition to the proxy one.
It was a cheap fix for me. And like I said up front, Jetty may not even have a 
place for stuff like this.

Alan K. Holden

DetailsDotAt wrote:
> Ok..
>
> Using company.com as an example, the following jetty.xml excerpt is
> working for "company.com" but not "www.company.com"
>
> However, I can telnet to both company.com and www.company.com at port
> 80, so i know that Jetty is listening for www.company.com, but it only
> actually renders a page in the browser for requests to company.com,
> www.company.com is just a white page.
>
>   

--~--~---------~--~----~------------~-------~--~----~
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 !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to