Re: non www to www URL Rewrite

2017-11-13 Thread RAVIRAJ SHAH
Sorry didn't get you exactly But I did above setup in tomcat web server only Thanks Ravi On Mon, Nov 13, 2017, 20:45 shivashankar manukondu < sivasankar.m...@gmail.com> wrote: > Please make it these changes in your webserver > > Regards, > Siva > > On Sat, Nov 11, 2017 at 10:17 AM, RAVIRAJ SHAH

Re: non www to www URL Rewrite

2017-11-13 Thread shivashankar manukondu
Please make it these changes in your webserver Regards, Siva On Sat, Nov 11, 2017 at 10:17 AM, RAVIRAJ SHAH wrote: > Thanks shiv, > > But no luck it is not working > I did configuration as below > > Created rewrite.config file in > ../conf/Catalina/example.com > >

Re: non www to www URL Rewrite

2017-11-11 Thread RAVIRAJ SHAH
Thanks shiv, But no luck it is not working I did configuration as below Created rewrite.config file in ../conf/Catalina/example.com RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteCond %{HTTPS} ^on$ RewriteRule ^(.*)$ https://www.example.com/$[R=permanent,L,NE] And added valve as below in

Re: non www to www URL Rewrite

2017-11-10 Thread shivashankar manukondu
Hi, If you want both should be accessible then try to use "ServerAlias" option If you want redirect all requests then try RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteCond %{HTTPS} ^on$#if you don't want https then make off RewriteRule ^(.*)$ https://www.example.com/$

Re: non www to www URL Rewrite

2017-11-09 Thread RAVIRAJ SHAH
Hi Andre, Thanks for quick reply yes it is pointing to same public IP Thanks, Raviraj Thanks & Regards, Raviraj Shah On 8 November 2017 at 22:50, André Warnier (tomcat) wrote: > On 08.11.2017 17:35, RAVIRAJ SHAH wrote: > >> Sorry for my language >> my query with example

Re: non www to www URL Rewrite

2017-11-08 Thread tomcat
On 08.11.2017 17:35, RAVIRAJ SHAH wrote: Sorry for my language my query with example Let's say my website domain is "example.com" Now I want to redirect "example.com" to "www.example.com" Kindly share how I can achieve it Well first, you need the 2 entries in the DNS server for "example.com".

Re: non www to www URL Rewrite

2017-11-08 Thread RAVIRAJ SHAH
Sorry for my language my query with example Let's say my website domain is "example.com" Now I want to redirect "example.com" to "www.example.com" Kindly share how I can achieve it On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) wrote: > On 08.11.2017 14:30, RAVIRAJ SHAH

Re: non www to www URL Rewrite

2017-11-08 Thread tomcat
On 08.11.2017 14:30, RAVIRAJ SHAH wrote: Anybody please help I think that you first try to communicate more clearly what you want to achieve. "redirect non-www URL to www URL only" does not appear to make much sense. Also please send your message to the list as *plain text*, not html. It will

Re: non www to www URL Rewrite

2017-11-08 Thread RAVIRAJ SHAH
Anybody please help On Tue, Nov 7, 2017, 12:00 RAVIRAJ SHAH wrote: > Dear All, > > Kindly request you to help to resolve this issue > > Problem Statement : > we want to redirect non-www URL to www URL only > > Current setup : > > Defined rewrite valve in server.xml as

non www to www URL Rewrite

2017-11-06 Thread RAVIRAJ SHAH
Dear All, Kindly request you to help to resolve this issue Problem Statement : we want to redirect non-www URL to www URL only Current setup : Defined rewrite valve in server.xml as below Created rewrite.config file in ../conf/Catalina// *RewriteCond %{HTTP_HOST}

Re: Need help with url rewrite

2017-07-24 Thread tomcat
On 24.07.2017 17:42, Sri Linux wrote: Hi I need help with url rewrite. Please let me know the process to contact some one.. You could start here : http://tuckey.org/urlrewrite/#support - To unsubscribe, e-mail: users

Need help with url rewrite

2017-07-24 Thread Sri Linux
Hi I need help with url rewrite. Please let me know the process to contact some one.. Thanks Sri

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-24 Thread Aaron Gray
he >>>> same thing as above with the :232700 and removing it, hit Enter. >>>> >>>> Weird. >>>> >>>> Of course none of this is an issue if you dont hit it with the F5 Load >>>> Balancer to start. >>>> >>&g

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-24 Thread Aaron Gray
; tomcat*, and has to go back through the load balancer. >> And it may be linked to the fact that the load-balancer does not seem to >> remove this >> :23270 port which eventually reaches the browser. >> >> >> >> >>> On Thu, Feb 23, 2017 at 10:2

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread tomcat
in the tomcat .war, as it was a guess). This is visually not appealing, but workable. Maybe I can do some url rewrite or something, IF this cant be fixed normally? On Thu, Feb 23, 2017 at 10:10 AM, Aaron Gray <aaronmg...@gmail.com> wrote: Okay, guys, please accept my most sincere a

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread tomcat
exists in the tomcat .war, as it was a guess). This is visually not appealing, but workable. Maybe I can do some url rewrite or something, IF this cant be fixed normally? On Thu, Feb 23, 2017 at 10:10 AM, Aaron Gray <aaronmg...@gmail.com> wrote: Okay, guys, please accept my most sincere apolog

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread tomcat
On 23.02.2017 19:10, Aaron Gray wrote: Okay, guys, please accept my most sincere apology on this thing. I just figured 1 thing out. browser -> f5:443 -> httpd (23270, https) -> tomcat (http) using the /static works! (see below) If /static/index.html wasnt specified, then it hangs, then comes

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
s needed to add on > the /index.html (i'm lucky this exists in the tomcat .war, as it was a > guess). This is visually not appealing, but workable. Maybe I can do some > url rewrite or something, IF this cant be fixed normally? > > On Thu, Feb 23, 2017 at 10:10 AM, Aaron Gray <aaronmg...@

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
I randomly tried https://loadbalancer.domain.com/SelfService/index.html It works perfectly. No issues. I have no idea why its needed to add on the /index.html (i'm lucky this exists in the tomcat .war, as it was a guess). This is visually not appealing, but workable. Maybe I can do some url

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
Okay, guys, please accept my most sincere apology on this thing. I just figured 1 thing out. browser -> f5:443 -> httpd (23270, https) -> tomcat (http) using the /static works! (see below) If /static/index.html wasnt specified, then it hangs, then comes back as

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
Working with my F5 guy, we had an idea, since 80/tcp and 443/tcp were already open to the VIP on the F5, we simply turned of 80 -> 443 redirect on the F5, and then configured the F5 to use the non-HTTP port in Apache HTTP Server (the two backend servers). So its HTTP the entire way through, and

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
SSLProxyEngine On Was already turned on this entire time inside the ssl.conf (I include it) VirtualHost section. I am debating turning on HTTPS in Tomcat on the backend 10.x.x.x app server, and then HTTPS the whole way through and see if that makes any difference. I may need to request a new

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Antonio S . Cofiño
On 23/02/17 12:43, André Warnier (tomcat) wrote: On 22.02.2017 19:22, Aaron Gray wrote: So this is interesting. So from HTTP server #1 (172.1.1.1 example) I hit: https://172.1.1.1:23270/static and I see this in the HTTP log: 172.1.1.1 - - [22/Feb/2017:10:14:48 -0800] "GET /static/ HTTP/1.1"

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread tomcat
On 22.02.2017 19:22, Aaron Gray wrote: So this is interesting. So from HTTP server #1 (172.1.1.1 example) I hit: https://172.1.1.1:23270/static and I see this in the HTTP log: 172.1.1.1 - - [22/Feb/2017:10:14:48 -0800] "GET /static/ HTTP/1.1" 200 32 I see this in the Tomcat log: 172.1.1.1 - -

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-22 Thread Aaron Gray
So this is interesting. So from HTTP server #1 (172.1.1.1 example) I hit: https://172.1.1.1:23270/static and I see this in the HTTP log: 172.1.1.1 - - [22/Feb/2017:10:14:48 -0800] "GET /static/ HTTP/1.1" 200 32 I see this in the Tomcat log: 172.1.1.1 - - [22/Feb/2017:10:14:48 -0800] "GET /static/

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
Honestly, thank you for your replies and helping me step through this. I was at my wits end with no known place to go. I appreciate it, truly. I have to leave now to be somewhere in like 15 minutes, so I cant really get in to all this now, but I read it. and I will dedicate time to it tomorrow

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread tomcat
On 21.02.2017 23:28, Aaron Gray wrote: Antonio: The Tomcat server has no knowledge of the F5, or that it is being fronted by an Apache HTTP Server. I do SSL termination in Apache HTTP Server, and clear-text from HTTP to Tomcat. My redirect port for the normal HTTP listen in Tomcat is commented

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
Antonio: The Tomcat server has no knowledge of the F5, or that it is being fronted by an Apache HTTP Server. I do SSL termination in Apache HTTP Server, and clear-text from HTTP to Tomcat. My redirect port for the normal HTTP listen in Tomcat is commented out. Andre: The URL I am

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread André Warnier
On 21.02.2017 20:45, Aaron Gray wrote: I have an application server from a vendor that comes bundled with an additional Apache Tomcat server. The webapp SelfService.war is vendor supplied too. Here's my problem (IP's replaced to protect the innocent): networks: DMZ=172.x.x.x INTERNAL=10.x.x.x

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Antonio S. Cofino
Aaron, on tomcat instances change the redirectPort attributte on the http conectó to the loabbalancer's port 443 My guess is that your webapp has restriction rule requesting SSL con fidntial channel. Therefore the non-confidential to the 18080 port from the balancer are redirected to the 23270

Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
I have an application server from a vendor that comes bundled with an additional Apache Tomcat server. The webapp SelfService.war is vendor supplied too. Here's my problem (IP's replaced to protect the innocent): networks: DMZ=172.x.x.x INTERNAL=10.x.x.x server1 https listen = 172.1.1.1:23270

Re: URL rewrite in tomcat 7

2015-02-25 Thread Baran Topal
...@unisys.com : From: Baran Topal [mailto:jazziiil...@gmail.com] Subject: URL rewrite in tomcat 7 I have a tomcat 7 instance in which i need use alias for my domain. Essentially, the alias http://test1/ would replace the http:/myaddress.com and its sub addresses It is not a redirect, rather

Re: URL rewrite in tomcat 7

2015-02-24 Thread Baran Topal
when I directly go via bookmark. What should be the remedy? Br. 2015-02-07 15:40 GMT+01:00 Caldarale, Charles R chuck.caldar...@unisys.com : From: Baran Topal [mailto:jazziiil...@gmail.com] Subject: URL rewrite in tomcat 7 I have a tomcat 7 instance in which i need use alias for my domain

Re: URL rewrite in tomcat 7

2015-02-24 Thread André Warnier
. And maybe just looking at it will show you why whatever you are trying doesn't work. Br. 2015-02-07 15:40 GMT+01:00 Caldarale, Charles R chuck.caldar...@unisys.com : From: Baran Topal [mailto:jazziiil...@gmail.com] Subject: URL rewrite in tomcat 7 I have a tomcat 7 instance in which i need

URL rewrite in tomcat 7

2015-02-07 Thread Baran Topal
Hi I have a tomcat 7 instance in which i need use alias for my domain. Essentially, the alias http://test1/ would replace the http:/myaddress.com and its sub addresses It is not a redirect, rather rewrite of the URL. How do i do this? (modifying context.xml or?) Can you help me? BR. baran

Re: URL rewrite in tomcat 7

2015-02-07 Thread Ben Stringer
On 7 Feb 2015, at 10:53 pm, Baran Topal jazziiil...@gmail.com wrote: Hi I have a tomcat 7 instance in which i need use alias for my domain. Essentially, the alias http://test1/ would replace the http:/myaddress.com and its sub addresses It is not a redirect, rather rewrite of the

RE: URL rewrite in tomcat 7

2015-02-07 Thread Caldarale, Charles R
From: Baran Topal [mailto:jazziiil...@gmail.com] Subject: URL rewrite in tomcat 7 I have a tomcat 7 instance in which i need use alias for my domain. Essentially, the alias http://test1/ would replace the http:/myaddress.com and its sub addresses It is not a redirect, rather rewrite

Re: Security Constraints With URL Rewrite filter

2011-12-27 Thread Pid *
On 26 Dec 2011, at 22:27, Jerry Malcolm 2ndgenfi...@gmail.com wrote: Half of the site is protected, and the other half is not, and some pages have moved from unprotected to protected at the whim of the client. How on earth are you supposed to meet all of these requirements? If you want to

Re: Security Constraints With URL Rewrite filter

2011-12-27 Thread Christopher Schultz
Apache mod_rewrite with a java application? There is a url-rewrite tool, but it's filter-based and will have the same shortcomings of your own solutions up till this point. The dynamic database-related mappings are going to kill you, here. Occasionally, people ask about using Tomcat as an httpd proxy

Re: Security Constraints With URL Rewrite filter

2011-12-26 Thread Pid *
On 25 Dec 2011, at 22:03, Jerry Malcolm 2ndgenfi...@gmail.com wrote: Thanks for the input. This has turned into something really ugly. Let me go back and summarize the situation: I have an established large application made up of about 10 separate webapps (contexts) to keep it modular.

RE: Security Constraints With URL Rewrite filter

2011-12-26 Thread Caldarale, Charles R
From: Jerry Malcolm [mailto:2ndgenfi...@gmail.com] Subject: Re: Security Constraints With URL Rewrite filter --- I want the user to see the URL: /showPlasmaTVs -- I want it to map internally to: /webAppContext1/jsp/user/products.jsp?productSearch=plasma -- I would like

Re: Security Constraints With URL Rewrite filter

2011-12-26 Thread Terence M. Bandoian
On 1:59 PM, Pid * wrote: On 25 Dec 2011, at 22:03, Jerry Malcolm2ndgenfi...@gmail.com wrote: Thanks for the input. This has turned into something really ugly. Let me go back and summarize the situation: I have an established large application made up of about 10 separate webapps

Re: Security Constraints With URL Rewrite filter

2011-12-26 Thread Jerry Malcolm
Half of the site is protected, and the other half is not, and some pages have moved from unprotected to protected at the whim of the client. The client has simply stated clean URLs. I have argued that point, and lost. So independent of valid substantiation for the requirement, it is what it is,

Re: Security Constraints With URL Rewrite filter

2011-12-25 Thread Jerry Malcolm
Thanks for the input. This has turned into something really ugly. Let me go back and summarize the situation: I have an established large application made up of about 10 separate webapps (contexts) to keep it modular. Within each context there are 3-5 user roles with varying authority. I

Re: Security Constraints With URL Rewrite filter

2011-12-25 Thread Konstantin Kolinko
2011/12/26 Jerry Malcolm 2ndgenfi...@gmail.com: Thanks for the input.  This has turned into something really ugly.  Let me go back and summarize the situation: I have an established large application made up of about 10 separate webapps (contexts) to keep it modular.  Within each context

Re: Security Constraints With URL Rewrite filter

2011-12-25 Thread Jerry Malcolm
Konstantin, Thanks for the info. I think I'm getting close. As a test, I have created a valve that just forces a redirect. It compiled fine. I registered it under the 'host' tag next to the other valves in server.xml. When I send a request in, my print statements write to System.out just as

Re: Security Constraints With URL Rewrite filter

2011-12-25 Thread Konstantin Kolinko
2011/12/26 Jerry Malcolm 2ndgenfi...@gmail.com: Konstantin, Thanks for the info.  I think I'm getting close.  As a test, I have created a valve that just forces a redirect.  It compiled fine.  I registered it under the 'host' tag next to the other valves in server.xml.  When I send a request

Re: Security Constraints With URL Rewrite filter

2011-12-25 Thread Jerry Malcolm
Thanks. That was the way I was doing it in the filter (getting the dispatcher from the various contexts). I changed it. The good news is that the routing now works as expected. The bad news is that it is still bypassing the security stuff. I wasn't logged in, and it went straight to the

Re: Security Constraints With URL Rewrite filter

2011-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerry, On 12/21/11 3:55 PM, Jerry Malcolm wrote: The rewrite filter is correctly rewriting the URLs and forwarding the requests. Any option to redirect? That would solve everything. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2

Security Constraints With URL Rewrite filter

2011-12-21 Thread Jerry Malcolm
I structure my webapps with different JSP folders for different user role access, and define the folder patterns in web.xml for each role access. This has worked for many years in my webapps. But in the interest of getting cleaner URLs, I've written a URLRewrite filter. The rewrite filter is

Re: Security Constraints With URL Rewrite filter

2011-12-21 Thread Chema
Well, I don't know about this , but What is the URLRewrite filter ? A Servlet filter ? You can try to write a Valve and test if it works. I think it's processed before calling container code. Maybe ... Or to configure a proxy web to rewrite . I did't make this before, but I know it's possible.

RE: Security Constraints With URL Rewrite filter

2011-12-21 Thread Caldarale, Charles R
From: Jerry Malcolm [mailto:2ndgenfi...@gmail.com] Subject: Security Constraints With URL Rewrite filter I assume that the security constraint now applies to the pattern that come INTO the filter. Not sure what you mean by now applies, but it's always that way. So instead of constraining

Re: Security Constraints With URL Rewrite filter

2011-12-21 Thread Konstantin Kolinko
2011/12/22 Jerry Malcolm 2ndgenfi...@gmail.com: I structure my webapps with different JSP folders for different user role access, and define the folder patterns in web.xml for each role access. This has worked for many years in my webapps.  But in the interest of getting cleaner URLs, I've

Re: URL rewrite

2011-08-09 Thread Pid
On 08/08/2011 20:36, Mohit Anchlia wrote: I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed headers of my servlet and this is what I see. I used

Re: URL rewrite

2011-08-09 Thread Mohit Anchlia
On Tue, Aug 9, 2011 at 1:30 AM, Pid p...@pidster.com wrote: On 08/08/2011 20:36, Mohit Anchlia wrote: I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed

Re: URL rewrite

2011-08-09 Thread Konstantin Kolinko
2011/8/9 Mohit Anchlia mohitanch...@gmail.com: Is this a Tomcat or an HTTPD question? tomcat. As I understand tomcat support URL Rewriting similar to mod_rewrite. No, it does not. There are 3rd party external filters that may do the job, e.g. http://www.tuckey.org/urlrewrite/ but they are

Re: URL rewrite

2011-08-09 Thread André Warnier
Mohit Anchlia wrote: On Tue, Aug 9, 2011 at 1:30 AM, Pid p...@pidster.com wrote: On 08/08/2011 20:36, Mohit Anchlia wrote: I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST

URL rewrite

2011-08-08 Thread Mohit Anchlia
I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed headers of my servlet and this is what I see. I used getHeaders and iterate over it: I need to use host as

Re: URL Rewrite

2010-09-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michel, On 9/5/2010 6:23 PM, michel wrote: - Original Message - From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 12:07 PM Subject: Re: URL Rewrite

Re: URL Rewrite

2010-09-06 Thread Pid
On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use relative links, period. Sorry, but I don't understand why. In most cases relative links are great, simply because they are 'self-updating' when the

Re: URL Rewrite

2010-09-06 Thread michel
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Monday, September 06, 2010 5:02 AM Subject: Re: URL Rewrite On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh

Re: URL Rewrite

2010-09-06 Thread Wesley Acheson
On Mon, Sep 6, 2010 at 11:02 AM, Pid p...@pidster.com wrote: On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use relative links, period. Sorry, but I don't understand why. In most cases relative

Re: URL Rewrite

2010-09-06 Thread Subrat Kumar Pattnaik
I can not login to Apache Tomcat 7 managerplease tell me the configuration On Mon, Sep 6, 2010 at 2:32 PM, Pid p...@pidster.com wrote: On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use

Re: URL Rewrite

2010-09-06 Thread Wesley Acheson
Please send a new email to the list rather than reply to an unrelated topic. On Mon, Sep 6, 2010 at 12:09 PM, Subrat Kumar Pattnaik patnaik.sub...@gmail.com wrote: I can not login to Apache Tomcat 7 managerplease tell me the configuration On Mon, Sep 6, 2010 at 2:32 PM, Pid

Re: URL Rewrite

2010-09-06 Thread Hassan Schroeder
On Mon, Sep 6, 2010 at 3:05 AM, Wesley Acheson wesley.ache...@gmail.com wrote: Are we talking about absolute links like http://example.com/test; or /test (as opposed to test). /test, i.e. starts with a slash representing the app root -- Hassan Schroeder

Re: URL Rewrite

2010-09-06 Thread Pid
On 06/09/2010 11:05, Wesley Acheson wrote: On Mon, Sep 6, 2010 at 11:02 AM, Pid p...@pidster.com wrote: On 05/09/2010 23:40, Hassan Schroeder wrote: On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use relative links, period. Sorry, but I don't

Re: URL Rewrite

2010-09-06 Thread michel
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Monday, September 06, 2010 11:54 AM Subject: Re: URL Rewrite On 06/09/2010 11:05, Wesley Acheson wrote: On Mon, Sep 6, 2010 at 11:02 AM, Pid p...@pidster.com wrote: On 05/09/2010 23

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: Konstantin Kolinko knst.koli...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, September 04, 2010 11:06 AM Subject: Re: URL Rewrite 2010/9/4 michel compu...@videotron.ca: - Original Message - From: Ognjen Blagojevic

Re: URL Rewrite

2010-09-05 Thread André Warnier
Michel, michel wrote: ... Konstantin, I fixed the problem! The problem was in the links in the HTML code. If I do a redirect, then the URL in http: shows the true URL, and the links in the page were using it for building the reklative address. Example: with http://www.smith.com html

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 10:25 AM Subject: Re: URL Rewrite Michel, michel wrote: ... Konstantin, I fixed the problem! The problem was in the links in the HTML code

Re: URL Rewrite

2010-09-05 Thread André Warnier
michel wrote: ... André, I am not sure that I understand but I think that I do. In this case, I believe that HTML does interpret links in a natural way. Normally, the HTML picks up the base href from the toolbar. In the case of a forward with a clean URL in the toolbar, we already have an

Re: URL Rewrite

2010-09-05 Thread Hassan Schroeder
On Sun, Sep 5, 2010 at 8:38 AM, André Warnier a...@ice-sa.com wrote:  The right solution would be to make sure that all the relative links in your pages, when they are interpreted by the browser and requested from the server, are also being caught by the rewriting mechanism on the server, and

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 12:07 PM Subject: Re: URL Rewrite On Sun, Sep 5, 2010 at 8:38 AM, André Warnier a...@ice-sa.com wrote: The right solution would

Re: URL Rewrite

2010-09-05 Thread michel
- Original Message - From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 05, 2010 11:38 AM Subject: Re: URL Rewrite michel wrote: ... André, I am not sure that I understand but I think that I do. In this case, I believe

Re: URL Rewrite

2010-09-05 Thread Hassan Schroeder
On Sun, Sep 5, 2010 at 3:23 PM, michel compu...@videotron.ca wrote: Or, uh, just don't *ever* use relative links, period. Sorry, but I don't understand why. In most cases relative links are great, simply because they are 'self-updating' when the page gets moved. ? Obviously not. If you move

Re: URL Rewrite

2010-09-04 Thread Konstantin Kolinko
2010/9/4 michel compu...@videotron.ca: - Original Message - From: Ognjen Blagojevic ognjen.d.blagoje...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 03, 2010 6:42 AM Subject: Re: URL Rewrite On 3.9.2010 12:02, michel wrote: I have been using

URL Rewrite

2010-09-03 Thread michel
I have been using the tuckey urlrewrite with some results, in that if I want to have an incoming URL coming in as gallery/pic20 gets changed to gallery.jsp?pic=20 But the tool bar URL gets displayed as gallery.jsp?pic=20 and I want to display gallery/pic20 I tried the 'outbound-rule',

Re: URL Rewrite

2010-09-03 Thread Pid
On 03/09/2010 11:02, michel wrote: I have been using the tuckey urlrewrite with some results, in that if I want to have an incoming URL coming in as gallery/pic20 gets changed to gallery.jsp?pic=20 But the tool bar URL gets displayed as gallery.jsp?pic=20 and I want to display

Re: URL Rewrite

2010-09-03 Thread Ognjen Blagojevic
On 3.9.2010 12:02, michel wrote: I have been using the tuckey urlrewrite with some results, in that if I want to have an incoming URL coming in as gallery/pic20 gets changed to gallery.jsp?pic=20 But the tool bar URL gets displayed as gallery.jsp?pic=20 and I want to display gallery/pic20

Re: URL Rewrite

2010-09-03 Thread michel
- Original Message - From: Ognjen Blagojevic ognjen.d.blagoje...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 03, 2010 6:42 AM Subject: Re: URL Rewrite On 3.9.2010 12:02, michel wrote: I have been using the tuckey urlrewrite with some results

Re: URL Rewrite

2010-09-03 Thread michel
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 03, 2010 6:29 AM Subject: Re: URL Rewrite On 03/09/2010 11:02, michel wrote: I have been using the tuckey urlrewrite with some results, in that if I want to have

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a http://lmgtfy.com/?q=tomcat+url+rewrite Is URL rewrite module inbuilt or is there something that need to get loaded -- Hassan

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
: CTRL-L, END, LEFT, 'b', then '/' Voile! Thanks have you used this before :) I was looking for some module in tomcat that will do it for me. I am looking at URL rewrite now. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http

Re: URL rewrite

2010-09-02 Thread michel
- Original Message - From: Mohit Anchlia mohitanch...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 02, 2010 12:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: Is there a way

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Thu, Sep 2, 2010 at 9:35 AM, michel compu...@videotron.ca wrote: - Original Message - From: Mohit Anchlia mohitanch...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 02, 2010 12:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM

RE: URL rewrite

2010-09-02 Thread Maximilian Stocker
From: Mohit Anchlia [mohitanch...@gmail.com] Sent: September 2, 2010 12:26 PM To: Tomcat Users List Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 7:04 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 9/1/2010 9:10

RE: URL rewrite

2010-09-02 Thread Maximilian Stocker
This sounds bad... :( There are options like: - you could set up apache in front of tomcat and url rewrite there - you could use filters - you could have an app that actually uses any servlets.. But maybe you want to consider a forum or discussion list about servlet/jsp development

Re: URL rewrite

2010-09-02 Thread Felix Schumacher
:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a http://lmgtfy.com/?q=tomcat+url+rewrite Is URL rewrite module inbuilt

URL rewrite

2010-09-01 Thread Mohit Anchlia
Tomcat 6: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: URL rewrite

2010-09-01 Thread Hassan Schroeder
Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a http://lmgtfy.com/?q=tomcat+url+rewrite -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

Re: URL rewrite

2010-09-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 9/1/2010 9:10 PM, Mohit Anchlia wrote: Tomcat 6: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a Sure: CTRL-L, END, LEFT, 'b', then '/' Voile! - -chris -BEGIN PGP SIGNATURE- Version:

Re: tomcat url rewrite

2009-09-28 Thread WILLIAMer
://www.nabble.com/tomcat---url-rewrite-tp25395691p25531387.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

Re: tomcat url rewrite

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/17/2009 10:30 PM, WILLIAMer wrote: If you always start your URLs with a '/', then you shouldn't have a problem. Could you explain this Sentence to me? Uh... you should make sure all your URLs are absolute, not relative. IF you have

Re: tomcat url rewrite

2009-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/16/2009 10:04 PM, WILLIAMer wrote: Let me say sorry for i didnt description the error. The error like the path is mapping incorrectly. So, what error message do you get? So the image or css are not display because of the path not

Re: tomcat url rewrite

2009-09-17 Thread WILLIAMer
. -- View this message in context: http://www.nabble.com/tomcat---url-rewrite-tp25395691p25502211.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: tomcat url rewrite

2009-09-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/15/2009 9:45 PM, WILLIAMer wrote: There is no error with url rewrite. For item pd1234, The url would be http://myDomain/item_pd1234.html and its fine. Ok. For item pd12/34 The url would be http://myDomain/item_pd12/34.html

Re: tomcat url rewrite

2009-09-16 Thread WILLIAMer
://www.nabble.com/tomcat---url-rewrite-tp25395691p25483993.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

RE: tomcat url rewrite

2009-09-16 Thread Caldarale, Charles R
From: WILLIAMer [mailto:william.tz...@echannelopen.com.tw] Subject: Re: tomcat url rewrite The error like the path is mapping incorrectly. What do you have in WEB-INF/web.xml for your webapp? I set my application to be ROOT. How? Why i say http://myDomain/item_pd12/34.html let me

Re: tomcat url rewrite

2009-09-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/14/2009 9:43 PM, WILLIAMer wrote: I got the problem if the item name(from database) have / char, the full url path http://myDomain//item_1/23.html would be error. Where does the error occur? Does the URL re-writer fail to re-write

Re: tomcat url rewrite

2009-09-15 Thread WILLIAMer
Hi, Christopher Schultz-2 There is no error with url rewrite. For item pd1234, The url would be http://myDomain/item_pd1234.html and its fine. For item pd12/34 The url would be http://myDomain/item_pd12/34.html and got error. Because tomcat seems there is a directory named item_pd12under my

  1   2   >