Jordan, Thanks will give that a try as well... Almost the only possible step I didn't do so far.
Regards, /Mats/ On Mon, Feb 8, 2010 at 7:17 PM, Jordan Michaels <[email protected]>wrote: > You need to set your site as the default host. > > In your Tomcat server.xml file, look for the Host entry that's name is > "localhost". Point the "docBase" location to where your FB app is, > ("/var/www/mycompany.com" in your own examples), restart Tomcat, and let > us know how it goes. > > > > Warm regards, > Jordan Michaels > Vivio Technologies > http://www.viviotech.net/ > Open BlueDragon Steering Committee > Railo Community Distributions > > > Mats Stromberg wrote: > >> This is exatly what I have here... still I only get the www.to < >> http://www.to> work... agree I don't fully understand how Apache and >> Tomcat work together... If I would, I would never have asked theese >> questions :) >> At the moment I don't have the <Alias>www.mydomain.com < >> http://www.mydomain.com></Alias> in my Host entry tomcat.mydomain.com < >> http://tomcat.mydomain.com> and then I get the Tomcat admin page. >> >> I have your vhost settings more or less exatly only my domain is >> different. >> ServerName mydomain.com <http://mydomain.com> >> ServerAlias *.mydomain.com <http://mydomain.com> >> DocumentRoot is the same in the vhost as in my server.xml >> tomcat.mydomain.com <http://tomcat.mydomain.com> >> I'm not ProxyPass to localhost but to tomcat.mydomain.com:8009 < >> http://tomcat.mydomain.com:8009> >> >> Not sure how to bug track this to see where it goes wrong. I see in the >> Apache errorlog for this vhost I see that AJP aquired connection for >> tomcat.mydomain.com:8009 <http://tomcat.mydomain.com:8009>. A few steps >> later it gets a declining message on the :8009/asf-logo-wide.gif and then >> right away serving the same gif. >> >> >> I need to find some documentation on this... >> >> /Mats/ >> >> On Mon, Feb 8, 2010 at 10:32 AM, Nitai @ Razuna <[email protected]<mailto: >> [email protected]>> wrote: >> >> See, this is exactly the point where I tell (and told) you, that you >> did not properly understand Tomcat and the working of this system. >> >> AGAIN, we have exactly the same. We have customers which sign up, >> accounts which will expire and so on. We NEVER have to do anything >> with Apache/Tomcat. >> >> Apache: *.mydomain.com <http://mydomain.com> >> Tomcat: myservice.mydomain.com <http://myservice.mydomain.com> >> >> >> Tomcat does not even care about your domain at all, since Apache is >> forward all request to Tomcat on a STATIC domain. But with the >> "PreserveHost" Param you are letting Tomcat know (in the HEADERS) of >> the complete domain name. You can then filter it out with the cgi >> code. >> >> Thus ANY subdomain of mats.mydomain.com <http://mats.mydomain.com> >> or nitai.mydomain.com <http://nitai.mydomain.com> gets >> >> picked up in Tomcat (because Apache is forwarding it under the static >> domain) and with the CF code you get either "mats" or "nitai" and then >> can look up the dedicated records with those subdomains. >> >> Done, point, ok?, just do it :-) >> >> Kind Regards, >> Nitai >> >> On Mon, Feb 8, 2010 at 10:21 AM, Mats Stromberg >> <[email protected] <mailto:[email protected]>> wrote: >> > Well, it is a problem with an Alias in the Host container when I >> have >> > dynamic Aliases... >> > Not 5000 yet but between 1500 - 2000 and they change every day >> when someonce >> > account runs out or a new client signs up. Manually having to >> administrate >> > this I could just as well Deploy the system on a Windows Vista >> machine :) I >> > would have as much downtime due to frequently reboots :) >> > >> > Regards, >> > Mats >> > On Mon, Feb 8, 2010 at 10:15 AM, Nitai @ Razuna <[email protected] >> <mailto:[email protected]>> wrote: >> >> >> >> Mats, >> >> >> >> There is nothing wrong with a Alias in the host container. It >> might be >> >> a cosmetic bother for you, but apart from that when it works, >> then all >> >> is fine :-) >> >> >> >> Kind Regards, >> >> Nitai >> >> >> >> On Mon, Feb 8, 2010 at 10:11 AM, Mats Stromberg >> <[email protected] <mailto:[email protected]>> >> >> >> wrote: >> >> > Hi Nitai, >> >> > I know this isn't an OpenBD issue as such... >> >> > I also know that Tomcat don't handle the wildcard. As you've >> seen from >> >> > my >> >> > sample server.xml and the vhost I have a static domain in >> Tomcat and do >> >> > the >> >> > Wildcard handling up in Apache. I do have the >> ProxyPreserverOhst On... >> >> > The >> >> > code in my page do pickup the subdomain... just that for some >> reason my >> >> > wildcard domain ends up in a 403 Error so there I can't see it. >> >> > It did pick it up when I had the <Alias></Alias> in so the >> code as such >> >> > is >> >> > OK. >> >> > Starting to wonder if I have a Problem with this CentOS 5.2 >> Apache and >> >> > the >> >> > Proxy somehow. >> >> > Trust me I'm very thankfull for all your Help and that goes for >> >> > everyone on >> >> > this list! >> >> > I will start over with a clean vhost and server.xml once again >> and see >> >> > if I >> >> > can track this down. >> >> > >> >> > On Mon, Feb 8, 2010 at 9:53 AM, Nitai @ Razuna >> <[email protected] <mailto:[email protected]>> wrote: >> >> >> >> >> >> Mats, >> >> >> >> >> >> I told you now many times already, that you can't do wildcard >> within >> >> >> Tomcat. You set a fix domain in Tomcat and Apache is doing the >> >> >> wildcard for you. >> >> >> >> >> >> I sent you my code, which as a fact runs for years on my >> server and we >> >> >> have over 5000 subdomains. So this is a proven code and >> system that >> >> >> works. >> >> >> >> >> >> You never replied, if the CF code (which is also posted in this >> >> >> thread) filters out your subdomain. Also, I told you to add the >> >> >> ReserveProxy setting. This param has to be set so Tomcat will >> see the >> >> >> subdomain. You did not reply either. >> >> >> >> >> >> We all did what we can, to help you. Since this is not even >> OpenBD >> >> >> related, I think it is best to either see with a Tomcat group >> or buy a >> >> >> book on understanding how Tomcat and Apache works. >> >> >> >> >> >> Kind Regards, >> >> >> Nitai >> >> >> >> >> >> On Mon, Feb 8, 2010 at 8:49 AM, Mats Stromberg >> <[email protected] <mailto:[email protected]>> >> >> >> >> wrote: >> >> >> > It only works if I add an Alias also in the Host entry of the >> >> >> > server.xml >> >> >> > but >> >> >> > this I can't do since I don't have control over all these >> dynamic >> >> >> > subdomains. >> >> >> > I'm totally clueless at this point... >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> See for yourself how easy it is to manage files today. Join the >> >> >> revolution! >> >> >> >> >> >> Razuna SaaS On-Demand - Hosted Digital Asset Management Solution >> >> >> http://www.razuna.com/ >> >> >> >> >> >> Razuna - Open Source Digital Asset Management >> >> >> http://www.razuna.org/ >> >> >> >> >> >> Follow us on Twitter >> >> >> http://twitter.com/razunahq >> >> >> >> >> >> -- >> >> >> Open BlueDragon Public Mailing List >> >> >> http://www.openbluedragon.org/ >> http://twitter.com/OpenBlueDragon >> >> >> mailing list - http://groups.google.com/group/openbd?hl=en >> >> >> >> >> >> !! save a network - please trim replies before posting !! >> >> > >> >> > -- >> >> > Open BlueDragon Public Mailing List >> >> > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon >> >> > mailing list - http://groups.google.com/group/openbd?hl=en >> >> > >> >> > !! save a network - please trim replies before posting !! >> >> >> >> >> >> >> >> -- >> >> See for yourself how easy it is to manage files today. Join the >> >> revolution! >> >> >> >> Razuna SaaS On-Demand - Hosted Digital Asset Management Solution >> >> http://www.razuna.com/ >> >> >> >> Razuna - Open Source Digital Asset Management >> >> http://www.razuna.org/ >> >> >> >> Follow us on Twitter >> >> http://twitter.com/razunahq >> >> >> >> -- >> >> Open BlueDragon Public Mailing List >> >> http://www.openbluedragon.org/ >> http://twitter.com/OpenBlueDragon >> >> mailing list - http://groups.google.com/group/openbd?hl=en >> >> >> >> !! save a network - please trim replies before posting !! >> > >> > -- >> > Open BlueDragon Public Mailing List >> > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon >> > mailing list - http://groups.google.com/group/openbd?hl=en >> > >> > !! save a network - please trim replies before posting !! >> >> >> >> -- >> See for yourself how easy it is to manage files today. Join the >> revolution! >> >> Razuna SaaS On-Demand - Hosted Digital Asset Management Solution >> http://www.razuna.com/ >> >> Razuna - Open Source Digital Asset Management >> http://www.razuna.org/ >> >> Follow us on Twitter >> http://twitter.com/razunahq >> >> -- >> Open BlueDragon Public Mailing List >> http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon >> mailing list - http://groups.google.com/group/openbd?hl=en >> >> !! save a network - please trim replies before posting !! >> >> >> -- >> Open BlueDragon Public Mailing List >> http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon >> mailing list - http://groups.google.com/group/openbd?hl=en >> !! save a network - please trim replies before posting !! >> > > -- > Open BlueDragon Public Mailing List > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon > mailing list - http://groups.google.com/group/openbd?hl=en > > !! save a network - please trim replies before posting !! > -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !!
