Re: Alias URL
Johnson, Rob E wrote: Andre thanks for all your help that worked. I can use the alias, and I can still hit the other webapps. Also thanks to Martin Gainty and his help. No thanks required, we live to help. Martin and I, the winning team... :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Alias URL
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Alias URL (stop Tomcat first) Step 1 : you will need 2 sections in Tomcat's configuration file "server.xml". Currently, there is only one. Actually, the one will suffice, if the OP is willing to eliminate Tomcat's existing ROOT webapp (no big loss). Eh no. Prodded, he said he wanted this : .. > What you would like is that : > - when a user enters the URL "http://imsden.mms"; (or "http://imsden.mms:8080";), he continues to get the standard Tomcat homepage > - when a user enters the URL "http://webtop"; (or "http://webtop:8080";), he gets immediately the first page of the "webtop" application > Is that correct ? This is correct - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Alias URL
David Kerber wrote: Pid Ster wrote: YDHTVO ??? Haven't seen that one before. D Neither have I. You Don't Have To ... ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: Alias URL
[Very off-topic] 2009/10/5 Caldarale, Charles R : >> From: André Warnier [mailto:a...@ice-sa.com] >> I was going to say "Evil Geniuses" (O'Reilly). >> But I don't know who was first. > > The book is just a collection of the User Friendly strips; excellent > reference manual. It's a good stage prop, too. One of my friends was going for a pre-sales job, and part of the interview was a 10-minute presentation. On anything. He chose "How to be an Evil Genius" and took my copy of "Evil Geniuses in a Nutshell" with him to hand out as the textbook on the subject. He managed to keep a straight face throughout the presentation, unlike the audience. He got the job, by the way. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Alias URL
Pid Ster wrote: On 5 Oct 2009, at 23:47, "Johnson, Rob E" wrote: Andre thanks for all your help that worked. I can use the alias, and I can still hit the other webapps. Also thanks to Martin Gainty and his help. YDHTVO ??? Haven't seen that one before. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Alias URL
André Warnier wrote: Caldarale, Charles R wrote: From: Johnson, Rob E [mailto:rob.john...@mms.gov] ... Usually also, MS products are designed to be configured primarily through a graphical interface, while many open-source products are mainly configured by means of text files (for Tomcat, in XML format), and a graphical interface is often an afterthought. (And in the Open Source world, particularly with older guys like Chuck and me, graphical configuration interfaces are considered like things for kiddies; the real pros use text files, and a vi editor). UltraEdit! ... D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Alias URL
On 5 Oct 2009, at 23:47, "Johnson, Rob E" wrote: > Andre thanks for all your help that worked. I can use the alias, > and I can still hit the other webapps. > > Also thanks to Martin Gainty and his help. YDHTVO p > -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: Monday, October 05, 2009 3:54 PM > To: Tomcat Users List > Subject: Re: Alias URL > > Johnson, Rob E wrote: >> Hi, >> >>> What you would like is that : >>> - when a user enters the URL "http://imsden.mms"; (or >>> "http://imsden.mms:8080";), he continues to get the standard Tomcat >>> homepage >>> - when a user enters the URL "http://webtop"; (or >>> "http://webtop:8080";), he gets immediately the first page of the >>> "webtop" application >> >>> Is that correct ? >> >> This is correct >> >> Sorry to be slow to respond I have to jump into a few meetings today. >> > And sorry if I leave in the middle somewhere, despite my didactic > instincts. I have to take a plane at 5:00. > So let's see if I can write this quickly and not forget anything. > (If so, peruse the responses you already got, from me and others, > because the data is already there). > > Anyway then, > > (stop Tomcat first) > > Step 1 : you will need 2 sections in Tomcat's > configuration file "server.xml". Currently, there is only one. > > The first and only one you already have, is for the hostname > "localhost", which is also the "default Host". Meaning in short > that Tomcat will use the settings in that first Host section, for > any request > - either specifically addressed to "localhost" (of which there > should be few, since they would have to originate on the same system) > - or for any request that comes in with a "Host: xx" header, > which "x" Tomcat cannot readily associate with a name="xx" ..> tag > > So look for the server.xml file, edit it, duplicate the entire name="localhost" ..> section that you find there, and > change the "name=" attribute value to be "webtop" instead of > "localhost". > > That's basically all it takes to create a new "virtual host" (or > "site" > in MS parlance) into Tomcat. > > Also : > - you currently have a ../webapps/ directory under Tomcat. At the > same level, create a directory .../webapps2/ . > Then move your complete "webtop/*" webapp under that new directory > (instead of under /webapps/). > - then, in the new tag that you created > previously, change the appBase attribute as follows : > old : appBase="webapps" > new : appBase="webapps2" > > > Then restart Tomcat. > Now the Host named "localhost" should no longer find an application > called "webtop". In other words, a browser accessing via > "http://imsden.mms/webtop > " should get an error. > (Because the hostname "imsden.mms" not being found in a Host tag, > Tomcat will default to the first Host, and its /webapps dir does not > have the webtop application in it any longer). > > But the host named "webtop" should find this application. > In other words, a browser accessing via "http://webtop/webtop"; > should now get the application. > > That's getting closer, but.. > > Step 2 : consists of making this "webtop" application into the > default application of the host "webtop". > For this, there is a wiki, but in your case it's easier : > Stop Tomcat. Rename /webapps2/webtop/ to /webapps2/ROOT/, and > restart Tomcat. > Then try accessing http://webtop/ > > Tada ! > > Or not, but then you need to find another helping hand, cause I'm > going to catch some sleep. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
Andre thanks for all your help that worked. I can use the alias, and I can still hit the other webapps. Also thanks to Martin Gainty and his help. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, October 05, 2009 3:54 PM To: Tomcat Users List Subject: Re: Alias URL Johnson, Rob E wrote: > Hi, > >> What you would like is that : >> - when a user enters the URL "http://imsden.mms"; (or >> "http://imsden.mms:8080";), he continues to get the standard Tomcat >> homepage >> - when a user enters the URL "http://webtop"; (or >> "http://webtop:8080";), he gets immediately the first page of the >> "webtop" application > >> Is that correct ? > > This is correct > > Sorry to be slow to respond I have to jump into a few meetings today. > And sorry if I leave in the middle somewhere, despite my didactic instincts. I have to take a plane at 5:00. So let's see if I can write this quickly and not forget anything. (If so, peruse the responses you already got, from me and others, because the data is already there). Anyway then, (stop Tomcat first) Step 1 : you will need 2 sections in Tomcat's configuration file "server.xml". Currently, there is only one. The first and only one you already have, is for the hostname "localhost", which is also the "default Host". Meaning in short that Tomcat will use the settings in that first Host section, for any request - either specifically addressed to "localhost" (of which there should be few, since they would have to originate on the same system) - or for any request that comes in with a "Host: xx" header, which "x" Tomcat cannot readily associate with a tag So look for the server.xml file, edit it, duplicate the entire section that you find there, and change the "name=" attribute value to be "webtop" instead of "localhost". That's basically all it takes to create a new "virtual host" (or "site" in MS parlance) into Tomcat. Also : - you currently have a ../webapps/ directory under Tomcat. At the same level, create a directory .../webapps2/ . Then move your complete "webtop/*" webapp under that new directory (instead of under /webapps/). - then, in the new tag that you created previously, change the appBase attribute as follows : old : appBase="webapps" new : appBase="webapps2" Then restart Tomcat. Now the Host named "localhost" should no longer find an application called "webtop". In other words, a browser accessing via "http://imsden.mms/webtop"; should get an error. (Because the hostname "imsden.mms" not being found in a Host tag, Tomcat will default to the first Host, and its /webapps dir does not have the webtop application in it any longer). But the host named "webtop" should find this application. In other words, a browser accessing via "http://webtop/webtop"; should now get the application. That's getting closer, but.. Step 2 : consists of making this "webtop" application into the default application of the host "webtop". For this, there is a wiki, but in your case it's easier : Stop Tomcat. Rename /webapps2/webtop/ to /webapps2/ROOT/, and restart Tomcat. Then try accessing http://webtop/ Tada ! Or not, but then you need to find another helping hand, cause I'm going to catch some sleep. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: [OT] Re: Alias URL
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: [OT] Re: Alias URL > > I was going to say "Evil Geniuses" (O'Reilly). > But I don't know who was first. The book is just a collection of the User Friendly strips; excellent reference manual. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Alias URL > > (stop Tomcat first) > > Step 1 : you will need 2 sections in Tomcat's configuration > file "server.xml". Currently, there is only one. Actually, the one will suffice, if the OP is willing to eliminate Tomcat's existing ROOT webapp (no big loss). > That's basically all it takes to create a new "virtual host" (or "site" > in MS parlance) into Tomcat. However, a second is not needed - unless one has multiple domain names and wants a different default webapp for each. > - you currently have a ../webapps/ directory under Tomcat. At the same > level, create a directory .../webapps2/ . Again, not needed if it's o.k. to eliminate the original ROOT webapp and there's only one default webapp. > Stop Tomcat. Rename /webapps2/webtop/ to /webapps2/ROOT/, > and restart Tomcat. This is the critical step: the easiest way to specify a default webapp is to name it ROOT. Again, if only one element is needed, the above line would use "webapps" (or whatever the appBase specifies), not "webapps2". - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: Alias URL
Caldarale, Charles R wrote: From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: [OT] Re: Alias URL "Well I edited the inodes by hand. With a magnet." (Bonus points if you know the origin of the quote) This may not be the origin, but I think it's one of the first times it was written down: http://ars.userfriendly.org/cartoons/?id=19990508&mode=classic I was going to say "Evil Geniuses" (O'Reilly). But I don't know who was first. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: [OT] Re: Alias URL
> From: peter.crowth...@googlemail.com > [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther > Subject: Re: [OT] Re: Alias URL > > "Well I edited the inodes by hand. With a magnet." > (Bonus points if you know the origin of the quote) This may not be the origin, but I think it's one of the first times it was written down: http://ars.userfriendly.org/cartoons/?id=19990508&mode=classic > - Peter, one of the Four Yorkshiremen "My brain 'urts!" Still working at the mill? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Alias URL
Johnson, Rob E wrote: Hi, What you would like is that : - when a user enters the URL "http://imsden.mms"; (or "http://imsden.mms:8080";), he continues to get the standard Tomcat homepage - when a user enters the URL "http://webtop"; (or "http://webtop:8080";), he gets immediately the first page of the "webtop" application Is that correct ? This is correct Sorry to be slow to respond I have to jump into a few meetings today. And sorry if I leave in the middle somewhere, despite my didactic instincts. I have to take a plane at 5:00. So let's see if I can write this quickly and not forget anything. (If so, peruse the responses you already got, from me and others, because the data is already there). Anyway then, (stop Tomcat first) Step 1 : you will need 2 sections in Tomcat's configuration file "server.xml". Currently, there is only one. The first and only one you already have, is for the hostname "localhost", which is also the "default Host". Meaning in short that Tomcat will use the settings in that first Host section, for any request - either specifically addressed to "localhost" (of which there should be few, since they would have to originate on the same system) - or for any request that comes in with a "Host: xx" header, which "x" Tomcat cannot readily associate with a tag So look for the server.xml file, edit it, duplicate the entire section that you find there, and change the "name=" attribute value to be "webtop" instead of "localhost". That's basically all it takes to create a new "virtual host" (or "site" in MS parlance) into Tomcat. Also : - you currently have a ../webapps/ directory under Tomcat. At the same level, create a directory .../webapps2/ . Then move your complete "webtop/*" webapp under that new directory (instead of under /webapps/). - then, in the new tag that you created previously, change the appBase attribute as follows : old : appBase="webapps" new : appBase="webapps2" Then restart Tomcat. Now the Host named "localhost" should no longer find an application called "webtop". In other words, a browser accessing via "http://imsden.mms/webtop"; should get an error. (Because the hostname "imsden.mms" not being found in a Host tag, Tomcat will default to the first Host, and its /webapps dir does not have the webtop application in it any longer). But the host named "webtop" should find this application. In other words, a browser accessing via "http://webtop/webtop"; should now get the application. That's getting closer, but.. Step 2 : consists of making this "webtop" application into the default application of the host "webtop". For this, there is a wiki, but in your case it's easier : Stop Tomcat. Rename /webapps2/webtop/ to /webapps2/ROOT/, and restart Tomcat. Then try accessing http://webtop/ Tada ! Or not, but then you need to find another helping hand, cause I'm going to catch some sleep. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: Alias URL
2009/10/5 Pid Ster : > "... the real pros use text files, and a vi editor)." > > The last time someone said that, the Argument ended with a > "discussion" about electron microscopes... "Well I edited the inodes by hand. With a magnet." (Bonus points if you know the origin of the quote) - Peter, one of the Four Yorkshiremen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[OT] Re: Alias URL
"... the real pros use text files, and a vi editor)." The last time someone said that, the Argument ended with a "discussion" about electron microscopes... p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
Hi, >What you would like is that : >- when a user enters the URL "http://imsden.mms"; (or >"http://imsden.mms:8080";), he continues to get the standard Tomcat homepage >- when a user enters the URL "http://webtop"; (or "http://webtop:8080";), he >gets immediately the first page of the "webtop" application >Is that correct ? This is correct Sorry to be slow to respond I have to jump into a few meetings today. Thanks, Rob -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, October 05, 2009 12:55 PM To: Tomcat Users List Subject: Re: Alias URL Caldarale, Charles R wrote: >> From: Johnson, Rob E [mailto:rob.john...@mms.gov] ... Hi guys, can I jump in here ? I believe that you are being a bit tough on Rob here. Obviously, he is not a Tomcat expert, and more used to IIS and the MS way of things, than to Apache httpd and Tomcat. And in IIS, these things are administered through a graphical interface which talks of "sites" and so, so I think he is getting a bit confused. I don't know if I can redeem all of that in 5 minutes, but I'm willing to try. Rob, you are being blasted here because this is a forum for Apache Tomcat, which is an Open Source product, and as such it, and the people here, are striving to follow the official Internet RFCs and the vocabulary used in those documents. Microsoft on the other hand propose their own proprietary products, with their own interfaces and vocabulary. That is their fundamental right, but it can lead to some confusion when one is trying to marry the two worlds. For example, what MS and IIS call a "site", is usually in Apache httpd and Tomcat designated by "virtual Host". In a purely MS-world, using the MS proprietary vocabulary is fine, because within the confines of that world that vocabulary is readily understood. In the world of the Internet and Open Source software, where products come from many sources and have to interact with one another, using the official Internet RFC vocabulary is necessary, because it is the only way by which these products and the people using them can understand eachother and communicate (as you just discovered). Usually also, MS products are designed to be configured primarily through a graphical interface, while many open-source products are mainly configured by means of text files (for Tomcat, in XML format), and a graphical interface is often an afterthought. (And in the Open Source world, particularly with older guys like Chuck and me, graphical configuration interfaces are considered like things for kiddies; the real pros use text files, and a vi editor). Tomcat is primarily a java servlet server (special web applications written in java). But it can act as a generic webserver, and serve normal static pages too. The standard port on which a webserver listens for requests from browsers, is port 80. But it can listen for browser requests on any port, as long as it is configured to do so, and as long as that same port is not in use by something else on the same host. Therefore, your initial question is a bit confusing, because you mention both a URL of "http://webtop"; (thus implying a standard HTTP port 80, thus the equivalent URL to "http://webtop:80/";), and "http://localhost:8080/webtop"; (thus using a non-standard port 8080), and you call them both "sites". Plus, in these URLs, only the "webtop" or "localhost" parts really have something to do with DNS, and DNS itself (the Domain Name System) has nothing to do with IIS (a webserver), and it seemed in your first post that you were also confusing these things. Plus, you mention in your post that you would like the users to enter in their browser the URL "http://webtop"; and that they be automatically redirected to the "site" "http://localhost:8080/webtop"; which really does not make any sense and is rather impossible. So, for all of that, you got treated a bit roughly, but without malice, and I am sure that it was merely an attempt by the other posters here, to get you to straighten up your vocabulary, in an Internet RFC sense. Before we get back to your question, there is another explanation I want to provide, lest we talk again different languages later. When, in the browser URL bar, a user enters a URL like : http://webtop, the browser really does the following : - it asks the underlying Operating System, to resolve the hostname included in this URL (here "webtop") into an IP address (like 1.2.3.4). - then it establishes a TCP connection with the host at that IP address, at the port indicated (here port 80, implicitly for HTTP) - then it sends to that host a HTTP request consisting, as a minimum, of 2 text lines : 1) GET / HTTP/1.1 2) Host: webtop Similarly, when the user
Re: Alias URL
Caldarale, Charles R wrote: From: Johnson, Rob E [mailto:rob.john...@mms.gov] ... Hi guys, can I jump in here ? I believe that you are being a bit tough on Rob here. Obviously, he is not a Tomcat expert, and more used to IIS and the MS way of things, than to Apache httpd and Tomcat. And in IIS, these things are administered through a graphical interface which talks of "sites" and so, so I think he is getting a bit confused. I don't know if I can redeem all of that in 5 minutes, but I'm willing to try. Rob, you are being blasted here because this is a forum for Apache Tomcat, which is an Open Source product, and as such it, and the people here, are striving to follow the official Internet RFCs and the vocabulary used in those documents. Microsoft on the other hand propose their own proprietary products, with their own interfaces and vocabulary. That is their fundamental right, but it can lead to some confusion when one is trying to marry the two worlds. For example, what MS and IIS call a "site", is usually in Apache httpd and Tomcat designated by "virtual Host". In a purely MS-world, using the MS proprietary vocabulary is fine, because within the confines of that world that vocabulary is readily understood. In the world of the Internet and Open Source software, where products come from many sources and have to interact with one another, using the official Internet RFC vocabulary is necessary, because it is the only way by which these products and the people using them can understand eachother and communicate (as you just discovered). Usually also, MS products are designed to be configured primarily through a graphical interface, while many open-source products are mainly configured by means of text files (for Tomcat, in XML format), and a graphical interface is often an afterthought. (And in the Open Source world, particularly with older guys like Chuck and me, graphical configuration interfaces are considered like things for kiddies; the real pros use text files, and a vi editor). Tomcat is primarily a java servlet server (special web applications written in java). But it can act as a generic webserver, and serve normal static pages too. The standard port on which a webserver listens for requests from browsers, is port 80. But it can listen for browser requests on any port, as long as it is configured to do so, and as long as that same port is not in use by something else on the same host. Therefore, your initial question is a bit confusing, because you mention both a URL of "http://webtop"; (thus implying a standard HTTP port 80, thus the equivalent URL to "http://webtop:80/";), and "http://localhost:8080/webtop"; (thus using a non-standard port 8080), and you call them both "sites". Plus, in these URLs, only the "webtop" or "localhost" parts really have something to do with DNS, and DNS itself (the Domain Name System) has nothing to do with IIS (a webserver), and it seemed in your first post that you were also confusing these things. Plus, you mention in your post that you would like the users to enter in their browser the URL "http://webtop"; and that they be automatically redirected to the "site" "http://localhost:8080/webtop"; which really does not make any sense and is rather impossible. So, for all of that, you got treated a bit roughly, but without malice, and I am sure that it was merely an attempt by the other posters here, to get you to straighten up your vocabulary, in an Internet RFC sense. Before we get back to your question, there is another explanation I want to provide, lest we talk again different languages later. When, in the browser URL bar, a user enters a URL like : http://webtop, the browser really does the following : - it asks the underlying Operating System, to resolve the hostname included in this URL (here "webtop") into an IP address (like 1.2.3.4). - then it establishes a TCP connection with the host at that IP address, at the port indicated (here port 80, implicitly for HTTP) - then it sends to that host a HTTP request consisting, as a minimum, of 2 text lines : 1) GET / HTTP/1.1 2) Host: webtop Similarly, when the user enters "http://localhost:8080/webtop";, the browser : - asks the underlying Operating System, to resolve the hostname included in this URL (here "localhost") into an IP address (and this will always come back as 127.0.0.1, because on any machine "localhost" is that address). - then it establishes a TCP connection with the host at that IP address, at the port indicated (here thus, to IP 127.0.0.1 and port 8080, as explicitly mentioned) - then it sends to that host a HTTP request consisting, as a minimum, of 2 text lines, in this case : 1) GET /webtop HTTP/1.1 2) Host: localhost So here you can already see why your initial explanation sounded strange : because in the first case, the IP address returned by the OS (and the DNS system to which it talks) would be whatever public IP add
RE: Alias URL
> From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: RE: Alias URL > > Currently tomcat is set to listen on port 8080. I can easily open port > 80 so that is not an issue. Sounds like an appropriate thing to do, so you don't have to play with URL rewriting anywhere. > We do have other webapps deployed, and yes I do want webtop to be the > default webapp for Tomcat. Then the easiest way to handle this is change the name of the webtop webapp to ROOT (case sensitive), and make sure that the DNS entry for webtop points to the IP address of the box Tomcat is running on. No changes to the Tomcat configuration are necessary, other than switching to port 80 if that's desirable. If you want to utilize the DNS name to webapp mapping trick for additional webapps, you will need multiple elements in server.xml - at which point the name attribute for each becomes important. Look here for details: http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
Currently tomcat is set to listen on port 8080. I can easily open port 80 so that is not an issue. We do have other webapps deployed, and yes I do want webtop to be the default webapp for Tomcat. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, October 05, 2009 11:34 AM To: Tomcat Users List Subject: RE: Alias URL > From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: RE: Alias URL > > So my goal is to use an alias in the url and not the server name. This still isn't clear to me. I'm confused over your port usage: who is listening on port 80? Why is port 8080 of interest in the original or translated URL? > So the alias http://webtop would open http://servername/webtop. Do you have other webapps deployed in Tomcat, or is webtop the only one? If there are others, do you want webtop to be the default webapp for Tomcat, or do you want to be able to do this aliasing for additional webapps? (The former is fairly easy, the latter a bit more trouble, but still doable.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
> From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: RE: Alias URL > > So my goal is to use an alias in the url and not the server name. This still isn't clear to me. I'm confused over your port usage: who is listening on port 80? Why is port 8080 of interest in the original or translated URL? > So the alias http://webtop would open http://servername/webtop. Do you have other webapps deployed in Tomcat, or is webtop the only one? If there are others, do you want webtop to be the default webapp for Tomcat, or do you want to be able to do this aliasing for additional webapps? (The former is fairly easy, the latter a bit more trouble, but still doable.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
Sorry, I thought you were trying to be offensive. When I wrote what I am trying to do, create an alias you asked "Why? By default, Tomcat will listen on all IP addresses assigned to the box it's running on." I responded by saying, "Because the current url has the server name in address." You resounded, "Obviously true, but irrelevant." So my goal is to use an alias in the url and not the server name. When I've done an alias in the past I set the alia in the DNS server. I then modified my application server (running iis and not apache) with a virtual directory and then a webapp as the default homepage. So the alias http://webtop would open http://servername/webtop. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, October 05, 2009 11:12 AM To: Tomcat Users List Subject: RE: Alias URL > From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: RE: Alias URL > You contradict your own questions and rude. Sorry that I've offended you - I certainly had no intent to do so. Please point out any contradictions in what I've said, and where it has been rude. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
> From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: RE: Alias URL > You contradict your own questions and rude. Sorry that I've offended you - I certainly had no intent to do so. Please point out any contradictions in what I've said, and where it has been rude. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
thanks -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Monday, October 05, 2009 11:07 AM To: Tomcat Users List Subject: Re: Alias URL Johnson, Rob E wrote: > Chuck Caldarale you've offerec absolutely no help. You contradict > your own questions and rude. I do not want to hear from you again. Rob, if you want folks here to give up their free time to help you with your problem, I suggest you read http://catb.org/~esr/faqs/smart-questions.html Mark > -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Monday, October 05, 2009 10:54 AM > To: Tomcat Users List > Subject: RE: Alias URL > >> From: Johnson, Rob E [mailto:rob.john...@mms.gov] >> Subject: RE: Alias URL >> >> Because the current url has the server name in address. > > Obviously true, but irrelevant. > >> If you look in the server.xml file the code has Host name=localhost. >> This also means it is using the computer name in the url. > > Not true at all. The name attribute on the element links only > to the defaultHost attribute of the . Unless you have > multiple elements, the name has no relationship to any DNS name. > >> Under tomcat manager we've created a site/folder called webtop >> (http://localhost:8080/webtop) > > That is a webapp, not a site or a folder. > >> I've set the alias in the DNS server: (Alias) = webtop fully >> qualified domain name = imsden.mms. So now in IE, I can type in >> http://webtop and get >> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html. > > That makes no sense; are you saying that http://webtop takes you to > tomcat.apache.org? > >> I have appache listening to port 80 in server.xml so I don't need to >> include the :8080. > > What do you mean by "appache"? Tomcat? httpd? Some other Apache > product? > > If you have Tomcat configured to listen on port 80, why do you want > the URL to include port 8080? > > You might want to post your server.xml so we can look at it, since > your statements about it are self-contradictory. > > Also, take a look at this FAQ entry if you want your webtop app to be > the default webapp: > http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_b > e_ > the_Tomcat_default_application_.3F > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > PROPRIETARY MATERIAL and is thus for use only by the intended > recipient. If you received this in error, please contact the sender > and delete the e-mail and its attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Alias URL
Johnson, Rob E wrote: > Chuck Caldarale you've offerec absolutely no help. You contradict your > own questions and rude. I do not want to hear from you again. Rob, if you want folks here to give up their free time to help you with your problem, I suggest you read http://catb.org/~esr/faqs/smart-questions.html Mark > -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Monday, October 05, 2009 10:54 AM > To: Tomcat Users List > Subject: RE: Alias URL > >> From: Johnson, Rob E [mailto:rob.john...@mms.gov] >> Subject: RE: Alias URL >> >> Because the current url has the server name in address. > > Obviously true, but irrelevant. > >> If you look in the server.xml file the code has Host name=localhost. >> This also means it is using the computer name in the url. > > Not true at all. The name attribute on the element links only to > the defaultHost attribute of the . Unless you have multiple > elements, the name has no relationship to any DNS name. > >> Under tomcat manager we've created a site/folder called webtop >> (http://localhost:8080/webtop) > > That is a webapp, not a site or a folder. > >> I've set the alias in the DNS server: (Alias) = webtop fully >> qualified domain name = imsden.mms. So now in IE, I can type in >> http://webtop and get >> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html. > > That makes no sense; are you saying that http://webtop takes you to > tomcat.apache.org? > >> I have appache listening to port 80 in server.xml so I don't need to >> include the :8080. > > What do you mean by "appache"? Tomcat? httpd? Some other Apache > product? > > If you have Tomcat configured to listen on port 80, why do you want the > URL to include port 8080? > > You might want to post your server.xml so we can look at it, since your > statements about it are self-contradictory. > > Also, take a look at this FAQ entry if you want your webtop app to be > the default webapp: > http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_ > the_Tomcat_default_application_.3F > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
Chuck Caldarale you've offerec absolutely no help. You contradict your own questions and rude. I do not want to hear from you again. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, October 05, 2009 10:54 AM To: Tomcat Users List Subject: RE: Alias URL > From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: RE: Alias URL > > Because the current url has the server name in address. Obviously true, but irrelevant. > If you look in the server.xml file the code has Host name=localhost. > This also means it is using the computer name in the url. Not true at all. The name attribute on the element links only to the defaultHost attribute of the . Unless you have multiple elements, the name has no relationship to any DNS name. > Under tomcat manager we've created a site/folder called webtop > (http://localhost:8080/webtop) That is a webapp, not a site or a folder. > I've set the alias in the DNS server: (Alias) = webtop fully > qualified domain name = imsden.mms. So now in IE, I can type in > http://webtop and get > http://tomcat.apache.org/tomcat-5.5-doc/config/context.html. That makes no sense; are you saying that http://webtop takes you to tomcat.apache.org? > I have appache listening to port 80 in server.xml so I don't need to > include the :8080. What do you mean by "appache"? Tomcat? httpd? Some other Apache product? If you have Tomcat configured to listen on port 80, why do you want the URL to include port 8080? You might want to post your server.xml so we can look at it, since your statements about it are self-contradictory. Also, take a look at this FAQ entry if you want your webtop app to be the default webapp: http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_ the_Tomcat_default_application_.3F - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
> From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: RE: Alias URL > > Because the current url has the server name in address. Obviously true, but irrelevant. > If you look in the server.xml file the code has Host name=localhost. > This also means it is using the computer name in the url. Not true at all. The name attribute on the element links only to the defaultHost attribute of the . Unless you have multiple elements, the name has no relationship to any DNS name. > Under tomcat manager we've created a site/folder called webtop > (http://localhost:8080/webtop) That is a webapp, not a site or a folder. > I've set the alias in the DNS server: (Alias) = webtop fully qualified > domain name = imsden.mms. So now in IE, I can type in http://webtop > and > get http://tomcat.apache.org/tomcat-5.5-doc/config/context.html. That makes no sense; are you saying that http://webtop takes you to tomcat.apache.org? > I have appache listening to port 80 in server.xml so I > don't need to include the :8080. What do you mean by "appache"? Tomcat? httpd? Some other Apache product? If you have Tomcat configured to listen on port 80, why do you want the URL to include port 8080? You might want to post your server.xml so we can look at it, since your statements about it are self-contradictory. Also, take a look at this FAQ entry if you want your webtop app to be the default webapp: http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
> I have apache tomcat 5.5 installed and I am trying to setup an alias > url. Why? By default, Tomcat will listen on all IP addresses assigned to the box it's running on. Because the current url has the server name in address. > Our host directory is "localhost" and we have a site called webtop. Your terminology is ambiguous. What do you mean by "our host directory is localhost"? If you look in the server.xml file the code has Host name=localhost. This also means it is using the computer name in the url. What do you mean by "site" (webapp, perhaps)? Under tomcat manager we've created a site/folder called webtop (http://localhost:8080/webtop) > I have create an alias on our DNS (IIS) server http://webtop. The http:// must not be part of the DNS entry. Another ambiguity: IIS is a web server, not a DNS server; what did you really do? Be specific. Is IIS front-ending Tomcat? We are using a Windows 2003 box as the DNS server on our domain. I've set the alias in the DNS server: (Alias) = webtop fully qualified domain name = imsden.mms. So now in IE, I can type in http://webtop and get http://tomcat.apache.org/tomcat-5.5-doc/config/context.html. But I want to get http://imsden:8080/webtop. > I want a user to enter this url and have it open > http://localhost:8080/webtop. Do you have IIS listening on port 80? I have appache listening to port 80 in server.xml so I don't need to include the :8080. If you want IIS to forward specific requests to Tomcat, have you read the relevant doc? http://tomcat.apache.org/connectors-doc/reference/iis.html No, If I had IIS on this server instead of tomcat I could simply set the folder/website I want to be the default home page. > I've tried a number of settings in the server.xml file but nothing has > worked yet. Not surprising, because nothing should have to be changed in Tomcat, unless you need to enable the AJP connector. - Chuck -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, October 05, 2009 9:52 AM To: Tomcat Users List Subject: RE: Alias URL > From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: Alias URL > > I have apache tomcat 5.5 installed and I am trying to setup an alias > url. Why? By default, Tomcat will listen on all IP addresses assigned to the box it's running on. > Our host directory is "localhost" and we have a site called webtop. Your terminology is ambiguous. What do you mean by "our host directory is localhost"? What do you mean by "site" (webapp, perhaps)? > I have create an alias on our DNS (IIS) server http://webtop. The http:// must not be part of the DNS entry. Another ambiguity: IIS is a web server, not a DNS server; what did you really do? Be specific. Is IIS front-ending Tomcat? > I want a user to enter this url and have it open > http://localhost:8080/webtop. Do you have IIS listening on port 80? If you want IIS to forward specific requests to Tomcat, have you read the relevant doc? http://tomcat.apache.org/connectors-doc/reference/iis.html > I've tried a number of settings in the server.xml file but nothing has > worked yet. Not surprising, because nothing should have to be changed in Tomcat, unless you need to enable the AJP connector. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Alias URL
> From: Johnson, Rob E [mailto:rob.john...@mms.gov] > Subject: Alias URL > > I have apache tomcat 5.5 installed and I am trying to setup an > alias url. Why? By default, Tomcat will listen on all IP addresses assigned to the box it's running on. > Our host directory is "localhost" and we have a site called webtop. Your terminology is ambiguous. What do you mean by "our host directory is localhost"? What do you mean by "site" (webapp, perhaps)? > I have create an alias on our DNS (IIS) server http://webtop. The http:// must not be part of the DNS entry. Another ambiguity: IIS is a web server, not a DNS server; what did you really do? Be specific. Is IIS front-ending Tomcat? > I want a user to enter this url and have it open > http://localhost:8080/webtop. Do you have IIS listening on port 80? If you want IIS to forward specific requests to Tomcat, have you read the relevant doc? http://tomcat.apache.org/connectors-doc/reference/iis.html > I've tried a number of settings in the server.xml file but > nothing has worked yet. Not surprising, because nothing should have to be changed in Tomcat, unless you need to enable the AJP connector. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Alias URL
Hi, I have apache tomcat 5.5 installed and I am trying to setup an alias url. Our host directory is "localhost" and we have a site called webtop. I have create an alias on our DNS (IIS) server http://webtop. I want a user to enter this url and have it open http://localhost:8080/webtop. I've tried a number of settings in the server.xml file but nothing has worked yet. Thanks, Rob Rob Johnson MBA/IT IT Specialist Minerals Management Service 303-231-3963 303-589-9278 (Cell)