Yes, you can go 99% with the code in OpenBD. Thought cgi.server_name returns the name of the server, no? thought you wanted to have the domain? In any case, let us know how it works.
I have this system in place over at http://razuna.com. So, I know that it works :-) Kind Regards, Nitai On Fri, Jan 22, 2010 at 2:27 PM, Mats Stromberg <[email protected]> wrote: > oh, you mean that my cfm will see the 12345.domain.com still... that way my > code I allready have would pick it up... Though I'm using the > cgi.server_name which I haven't tried yet if openBD support. > <cfset iUserID = Left(cgi.server_name, > FindNoCase(FindOneOf(".",cgi.server_name,1)-1)> > OK I will try that. Thanks > Mats > > On Fri, Jan 22, 2010 at 2:13 PM, Nitai @ Razuna <[email protected]> wrote: >> >> Piece of cake :-) Put this in your fusebox.init.cfm file: >> >> <!--- Parse the subdomain name ---> >> <cfset thename = #cgi.http_host#> >> <cfset thecount = findoneof(".",thename) - 1> >> <cfset thesubdomain = mid(cgi.HTTP_HOST,1,thecount)> >> >> And you got your subdomain :-) >> >> Kind Regards, >> Nitai >> >> On Fri, Jan 22, 2010 at 2:05 PM, Mats Stromberg <[email protected]> >> wrote: >> > Hi Nitai, >> > I have an Apache with Tomcat/OpenBD installed Single Instance and in the >> > Apache I have the VirtualHost with the ServerAlias *.domain.com >> > by using proxy forward to www.domain.com wich works as such over the >> > Apache... how can I pick up the 12345.domain.com in openBD to lookup my >> > record in the DB ? >> > /Mats/ >> > >> > On Fri, Jan 22, 2010 at 12:49 PM, Nitai @ Razuna <[email protected]> >> > wrote: >> >> >> >> Yeah you can't have a wildcard record in Tomcat. Another reason for >> >> Apache (or better yet Nginx :-) ) >> >> >> >> Anyhow, to solve it you need to have a host container (as you have) >> >> with a fixed domain, say "tomcat.mydomain.com". Then in Apache you >> >> have the wildcard domain and forward all requests to that >> >> *.mydomain.com to tomcat.mydomain.com, like; >> >> >> >> proxy / ajp://tomcat.mydomain.com:8009 >> >> >> >> If you want to keep the localhost domain for tomcat you can also >> >> simply set the defaulthost in Tomcat. Then in apache you would still >> >> use the; >> >> >> >> proxy / ajp://localhost:8009 >> >> >> >> string. >> >> >> >> Kind Regards, >> >> Nitai >> >> >> >> On Fri, Jan 22, 2010 at 12:41 PM, Mats <[email protected]> wrote: >> >> > I'm back again with a question, that might not be OpenBD specific but >> >> > rather Tomcat configuration issue.. >> >> > My old fusebox app make use of the Apache configuration *.domain.com >> >> > A user will have his specific CF page under 1234.domain.com and >> >> > another on 12345.domain.com >> >> > This I nee to pick up dynamically in openBD but I can't seem to get >> >> > Tomcat to accept this. >> >> > All examples I've seen for the <Host > section is using the >> >> > <Alias>mydomain1.com</Alias> >> >> > <Alias>mydomain2.com</Alias> >> >> > Is it at all possible to use <Alias>*.domain.com</Alias> ? since I >> >> > don't have control on how many users are available in the application >> >> > and that number changes over the time. And ofcourse I'm using this >> >> > subdomain number to look up the users record in the DB... >> >> > >> >> > Anyone haveing an idea how to solve this? >> >> > >> >> > -- >> >> > 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 !! -- 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 !!
