RE: tomcat directing
n828cl wrote: > >> From: Blueberry [mailto:sandro.lamp...@zeitag.ch] >> Subject: RE: tomcat directing >> >> Okey, I'm sorry for my bad English... > > The English was fine, it was the content of the question that was lacking. > >> if the url contains more than "http://srv01/"; e.x. >> "http://srv01/instance"; >> then he should redirect to "http://srv01";. >> my question is: where is the file (or which filename does this file >> have), where the filter are wrotten in? > > Much better. You're still missing some details, such as the Tomcat > version you're using, so we'll assume you're on a current one. > > You'll want your webapp deployed as ROOT (case sensitive, even on > Windows), since ROOT is the default webapp. Read the servlet spec for how > to specify filters in the WEB-INF/web.xml file. There's already a general > purpose, highly configurable rewrite filter available to drop into any > webapp, so you don't need to write your own. Look here for details: > http://tuckey.org/urlrewrite/ > > - Chuck > > > Version of my tomcat is 5.5 -- View this message in context: http://old.nabble.com/tomcat-directing-tp27562019p27564217.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat directing
> From: Blueberry [mailto:sandro.lamp...@zeitag.ch] > Subject: RE: tomcat directing > > Okey, I'm sorry for my bad English... The English was fine, it was the content of the question that was lacking. > if the url contains more than "http://srv01/"; e.x. "http://srv01/instance"; > then he should redirect to "http://srv01";. > my question is: where is the file (or which filename does this file > have), where the filter are wrotten in? Much better. You're still missing some details, such as the Tomcat version you're using, so we'll assume you're on a current one. You'll want your webapp deployed as ROOT (case sensitive, even on Windows), since ROOT is the default webapp. Read the servlet spec for how to specify filters in the WEB-INF/web.xml file. There's already a general purpose, highly configurable rewrite filter available to drop into any webapp, so you don't need to write your own. Look here for details: http://tuckey.org/urlrewrite/ - 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: tomcat directing
n828cl wrote: > >> From: Blueberry [mailto:sandro.lamp...@zeitag.ch] >> Subject: tomcat directing >> >> >> I have Tomcat with Jira. Is there a way to directing so that Tomcat the >> link "srv01\instance" in "srv01" redirect? > > Have someone unfamiliar with your project read the above; can they make > any sense of your question? I certainly can't. > > - Chuck > > Okey, I'm sorry for my bad English... I try again: I have a server called srv01 on this server is tomcat running and i should make an filter which catch the incoming request and check the url, if the url contains more than "http://srv01/"; e.x. "http://srv01/instance"; then he should redirect to "http://srv01";. my question is: where is the file (or which filename does this file have), where the filter are wrotten in? I hope now it's more cleare what I mean... -- View this message in context: http://old.nabble.com/tomcat-directing-tp27562019p27563977.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat directing
> From: Blueberry [mailto:sandro.lamp...@zeitag.ch] > Subject: tomcat directing > > > I have Tomcat with Jira. Is there a way to directing so that Tomcat the > link "srv01\instance" in "srv01" redirect? Have someone unfamiliar with your project read the above; can they make any sense of your question? I certainly can't. - 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
tomcat directing
Hello I have Tomcat with Jira. Is there a way to directing so that Tomcat the link "srv01\instance" in "srv01" redirect? I have a Windows XP Server (I know, I know win XP isn't a server edition ;) ) regards Blueberry -- View this message in context: http://old.nabble.com/tomcat-directing-tp27562019p27562019.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org