Re: Virtual Host Context Aliasing
tomcat 4, I think :) I have just tested it with version 3.2.2, and that gives the error: bash# cat tomcat.log | grep Alias At The element type "Alias" must be terminated by the matching end-tag "". org.xml.sax.SAXParseException: The element type "Alias" must be terminated by the matching end-tag "". At The element type "Alias" must be terminated by the matching end-tag "". org.xml.sax.SAXParseException: The element type "Alias" must be terminated by the matching end-tag "". I have not been able to find any doco related to this though :( Thanks, --Marcus AOn Thu, 31 May 2001, Jeff Kilbride wrote: > Date: Thu, 31 May 2001 18:17:20 -0700 > From: Jeff Kilbride <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: Virtual Host Context Aliasing > > What version of Tomcat is supposed to have this tag? > > Thanks, > --jeff > > - Original Message - > From: "Christian Parpart" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, May 31, 2001 5:56 PM > Subject: Re: Virtual Host Context Aliasing > > > > On Friday 01 June 2001 02:40, you wrote: > > > I have been told from a collegue of mine that an alias tag can be used. > > > I have not tested this though, let me know if this works :) > > > > > > > > > > > >... > > > > > >... > > > > > > > > > > I've tested it without any success. Unfortunately. > > But exactly that's it what has been said in the tomcat-server-howto. > > Is it a bug? It must be > > > > Thanks, > > Christian Parpart > > http://www.surakware.net > > > > > > > > --Marcus > > > > > > On Thu, 31 May 2001, Jeff Kilbride wrote: > > > > Date: Thu, 31 May 2001 11:12:38 -0700 > > > > From: Jeff Kilbride <[EMAIL PROTECTED]> > > > > Reply-To: [EMAIL PROTECTED] > > > > To: [EMAIL PROTECTED] > > > > Subject: Re: Virtual Host Context Aliasing > > > > > > > > Hi Daniel, > > > > > > > > I have the same problem -- wanting to alias more than one host name to > a > > > > single context. Unfortunately, there is no way to do this. I've heard > > > > that the 4.0 version of Tomcat may have some abilities for doing this, > > > > but it's not nearly as straightforward as Apache's ServerAlias > directive. > > > > > > > > For now, I've turned off zzz.net (using your example) in my DNS and am > > > > only serving www.zzz.net. I do a lot of connection pooling and other > > > > shared resources, so I can't afford to have 2 versions of all my > contexts > > > > running at the same time. This is a totally unsatisfactory solution, > but > > > > it's my only choice for the moment. > > > > > > > > Thanks, > > > > --jeff > > > > > > > > - Original Message - > > > > From: "Daniel Zen" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Tuesday, May 29, 2001 8:55 AM > > > > Subject: Virtual Host Context Aliasing > > > > > > > > > I would think this would be a common question, but I couldn't find > it > > > > > documented, nor asked on this list. > > > > > > > > > > Very often domains are served from 2 urls (www.zzz.net & zzz.net) > with > > > > > the same functionality. When I configure my virtual hosts in > Apache's > > > > > > > > httpd.conf > > > > > > > > > this is easy: > > > > > > > > > > > > > > > ServerName www.zzz.net > > > > > ServerAlias zzz.net > > > > > DocumentRoot /home/httpd/html/zzz > > > > > > > > > > Options None > > > > > Deny from all > > > > > > > > > > JkMount /*.jsp ajp13 > > > > > JkMount /servlet/* ajp13 > > > > > > > > > > > > > > > The following properly placed in server.xml creates 2 seperate > contexts > > > > > > > > for > > > > > > > > > the same set of servlets and JSPs. Functional, but a little > wasteful. > > > > > > > > > > > > > > > > > > > crossContext="true" debug="0" reloadable="true" > trusted="false" > > > > > /> > > > > > > > > > > > > > > > > > > > crossContext="true" debug="0" reloadable="true" > trusted="false" > > > > > /> > > > > > > > > > > Now, I how do I do an alias Context in Tomcat's server.xml so that > > > > > there > > > > > > > > is > > > > > > > > > only one Host/Context with multiple names?? > > > > > > > > > > Thank you in advance. > > > > > > > > > > Daniel Zen > > > -- Marcus Dillury UNIX Systems Administrator core competency: /dev/null http://online.socialchange.net.au ph: +61 2 9692 5136 fax: +61 2 9692 5192mob: 0403 349 339
Re: Virtual Host Context Aliasing
What version of Tomcat is supposed to have this tag? Thanks, --jeff - Original Message - From: "Christian Parpart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 31, 2001 5:56 PM Subject: Re: Virtual Host Context Aliasing > On Friday 01 June 2001 02:40, you wrote: > > I have been told from a collegue of mine that an alias tag can be used. > > I have not tested this though, let me know if this works :) > > > > > > > >... > > > >... > > > > > > I've tested it without any success. Unfortunately. > But exactly that's it what has been said in the tomcat-server-howto. > Is it a bug? It must be > > Thanks, > Christian Parpart > http://www.surakware.net > > > > > --Marcus > > > > On Thu, 31 May 2001, Jeff Kilbride wrote: > > > Date: Thu, 31 May 2001 11:12:38 -0700 > > > From: Jeff Kilbride <[EMAIL PROTECTED]> > > > Reply-To: [EMAIL PROTECTED] > > > To: [EMAIL PROTECTED] > > > Subject: Re: Virtual Host Context Aliasing > > > > > > Hi Daniel, > > > > > > I have the same problem -- wanting to alias more than one host name to a > > > single context. Unfortunately, there is no way to do this. I've heard > > > that the 4.0 version of Tomcat may have some abilities for doing this, > > > but it's not nearly as straightforward as Apache's ServerAlias directive. > > > > > > For now, I've turned off zzz.net (using your example) in my DNS and am > > > only serving www.zzz.net. I do a lot of connection pooling and other > > > shared resources, so I can't afford to have 2 versions of all my contexts > > > running at the same time. This is a totally unsatisfactory solution, but > > > it's my only choice for the moment. > > > > > > Thanks, > > > --jeff > > > > > > - Original Message - > > > From: "Daniel Zen" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, May 29, 2001 8:55 AM > > > Subject: Virtual Host Context Aliasing > > > > > > > I would think this would be a common question, but I couldn't find it > > > > documented, nor asked on this list. > > > > > > > > Very often domains are served from 2 urls (www.zzz.net & zzz.net) with > > > > the same functionality. When I configure my virtual hosts in Apache's > > > > > > httpd.conf > > > > > > > this is easy: > > > > > > > > > > > > ServerName www.zzz.net > > > > ServerAlias zzz.net > > > > DocumentRoot /home/httpd/html/zzz > > > > > > > > Options None > > > > Deny from all > > > > > > > > JkMount /*.jsp ajp13 > > > > JkMount /servlet/* ajp13 > > > > > > > > > > > > The following properly placed in server.xml creates 2 seperate contexts > > > > > > for > > > > > > > the same set of servlets and JSPs. Functional, but a little wasteful. > > > > > > > > > > > > > > > crossContext="true" debug="0" reloadable="true" trusted="false" > > > > /> > > > > > > > > > > > > > > > crossContext="true" debug="0" reloadable="true" trusted="false" > > > > /> > > > > > > > > Now, I how do I do an alias Context in Tomcat's server.xml so that > > > > there > > > > > > is > > > > > > > only one Host/Context with multiple names?? > > > > > > > > Thank you in advance. > > > > > > > > Daniel Zen >
Re: Virtual Host Context Aliasing
On Friday 01 June 2001 02:40, you wrote: > I have been told from a collegue of mine that an alias tag can be used. > I have not tested this though, let me know if this works :) > > > >... > >... > > I've tested it without any success. Unfortunately. But exactly that's it what has been said in the tomcat-server-howto. Is it a bug? It must be Thanks, Christian Parpart http://www.surakware.net > > --Marcus > > On Thu, 31 May 2001, Jeff Kilbride wrote: > > Date: Thu, 31 May 2001 11:12:38 -0700 > > From: Jeff Kilbride <[EMAIL PROTECTED]> > > Reply-To: [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > > Subject: Re: Virtual Host Context Aliasing > > > > Hi Daniel, > > > > I have the same problem -- wanting to alias more than one host name to a > > single context. Unfortunately, there is no way to do this. I've heard > > that the 4.0 version of Tomcat may have some abilities for doing this, > > but it's not nearly as straightforward as Apache's ServerAlias directive. > > > > For now, I've turned off zzz.net (using your example) in my DNS and am > > only serving www.zzz.net. I do a lot of connection pooling and other > > shared resources, so I can't afford to have 2 versions of all my contexts > > running at the same time. This is a totally unsatisfactory solution, but > > it's my only choice for the moment. > > > > Thanks, > > --jeff > > > > - Original Message - > > From: "Daniel Zen" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, May 29, 2001 8:55 AM > > Subject: Virtual Host Context Aliasing > > > > > I would think this would be a common question, but I couldn't find it > > > documented, nor asked on this list. > > > > > > Very often domains are served from 2 urls (www.zzz.net & zzz.net) with > > > the same functionality. When I configure my virtual hosts in Apache's > > > > httpd.conf > > > > > this is easy: > > > > > > > > > ServerName www.zzz.net > > > ServerAlias zzz.net > > > DocumentRoot /home/httpd/html/zzz > > > > > > Options None > > > Deny from all > > > > > > JkMount /*.jsp ajp13 > > > JkMount /servlet/* ajp13 > > > > > > > > > The following properly placed in server.xml creates 2 seperate contexts > > > > for > > > > > the same set of servlets and JSPs. Functional, but a little wasteful. > > > > > > > > > > > crossContext="true" debug="0" reloadable="true" trusted="false" > > > /> > > > > > > > > > > > crossContext="true" debug="0" reloadable="true" trusted="false" > > > /> > > > > > > Now, I how do I do an alias Context in Tomcat's server.xml so that > > > there > > > > is > > > > > only one Host/Context with multiple names?? > > > > > > Thank you in advance. > > > > > > Daniel Zen
Re: Virtual Host Context Aliasing
I have been told from a collegue of mine that an alias tag can be used. I have not tested this though, let me know if this works :) ... ... --Marcus On Thu, 31 May 2001, Jeff Kilbride wrote: > Date: Thu, 31 May 2001 11:12:38 -0700 > From: Jeff Kilbride <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: Virtual Host Context Aliasing > > Hi Daniel, > > I have the same problem -- wanting to alias more than one host name to a > single context. Unfortunately, there is no way to do this. I've heard that > the 4.0 version of Tomcat may have some abilities for doing this, but it's > not nearly as straightforward as Apache's ServerAlias directive. > > For now, I've turned off zzz.net (using your example) in my DNS and am only > serving www.zzz.net. I do a lot of connection pooling and other shared > resources, so I can't afford to have 2 versions of all my contexts running > at the same time. This is a totally unsatisfactory solution, but it's my > only choice for the moment. > > Thanks, > --jeff > > - Original Message - > From: "Daniel Zen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, May 29, 2001 8:55 AM > Subject: Virtual Host Context Aliasing > > > > I would think this would be a common question, but I couldn't find it > > documented, nor asked on this list. > > > > Very often domains are served from 2 urls (www.zzz.net & zzz.net) with the > > same functionality. When I configure my virtual hosts in Apache's > httpd.conf > > this is easy: > > > > > > ServerName www.zzz.net > > ServerAlias zzz.net > > DocumentRoot /home/httpd/html/zzz > > > > Options None > > Deny from all > > > > JkMount /*.jsp ajp13 > > JkMount /servlet/* ajp13 > > > > > > The following properly placed in server.xml creates 2 seperate contexts > for > > the same set of servlets and JSPs. Functional, but a little wasteful. > > > > > > > crossContext="true" debug="0" reloadable="true" trusted="false" /> > > > > > > > > > crossContext="true" debug="0" reloadable="true" trusted="false" /> > > > > > > Now, I how do I do an alias Context in Tomcat's server.xml so that there > is > > only one Host/Context with multiple names?? > > > > Thank you in advance. > > > > Daniel Zen > > > -- Marcus Dillury UNIX Systems Administrator core competency: /dev/null http://online.socialchange.net.au ph: +61 2 9692 5136 fax: +61 2 9692 5192mob: 0403 349 339
Re: Virtual Host Context Aliasing
Hi Daniel, I have the same problem -- wanting to alias more than one host name to a single context. Unfortunately, there is no way to do this. I've heard that the 4.0 version of Tomcat may have some abilities for doing this, but it's not nearly as straightforward as Apache's ServerAlias directive. For now, I've turned off zzz.net (using your example) in my DNS and am only serving www.zzz.net. I do a lot of connection pooling and other shared resources, so I can't afford to have 2 versions of all my contexts running at the same time. This is a totally unsatisfactory solution, but it's my only choice for the moment. Thanks, --jeff - Original Message - From: "Daniel Zen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 29, 2001 8:55 AM Subject: Virtual Host Context Aliasing > I would think this would be a common question, but I couldn't find it > documented, nor asked on this list. > > Very often domains are served from 2 urls (www.zzz.net & zzz.net) with the > same functionality. When I configure my virtual hosts in Apache's httpd.conf > this is easy: > > > ServerName www.zzz.net > ServerAlias zzz.net > DocumentRoot /home/httpd/html/zzz > > Options None > Deny from all > > JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13 > > > The following properly placed in server.xml creates 2 seperate contexts for > the same set of servlets and JSPs. Functional, but a little wasteful. > > > crossContext="true" debug="0" reloadable="true" trusted="false" /> > > > > crossContext="true" debug="0" reloadable="true" trusted="false" /> > > > Now, I how do I do an alias Context in Tomcat's server.xml so that there is > only one Host/Context with multiple names?? > > Thank you in advance. > > Daniel Zen >
RE: Virtual Host Context Aliasing
shot in the dark, but have you tried this... the actual domains shouldnt need doing in tomcat if Apache is forwarding them, its already happened. ServletName /servlets/ServletName /servlets/AnotherServletName -Original Message- From: Daniel Zen [mailto:[EMAIL PROTECTED]] Sent: 29 May 2001 16:56 To: [EMAIL PROTECTED] Subject: Virtual Host Context Aliasing I would think this would be a common question, but I couldn't find it documented, nor asked on this list. Very often domains are served from 2 urls (www.zzz.net & zzz.net) with the same functionality. When I configure my virtual hosts in Apache's httpd.conf this is easy: ServerName www.zzz.net ServerAlias zzz.net DocumentRoot /home/httpd/html/zzz Options None Deny from all JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 The following properly placed in server.xml creates 2 seperate contexts for the same set of servlets and JSPs. Functional, but a little wasteful. Now, I how do I do an alias Context in Tomcat's server.xml so that there is only one Host/Context with multiple names?? Thank you in advance. Daniel Zen ___ This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Sema. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the Sema UK Helpdesk by telephone on +44 (0) 121 627 5600. ___
Virtual Host Context Aliasing
I would think this would be a common question, but I couldn't find it documented, nor asked on this list. Very often domains are served from 2 urls (www.zzz.net & zzz.net) with the same functionality. When I configure my virtual hosts in Apache's httpd.conf this is easy: ServerName www.zzz.net ServerAlias zzz.net DocumentRoot /home/httpd/html/zzz Options None Deny from all JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 The following properly placed in server.xml creates 2 seperate contexts for the same set of servlets and JSPs. Functional, but a little wasteful. Now, I how do I do an alias Context in Tomcat's server.xml so that there is only one Host/Context with multiple names?? Thank you in advance. Daniel Zen