I have been wondering, why not just use tomcat to serve up all of the  
data? For example, if I'm creating a site/web app (e.g.  
myapp.foo.com), and all of my content is using cfml pages does it make  
sense to use the proxy connection between Apache and Tomcat? Also, are  
there and good example config files for tomcat where the site does  
alot of heavy database queries and simultaneous connections? As an  
example I have a .cfc soap web service and I need to be able to  
support about 1500-2000 simultaneous posts of data. How do I go about  
making sure I have the right config to provide such support?


Thanks,
tom

On Apr 24, 2009, at 4:58 PM, Alan Holden wrote:

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