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
Tomcat: 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 or 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]> 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]> 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]>
>> 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]> 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]>
>> >> 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 !!

Reply via email to