Re: Wild Card Hosting
That set-up would only work for specific subdomains, what George is trying to accomplish I think is point any (wild card) subdomain to a specific virtual host without the use of static IPs for each virtual host. Although George, if you only need this done for a few virtual hosts and you have a few static IPs available, use them if you can. This is what I do: 1. Set this in my DNS: mydomain.comIN A 1.2.3.4 www.mydomain.comIN A 1.2.3.4 *IN A 1.2.3.4 2. Assign the static IP as an alias in my virtual host mydomain.com 1.2.3.4 . I hope this helps solve your problem somewhat. Drew. On Fri, 2005-03-25 at 12:47, Robert r. Sanders wrote: > I have a sort of similar setup; we have shell script that simple adds an > hostname to Tomcat's server.xml file; not the optimal > solution, but it works for us for now. > > Drew Jorgenson wrote: > > >Woops, I don't think that will work with Tomcat since the > >subdomain.mydomain.com would be passed to it and Tomcat won't know which > >container it goes to. > > > >The way I normally do this, is assign a static IP to a virtual host and > >set the IP as one of its aliases. That way all wild card domains point > >to the same container. > > > >Drew > >P.S. I will think about this a bit more since it is valid point, I > >wouldn't want to give out all my static IPs just for the wild cards to > >work. > > > >On Fri, 2005-03-25 at 12:36, Drew Jorgenson wrote: > > > > > >>I think that would still be up to your dns settings. You could have > >>something like > >> > >>* IN CNAME mydomain.com > >> > >>correct me if I'm wrong ;-) > >> > >>Drew. > >> > >> > >> > >>On Thu, 2005-03-24 at 17:46, George Sexton wrote: > >> > >> > >>>Oh, I see where you are headed. > >>> > >>>One way to go would be to have a new service, with a new IP address, and > >>>make that the default host. > >>> > >>>That's out of the question since I host for so many people. > >>> > >>>George Sexton > >>>MH Software, Inc. > >>>http://www.mhsoftware.com/ > >>>Voice: 303 438 9585 > >>> > >>> > >>> > >>> > >>>>-Original Message- > >>>>From: Drew Jorgenson [mailto:[EMAIL PROTECTED] > >>>>Sent: Thursday, March 24, 2005 4:14 PM > >>>>To: Tomcat Users List > >>>>Subject: Re: Wild Card Hosting > >>>> > >>>>Are you able to assign a static IP address to your virtual > >>>>host, meaning > >>>>do you have a static IP available? > >>>> > >>>>Drew. > >>>> > >>>> > >>>>On Wed, 2005-03-23 at 10:42, George Sexton wrote: > >>>> > >>>> > >>>>>Does anyone know if Tomcat supports Wild card hosting? Can > >>>>> > >>>>> > >>>>I specify a > >>>> > >>>> > >>>>>pattern say > >>>>> > >>>>>*.domain.com > >>>>> > >>>>>And have all requests get forwarded to a specific host? > >>>>> > >>>>>Making the host the default host is not an option, because > >>>>> > >>>>> > >>>>there is already > >>>> > >>>> > >>>>>another default host that is used. > >>>>> > >>>>> > >>>>> > >>>>>George Sexton > >>>>>MH Software, Inc. > >>>>>http://www.mhsoftware.com/ > >>>>>Voice: 303 438 9585 > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>- > >>>> > >>>> > >>>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>>For additional commands, e-mail: [EMAIL PROTECTED] > >>>>> > >>>>> > >>>>- > >>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>For additional commands, e-mail: [EMAIL PROTECTED] > >>>> > >>>> > >>>> > >>>> > >>>- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wild Card Hosting
I have a sort of similar setup; we have shell script that simple adds an hostname to Tomcat's server.xml file; not the optimal solution, but it works for us for now. Drew Jorgenson wrote: Woops, I don't think that will work with Tomcat since the subdomain.mydomain.com would be passed to it and Tomcat won't know which container it goes to. The way I normally do this, is assign a static IP to a virtual host and set the IP as one of its aliases. That way all wild card domains point to the same container. Drew P.S. I will think about this a bit more since it is valid point, I wouldn't want to give out all my static IPs just for the wild cards to work. On Fri, 2005-03-25 at 12:36, Drew Jorgenson wrote: I think that would still be up to your dns settings. You could have something like * IN CNAME mydomain.com correct me if I'm wrong ;-) Drew. On Thu, 2005-03-24 at 17:46, George Sexton wrote: Oh, I see where you are headed. One way to go would be to have a new service, with a new IP address, and make that the default host. That's out of the question since I host for so many people. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Drew Jorgenson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:14 PM To: Tomcat Users List Subject: Re: Wild Card Hosting Are you able to assign a static IP address to your virtual host, meaning do you have a static IP available? Drew. On Wed, 2005-03-23 at 10:42, George Sexton wrote: Does anyone know if Tomcat supports Wild card hosting? Can I specify a pattern say *.domain.com And have all requests get forwarded to a specific host? Making the host the default host is not an option, because there is already another default host that is used. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wild Card Hosting
Woops, I don't think that will work with Tomcat since the subdomain.mydomain.com would be passed to it and Tomcat won't know which container it goes to. The way I normally do this, is assign a static IP to a virtual host and set the IP as one of its aliases. That way all wild card domains point to the same container. Drew P.S. I will think about this a bit more since it is valid point, I wouldn't want to give out all my static IPs just for the wild cards to work. On Fri, 2005-03-25 at 12:36, Drew Jorgenson wrote: > I think that would still be up to your dns settings. You could have > something like > > * IN CNAME mydomain.com > > correct me if I'm wrong ;-) > > Drew. > > > > On Thu, 2005-03-24 at 17:46, George Sexton wrote: > > Oh, I see where you are headed. > > > > One way to go would be to have a new service, with a new IP address, and > > make that the default host. > > > > That's out of the question since I host for so many people. > > > > George Sexton > > MH Software, Inc. > > http://www.mhsoftware.com/ > > Voice: 303 438 9585 > > > > > > > -Original Message----- > > > From: Drew Jorgenson [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, March 24, 2005 4:14 PM > > > To: Tomcat Users List > > > Subject: Re: Wild Card Hosting > > > > > > Are you able to assign a static IP address to your virtual > > > host, meaning > > > do you have a static IP available? > > > > > > Drew. > > > > > > > > > On Wed, 2005-03-23 at 10:42, George Sexton wrote: > > > > Does anyone know if Tomcat supports Wild card hosting? Can > > > I specify a > > > > pattern say > > > > > > > > *.domain.com > > > > > > > > And have all requests get forwarded to a specific host? > > > > > > > > Making the host the default host is not an option, because > > > there is already > > > > another default host that is used. > > > > > > > > > > > > > > > > George Sexton > > > > MH Software, Inc. > > > > http://www.mhsoftware.com/ > > > > Voice: 303 438 9585 > > > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wild Card Hosting
I think that would still be up to your dns settings. You could have something like * IN CNAME mydomain.com correct me if I'm wrong ;-) Drew. On Thu, 2005-03-24 at 17:46, George Sexton wrote: > Oh, I see where you are headed. > > One way to go would be to have a new service, with a new IP address, and > make that the default host. > > That's out of the question since I host for so many people. > > George Sexton > MH Software, Inc. > http://www.mhsoftware.com/ > Voice: 303 438 9585 > > > > -Original Message- > > From: Drew Jorgenson [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 24, 2005 4:14 PM > > To: Tomcat Users List > > Subject: Re: Wild Card Hosting > > > > Are you able to assign a static IP address to your virtual > > host, meaning > > do you have a static IP available? > > > > Drew. > > > > > > On Wed, 2005-03-23 at 10:42, George Sexton wrote: > > > Does anyone know if Tomcat supports Wild card hosting? Can > > I specify a > > > pattern say > > > > > > *.domain.com > > > > > > And have all requests get forwarded to a specific host? > > > > > > Making the host the default host is not an option, because > > there is already > > > another default host that is used. > > > > > > > > > > > > George Sexton > > > MH Software, Inc. > > > http://www.mhsoftware.com/ > > > Voice: 303 438 9585 > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wild Card Hosting
OK, so you will eventually want to have wild card domains for more than one domain, correct? Drew On Thu, 2005-03-24 at 17:46, George Sexton wrote: > Oh, I see where you are headed. > > One way to go would be to have a new service, with a new IP address, and > make that the default host. > > That's out of the question since I host for so many people. > > George Sexton > MH Software, Inc. > http://www.mhsoftware.com/ > Voice: 303 438 9585 > > > > -Original Message- > > From: Drew Jorgenson [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 24, 2005 4:14 PM > > To: Tomcat Users List > > Subject: Re: Wild Card Hosting > > > > Are you able to assign a static IP address to your virtual > > host, meaning > > do you have a static IP available? > > > > Drew. > > > > > > On Wed, 2005-03-23 at 10:42, George Sexton wrote: > > > Does anyone know if Tomcat supports Wild card hosting? Can > > I specify a > > > pattern say > > > > > > *.domain.com > > > > > > And have all requests get forwarded to a specific host? > > > > > > Making the host the default host is not an option, because > > there is already > > > another default host that is used. > > > > > > > > > > > > George Sexton > > > MH Software, Inc. > > > http://www.mhsoftware.com/ > > > Voice: 303 438 9585 > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wild Card Hosting
Oh, I see where you are headed. One way to go would be to have a new service, with a new IP address, and make that the default host. That's out of the question since I host for so many people. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Drew Jorgenson [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 24, 2005 4:14 PM > To: Tomcat Users List > Subject: Re: Wild Card Hosting > > Are you able to assign a static IP address to your virtual > host, meaning > do you have a static IP available? > > Drew. > > > On Wed, 2005-03-23 at 10:42, George Sexton wrote: > > Does anyone know if Tomcat supports Wild card hosting? Can > I specify a > > pattern say > > > > *.domain.com > > > > And have all requests get forwarded to a specific host? > > > > Making the host the default host is not an option, because > there is already > > another default host that is used. > > > > > > > > George Sexton > > MH Software, Inc. > > http://www.mhsoftware.com/ > > Voice: 303 438 9585 > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wild Card Hosting
Well, yes the machine has a fixed IP address. I don't care about the DNS resolution aspect. I want tomcat to wildcard forward to the right virtual host based on the name. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Drew Jorgenson [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 24, 2005 4:14 PM > To: Tomcat Users List > Subject: Re: Wild Card Hosting > > Are you able to assign a static IP address to your virtual > host, meaning > do you have a static IP available? > > Drew. > > > On Wed, 2005-03-23 at 10:42, George Sexton wrote: > > Does anyone know if Tomcat supports Wild card hosting? Can > I specify a > > pattern say > > > > *.domain.com > > > > And have all requests get forwarded to a specific host? > > > > Making the host the default host is not an option, because > there is already > > another default host that is used. > > > > > > > > George Sexton > > MH Software, Inc. > > http://www.mhsoftware.com/ > > Voice: 303 438 9585 > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wild Card Hosting
Are you able to assign a static IP address to your virtual host, meaning do you have a static IP available? Drew. On Wed, 2005-03-23 at 10:42, George Sexton wrote: > Does anyone know if Tomcat supports Wild card hosting? Can I specify a > pattern say > > *.domain.com > > And have all requests get forwarded to a specific host? > > Making the host the default host is not an option, because there is already > another default host that is used. > > > > George Sexton > MH Software, Inc. > http://www.mhsoftware.com/ > Voice: 303 438 9585 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wild Card Hosting
Right now I'm running tomcat with 40 some virtual hosts without using Apache. Throwing in the additional configuration/complication issue of dealing with Apache isn't my preferred route. It would be a lot simpler to add regex support to the aliases function of tomcat. If worst comes to worse, I'll just make an alias for the various hosts. It's probably going to top at at around 6-10 anyway. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Robert r. Sanders [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 24, 2005 9:26 AM > To: Tomcat Users List > Subject: Re: Wild Card Hosting > > You might also be able to do something similar by using > Apache httpd as > frontend and combining mod_jk with either mod_vhost or mod_rewrite. > > Rob Hunt wrote: > > >There are some domain-name-registrars/DNS-providers that > allow you to set up a wildcard "host" where their domain name > servers will dynamically redirect HTTP requests. For example: > > > >http://*.domain.tld/ > > > >could be redirected to something like > > > >http://mywildcardhost.domain.tld/%SERVER_NAME%/ > > > > > >where "%SERVER_NAME%" would take on the whatever "host" was > originally used in the HTTP request. It's then a simple task > of using a wildcard servlet mapping ("/*" in > this example) to direct the request accordingly. > > > >This obviates the need to customize Tomcat code. However, > you'll probably need a nominal monetary outlay to use the > services of said DDNS provider. > > > > > > > >Read more: http://www.changeip.com/ > > > > > > -- > Robert r. Sanders > Chief Technologist > iPOV > (334) 821-5412 > www.ipov.net > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wild Card Hosting
That doesn't do what I need. I have a very large, existing application that needs to pick up a parameter based on which host name is used. Changing the path structure will be hopelessly complicated. The issue of getting the DNS wild-carding to work is the client's issue. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Rob Hunt [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 24, 2005 9:02 AM > To: tomcat-user@jakarta.apache.org > Subject: Re: Wild Card Hosting > > There are some domain-name-registrars/DNS-providers that > allow you to set up a wildcard "host" where their domain name > servers will dynamically redirect HTTP requests. For example: > > http://*.domain.tld/ > > could be redirected to something like > > http://mywildcardhost.domain.tld/%SERVER_NAME%/ > > > where "%SERVER_NAME%" would take on the whatever "host" was > originally used in the HTTP request. It's then a simple task > of using a wildcard servlet mapping ("/*" in > this example) to direct the request accordingly. > > This obviates the need to customize Tomcat code. However, > you'll probably need a nominal monetary outlay to use the > services of said DDNS provider. > > > > Read more: http://www.changeip.com/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wild Card Hosting
You might also be able to do something similar by using Apache httpd as frontend and combining mod_jk with either mod_vhost or mod_rewrite. Rob Hunt wrote: There are some domain-name-registrars/DNS-providers that allow you to set up a wildcard "host" where their domain name servers will dynamically redirect HTTP requests. For example: http://*.domain.tld/ could be redirected to something like http://mywildcardhost.domain.tld/%SERVER_NAME%/ where "%SERVER_NAME%" would take on the whatever "host" was originally used in the HTTP request. It's then a simple task of using a wildcard servlet mapping ("/*" in this example) to direct the request accordingly. This obviates the need to customize Tomcat code. However, you'll probably need a nominal monetary outlay to use the services of said DDNS provider. Read more: http://www.changeip.com/ -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wild Card Hosting
There are some domain-name-registrars/DNS-providers that allow you to set up a wildcard "host" where their domain name servers will dynamically redirect HTTP requests. For example: http://*.domain.tld/ could be redirected to something like http://mywildcardhost.domain.tld/%SERVER_NAME%/ where "%SERVER_NAME%" would take on the whatever "host" was originally used in the HTTP request. It's then a simple task of using a wildcard servlet mapping ("/*" in this example) to direct the request accordingly. This obviates the need to customize Tomcat code. However, you'll probably need a nominal monetary outlay to use the services of said DDNS provider. Read more: http://www.changeip.com/
RE: Wild Card Hosting
I'll try looking through the alias handling code and see how hard it would be to come up with something to cover it. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: QM [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 23, 2005 5:09 PM > To: Tomcat Users List > Subject: Re: Wild Card Hosting > > On Wed, Mar 23, 2005 at 11:42:09AM -0700, George Sexton wrote: > : Does anyone know if Tomcat supports Wild card hosting? Can > I specify a > : pattern say > : > : *.domain.com > : > : And have all requests get forwarded to a specific host? > > Not possible with a stock Tomcat install. > Perhaps possible with some source tweakage, but then you have > the fun of > running a custom install. > > -QM > > -- > > software -- http://www.brandxdev.net/ > tech news -- http://www.RoarNetworX.com/ > code scan -- http://www.JxRef.org/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wild Card Hosting
On Wed, Mar 23, 2005 at 11:42:09AM -0700, George Sexton wrote: : Does anyone know if Tomcat supports Wild card hosting? Can I specify a : pattern say : : *.domain.com : : And have all requests get forwarded to a specific host? Not possible with a stock Tomcat install. Perhaps possible with some source tweakage, but then you have the fun of running a custom install. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]