Re: address bar shows ip instead of domain name

2008-07-31 Thread nilanthan
-shows-ip-instead-of-domain-name-tp18694567p18694567.html
 Sent from the Tomcat - User mailing list archive at  
 Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18713361.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18738052.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18753935.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-31 Thread Ken Bowen
 will  
have

multiple sites
running in the future so I cannot place the site folder in
the
ROOT
directory.

Thanks.
--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
Sent from the Tomcat - User mailing list archive at
Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: users- 
[EMAIL PROTECTED]






--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
Sent from the Tomcat - User mailing list archive at  
Nabble.com.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18713361.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]










--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18738052.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18753935.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-31 Thread nilanthan
 and it forwards to an address http:/xx.xx.xxx.xx:8080/
 folder1/
 welcome.action
 where xx is the ip of the server.

 Im runningTomcat 5.5 alone without apache. The problem is
 that
 when
 a users
 goes to www.mydomain.com, it takes them to the site but in
 the
 address bar
 it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action
 instead of
 mydomain.com.

 Is this an issue with DNS or something in Tomcat? I will  
 have
 multiple sites
 running in the future so I cannot place the site folder in
 the
 ROOT
 directory.

 Thanks.
 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
 Sent from the Tomcat - User mailing list archive at
 Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: users- 
 [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
 Sent from the Tomcat - User mailing list archive at  
 Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18713361.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18738052.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18753935.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18756498.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-31 Thread Mark Thomas

nilanthan wrote:

no, i dont want to do that since i will have multiple apps on the tomcat. but
I want the domain name entered to go to specific webapp folder in tomcat. I
have 5 domains on netfirms going to same ip. I want the domain name entered
to go to specific folder.


http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-31 Thread nilanthan

Do I need to have Apache mod_jk connector for this to work?

Mark Thomas-18 wrote:
 
 nilanthan wrote:
 no, i dont want to do that since i will have multiple apps on the tomcat.
 but
 I want the domain name entered to go to specific webapp folder in tomcat.
 I
 have 5 domains on netfirms going to same ip. I want the domain name
 entered
 to go to specific folder.
 
 http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
 
 Mark
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18761228.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-31 Thread Mark Thomas

nilanthan wrote:

Do I need to have Apache mod_jk connector for this to work?


No. You can do it all just with Tomcat.

Mark



Mark Thomas-18 wrote:

nilanthan wrote:

no, i dont want to do that since i will have multiple apps on the tomcat.
but
I want the domain name entered to go to specific webapp folder in tomcat.
I
have 5 domains on netfirms going to same ip. I want the domain name
entered
to go to specific folder.

http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-31 Thread nilanthan

Thanks alot Ken. Just got it working. ww.. so easy now..lol..but thansk
again for all your time and help.


Mark Thomas-18 wrote:
 
 nilanthan wrote:
 Do I need to have Apache mod_jk connector for this to work?
 
 No. You can do it all just with Tomcat.
 
 Mark
 
 
 Mark Thomas-18 wrote:
 nilanthan wrote:
 no, i dont want to do that since i will have multiple apps on the
 tomcat.
 but
 I want the domain name entered to go to specific webapp folder in
 tomcat.
 I
 have 5 domains on netfirms going to same ip. I want the domain name
 entered
 to go to specific folder.
 http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

 Mark


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18761748.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-31 Thread Ken Bowen

Thanks to Mark for the last bit.

On Jul 31, 2008, at 3:27 PM, nilanthan wrote:



Thanks alot Ken. Just got it working. ww.. so easy now..lol..but  
thansk

again for all your time and help.


Mark Thomas-18 wrote:


nilanthan wrote:

Do I need to have Apache mod_jk connector for this to work?


No. You can do it all just with Tomcat.

Mark



Mark Thomas-18 wrote:

nilanthan wrote:

no, i dont want to do that since i will have multiple apps on the
tomcat.
but
I want the domain name entered to go to specific webapp folder in
tomcat.
I
have 5 domains on netfirms going to same ip. I want the domain  
name

entered
to go to specific folder.

http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18761748.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-30 Thread nilanthan

how do i  map to the domain name itself..

When I do /mydomain.com  to /mywebapp/welcome.action, it only works if I
type this in the browser:
http://00.00.00.00:8080/mydomain.com.
then it goes to http://00.00.00.00:8080/mywebapp/welcome.action but I have
created a record for mydomain.com to go to the ip of 00.00.00.00, same as
above ip. 

My question is how can I map to the mydomain.com to go to http://00.00.00.00
and based on that go to http://00.00.00.00:8080/mywebapp/welcome.action??


nilanthan wrote:
 
 Thanks Ken for all your help! 
 
 
 Ken Bowen wrote:
 
 In rule, map
 
 /mydomain.com  to /mywebapp/welcome.action
 
 in outbound-rule, map
 
 /mywebapp/welcome.action to  /mydomain.com
 
 Do that for welcome, register, and every other page.
 
 Depending on the rules you need, you can make some use of regular  
 expressions.
 
 On Jul 29, 2008, at 10:25 AM, nilanthan wrote:
 

 Thanks. I have placed the files/codes in the right spots and when I do
 localhost:8080/mywebapp/rewrite-status I get the urlrewrite page.

 But what i need is when a user types in the browser  
 www.mydomain.com, it
 should go to http://00.00.00.00:8080/mywebapp/welcome.action but still
 display http://www.mydomain.com and when I click on a link, it  
 should take
 my to ex. http://00.00.00.00:8080/mywebapp/register.action but in the
 address bar show http://www.mydomain.com/register.action.

 Can you use this example for the urlrewrite and where to place the  
 codes?

 Thanks.



 Ken Bowen wrote:

 I don't know of any tutorial -- I found the documentation gave me
 enough guidance.
 It's really pretty straight-forward.
 Drop a filter definition like this in your web.xml:

 filter
 filter-nameUrlRewriteFilter/filter-name
 filter- 
 classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/
 filter-class
 !--
 init-param
 param-namelogLevel/param-name
 param-valuesysout:DEBUG/param-value
 /init-param
 --
 /filter

 filter-mapping
 filter-nameUrlRewriteFilter/filter-name
 url-pattern/*/url-pattern
 dispatcherFORWARD/dispatcher
 dispatcherREQUEST/dispatcher
   /filter-mapping

 Then add a file urlrewrite.xml in your WEB-INF containing mappings in
 the following spirit:

 rule
from^/PrivacyPolicy$/from
to type=forward/PrivacyPolicy.do/to
 /rule
 outbound-rule
 from^/PrivacyPolicy.do$/from
 to/PrivacyPolicy/to
 /outbound-rule

 The outbound-rule describes how to map something going from the
 server to the browser,
 and the (inbound) rule describes how to map what you mapped on
 output (now coming back from the browser)
  back into what you  need to see on input.

 If you removed the comment symbols in the filter element, you get
 detailed debugging ouptut.

 Hope this helps.
 Ken

 On Jul 28, 2008, at 6:16 PM, nilanthan wrote:


 Thanks. I have looked at that before but am a bit confused about the
 instructions. Is there a good tutorial for this urlrewrite?


 Ken Bowen wrote:

 Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the  
 ip
 expression to what you want.

 ken

 On Jul 28, 2008, at 5:36 PM, nilanthan wrote:


 So what Can I do so that that domain goes to that address but  
 shows
 the
 domain in the address bar?

 Yuval Perlov wrote:

 Where ever you forward, that's what the address bar shows


 On Jul 28, 2008, at 7:45 PM, nilanthan wrote:


 Hi,
 I have a website hosted on netfirms. I have a domain,exmaple,
 mydomain.com
 and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/
 welcome.action
 where xx is the ip of the server.

 Im runningTomcat 5.5 alone without apache. The problem is that
 when
 a users
 goes to www.mydomain.com, it takes them to the site but in the
 address bar
 it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action  
 instead of
 mydomain.com.

 Is this an issue with DNS or something in Tomcat? I will have
 multiple sites
 running in the future so I cannot place the site folder in the
 ROOT
 directory.

 Thanks.
 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED

Re: address bar shows ip instead of domain name

2008-07-30 Thread Ken Bowen

If you mean: type http://mydomain.com and get to 00.00.00.00:/,
you must register mydomain.com in the DNS with some ISP.
If you want to get rid of the :8080, you must configure Tomcat to
listen on port 80 instead of 8080 (check the howTo's, or search the  
archives).


On Jul 30, 2008, at 1:13 PM, nilanthan wrote:



how do i  map to the domain name itself..

When I do /mydomain.com  to /mywebapp/welcome.action, it only works  
if I

type this in the browser:
http://00.00.00.00:8080/mydomain.com.
then it goes to http://00.00.00.00:8080/mywebapp/welcome.action but  
I have
created a record for mydomain.com to go to the ip of 00.00.00.00,  
same as

above ip.

My question is how can I map to the mydomain.com to go to http://00.00.00.00
and based on that go to http://00.00.00.00:8080/mywebapp/welcome.action? 
?



nilanthan wrote:


Thanks Ken for all your help!


Ken Bowen wrote:


In rule, map

/mydomain.com  to /mywebapp/welcome.action

in outbound-rule, map

/mywebapp/welcome.action to  /mydomain.com

Do that for welcome, register, and every other page.

Depending on the rules you need, you can make some use of regular
expressions.

On Jul 29, 2008, at 10:25 AM, nilanthan wrote:



Thanks. I have placed the files/codes in the right spots and when  
I do

localhost:8080/mywebapp/rewrite-status I get the urlrewrite page.

But what i need is when a user types in the browser
www.mydomain.com, it
should go to http://00.00.00.00:8080/mywebapp/welcome.action but  
still

display http://www.mydomain.com and when I click on a link, it
should take
my to ex. http://00.00.00.00:8080/mywebapp/register.action but in  
the

address bar show http://www.mydomain.com/register.action.

Can you use this example for the urlrewrite and where to place the
codes?

Thanks.



Ken Bowen wrote:


I don't know of any tutorial -- I found the documentation gave me
enough guidance.
It's really pretty straight-forward.
Drop a filter definition like this in your web.xml:

filter
   filter-nameUrlRewriteFilter/filter-name
   filter-
classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/
filter-class
!--
   init-param
   param-namelogLevel/param-name
   param-valuesysout:DEBUG/param-value
   /init-param
--
/filter

filter-mapping
   filter-nameUrlRewriteFilter/filter-name
   url-pattern/*/url-pattern
   dispatcherFORWARD/dispatcher
   dispatcherREQUEST/dispatcher
 /filter-mapping

Then add a file urlrewrite.xml in your WEB-INF containing  
mappings in

the following spirit:

rule
from^/PrivacyPolicy$/from
to type=forward/PrivacyPolicy.do/to
/rule
outbound-rule
   from^/PrivacyPolicy.do$/from
   to/PrivacyPolicy/to
/outbound-rule

The outbound-rule describes how to map something going from the
server to the browser,
and the (inbound) rule describes how to map what you mapped on
output (now coming back from the browser)
back into what you  need to see on input.

If you removed the comment symbols in the filter element, you  
get

detailed debugging ouptut.

Hope this helps.
Ken

On Jul 28, 2008, at 6:16 PM, nilanthan wrote:



Thanks. I have looked at that before but am a bit confused  
about the

instructions. Is there a good tutorial for this urlrewrite?


Ken Bowen wrote:


Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map  
the

ip
expression to what you want.

ken

On Jul 28, 2008, at 5:36 PM, nilanthan wrote:



So what Can I do so that that domain goes to that address but
shows
the
domain in the address bar?

Yuval Perlov wrote:


Where ever you forward, that's what the address bar shows


On Jul 28, 2008, at 7:45 PM, nilanthan wrote:



Hi,
I have a website hosted on netfirms. I have a domain,exmaple,
mydomain.com
and it forwards to an address http:/xx.xx.xxx.xx:8080/ 
folder1/

welcome.action
where xx is the ip of the server.

Im runningTomcat 5.5 alone without apache. The problem is  
that

when
a users
goes to www.mydomain.com, it takes them to the site but in  
the

address bar
it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action
instead of
mydomain.com.

Is this an issue with DNS or something in Tomcat? I will have
multiple sites
running in the future so I cannot place the site folder in  
the

ROOT
directory.

Thanks.
--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
Sent from the Tomcat - User mailing list archive at  
Nabble.com.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
Sent from the Tomcat

Re: address bar shows ip instead of domain name

2008-07-29 Thread nilanthan

Thanks. I have placed the files/codes in the right spots and when I do
localhost:8080/mywebapp/rewrite-status I get the urlrewrite page.

But what i need is when a user types in the browser www.mydomain.com, it
should go to http://00.00.00.00:8080/mywebapp/welcome.action but still
display http://www.mydomain.com and when I click on a link, it should take
my to ex. http://00.00.00.00:8080/mywebapp/register.action but in the
address bar show http://www.mydomain.com/register.action.

Can you use this example for the urlrewrite and where to place the codes? 

Thanks.



Ken Bowen wrote:
 
 I don't know of any tutorial -- I found the documentation gave me  
 enough guidance.
 It's really pretty straight-forward.
 Drop a filter definition like this in your web.xml:
 
 filter
  filter-nameUrlRewriteFilter/filter-name
  filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ 
 filter-class
 !--
  init-param
  param-namelogLevel/param-name
  param-valuesysout:DEBUG/param-value
  /init-param
 --
 /filter
 
 filter-mapping
  filter-nameUrlRewriteFilter/filter-name
  url-pattern/*/url-pattern
  dispatcherFORWARD/dispatcher
  dispatcherREQUEST/dispatcher
/filter-mapping
 
 Then add a file urlrewrite.xml in your WEB-INF containing mappings in  
 the following spirit:
 
 rule
   from^/PrivacyPolicy$/from
   to type=forward/PrivacyPolicy.do/to
 /rule
 outbound-rule
  from^/PrivacyPolicy.do$/from
  to/PrivacyPolicy/to
 /outbound-rule
 
 The outbound-rule describes how to map something going from the  
 server to the browser,
 and the (inbound) rule describes how to map what you mapped on  
 output (now coming back from the browser)
   back into what you  need to see on input.
 
 If you removed the comment symbols in the filter element, you get  
 detailed debugging ouptut.
 
 Hope this helps.
 Ken
 
 On Jul 28, 2008, at 6:16 PM, nilanthan wrote:
 

 Thanks. I have looked at that before but am a bit confused about the
 instructions. Is there a good tutorial for this urlrewrite?


 Ken Bowen wrote:

 Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip
 expression to what you want.

 ken

 On Jul 28, 2008, at 5:36 PM, nilanthan wrote:


 So what Can I do so that that domain goes to that address but shows
 the
 domain in the address bar?

 Yuval Perlov wrote:

 Where ever you forward, that's what the address bar shows


 On Jul 28, 2008, at 7:45 PM, nilanthan wrote:


 Hi,
 I have a website hosted on netfirms. I have a domain,exmaple,
 mydomain.com
 and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/
 welcome.action
 where xx is the ip of the server.

 Im runningTomcat 5.5 alone without apache. The problem is that  
 when
 a users
 goes to www.mydomain.com, it takes them to the site but in the
 address bar
 it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of
 mydomain.com.

 Is this an issue with DNS or something in Tomcat? I will have
 multiple sites
 running in the future so I cannot place the site folder in the  
 ROOT
 directory.

 Thanks.
 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 

-- 
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18713361.html
Sent from the Tomcat - User mailing list archive at Nabble.com

Re: address bar shows ip instead of domain name

2008-07-29 Thread Ken Bowen

In rule, map

/mydomain.com  to /mywebapp/welcome.action

in outbound-rule, map

/mywebapp/welcome.action to  /mydomain.com

Do that for welcome, register, and every other page.

Depending on the rules you need, you can make some use of regular  
expressions.


On Jul 29, 2008, at 10:25 AM, nilanthan wrote:



Thanks. I have placed the files/codes in the right spots and when I do
localhost:8080/mywebapp/rewrite-status I get the urlrewrite page.

But what i need is when a user types in the browser  
www.mydomain.com, it

should go to http://00.00.00.00:8080/mywebapp/welcome.action but still
display http://www.mydomain.com and when I click on a link, it  
should take

my to ex. http://00.00.00.00:8080/mywebapp/register.action but in the
address bar show http://www.mydomain.com/register.action.

Can you use this example for the urlrewrite and where to place the  
codes?


Thanks.



Ken Bowen wrote:


I don't know of any tutorial -- I found the documentation gave me
enough guidance.
It's really pretty straight-forward.
Drop a filter definition like this in your web.xml:

filter
filter-nameUrlRewriteFilter/filter-name
filter- 
classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/

filter-class
!--
init-param
param-namelogLevel/param-name
param-valuesysout:DEBUG/param-value
/init-param
--
/filter

filter-mapping
filter-nameUrlRewriteFilter/filter-name
url-pattern/*/url-pattern
dispatcherFORWARD/dispatcher
dispatcherREQUEST/dispatcher
  /filter-mapping

Then add a file urlrewrite.xml in your WEB-INF containing mappings in
the following spirit:

rule
from^/PrivacyPolicy$/from
to type=forward/PrivacyPolicy.do/to
/rule
outbound-rule
from^/PrivacyPolicy.do$/from
to/PrivacyPolicy/to
/outbound-rule

The outbound-rule describes how to map something going from the
server to the browser,
and the (inbound) rule describes how to map what you mapped on
output (now coming back from the browser)
 back into what you  need to see on input.

If you removed the comment symbols in the filter element, you get
detailed debugging ouptut.

Hope this helps.
Ken

On Jul 28, 2008, at 6:16 PM, nilanthan wrote:



Thanks. I have looked at that before but am a bit confused about the
instructions. Is there a good tutorial for this urlrewrite?


Ken Bowen wrote:


Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the  
ip

expression to what you want.

ken

On Jul 28, 2008, at 5:36 PM, nilanthan wrote:



So what Can I do so that that domain goes to that address but  
shows

the
domain in the address bar?

Yuval Perlov wrote:


Where ever you forward, that's what the address bar shows


On Jul 28, 2008, at 7:45 PM, nilanthan wrote:



Hi,
I have a website hosted on netfirms. I have a domain,exmaple,
mydomain.com
and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/
welcome.action
where xx is the ip of the server.

Im runningTomcat 5.5 alone without apache. The problem is that
when
a users
goes to www.mydomain.com, it takes them to the site but in the
address bar
it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action  
instead of

mydomain.com.

Is this an issue with DNS or something in Tomcat? I will have
multiple sites
running in the future so I cannot place the site folder in the
ROOT
directory.

Thanks.
--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL

Re: address bar shows ip instead of domain name

2008-07-29 Thread nilanthan

Thanks Ken for all your help! 


Ken Bowen wrote:
 
 In rule, map
 
 /mydomain.com  to /mywebapp/welcome.action
 
 in outbound-rule, map
 
 /mywebapp/welcome.action to  /mydomain.com
 
 Do that for welcome, register, and every other page.
 
 Depending on the rules you need, you can make some use of regular  
 expressions.
 
 On Jul 29, 2008, at 10:25 AM, nilanthan wrote:
 

 Thanks. I have placed the files/codes in the right spots and when I do
 localhost:8080/mywebapp/rewrite-status I get the urlrewrite page.

 But what i need is when a user types in the browser  
 www.mydomain.com, it
 should go to http://00.00.00.00:8080/mywebapp/welcome.action but still
 display http://www.mydomain.com and when I click on a link, it  
 should take
 my to ex. http://00.00.00.00:8080/mywebapp/register.action but in the
 address bar show http://www.mydomain.com/register.action.

 Can you use this example for the urlrewrite and where to place the  
 codes?

 Thanks.



 Ken Bowen wrote:

 I don't know of any tutorial -- I found the documentation gave me
 enough guidance.
 It's really pretty straight-forward.
 Drop a filter definition like this in your web.xml:

 filter
 filter-nameUrlRewriteFilter/filter-name
 filter- 
 classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/
 filter-class
 !--
 init-param
 param-namelogLevel/param-name
 param-valuesysout:DEBUG/param-value
 /init-param
 --
 /filter

 filter-mapping
 filter-nameUrlRewriteFilter/filter-name
 url-pattern/*/url-pattern
 dispatcherFORWARD/dispatcher
 dispatcherREQUEST/dispatcher
   /filter-mapping

 Then add a file urlrewrite.xml in your WEB-INF containing mappings in
 the following spirit:

 rule
 from^/PrivacyPolicy$/from
 to type=forward/PrivacyPolicy.do/to
 /rule
 outbound-rule
 from^/PrivacyPolicy.do$/from
 to/PrivacyPolicy/to
 /outbound-rule

 The outbound-rule describes how to map something going from the
 server to the browser,
 and the (inbound) rule describes how to map what you mapped on
 output (now coming back from the browser)
  back into what you  need to see on input.

 If you removed the comment symbols in the filter element, you get
 detailed debugging ouptut.

 Hope this helps.
 Ken

 On Jul 28, 2008, at 6:16 PM, nilanthan wrote:


 Thanks. I have looked at that before but am a bit confused about the
 instructions. Is there a good tutorial for this urlrewrite?


 Ken Bowen wrote:

 Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the  
 ip
 expression to what you want.

 ken

 On Jul 28, 2008, at 5:36 PM, nilanthan wrote:


 So what Can I do so that that domain goes to that address but  
 shows
 the
 domain in the address bar?

 Yuval Perlov wrote:

 Where ever you forward, that's what the address bar shows


 On Jul 28, 2008, at 7:45 PM, nilanthan wrote:


 Hi,
 I have a website hosted on netfirms. I have a domain,exmaple,
 mydomain.com
 and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/
 welcome.action
 where xx is the ip of the server.

 Im runningTomcat 5.5 alone without apache. The problem is that
 when
 a users
 goes to www.mydomain.com, it takes them to the site but in the
 address bar
 it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action  
 instead of
 mydomain.com.

 Is this an issue with DNS or something in Tomcat? I will have
 multiple sites
 running in the future so I cannot place the site folder in the
 ROOT
 directory.

 Thanks.
 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html
 Sent from the Tomcat - User mailing list archive at Nabble.com

address bar shows ip instead or domain name

2008-07-28 Thread nilanthan

Hi,
I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com
and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/welcome.action
where xx is the ip of the server.

Im runningTomcat 5.5 alone without apache. The problem is that when a users
goes to www.mydomain.com, it takes them to the site but in the address bar
it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of
mydomain.com. 

Is this an issue with DNS or something in Tomcat? I will have multiple sites
running in the future so I cannot place the site folder in the ROOT
directory.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-or-domain-name-tp18694567p18694567.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-28 Thread Yuval Perlov

Where ever you forward, that's what the address bar shows


On Jul 28, 2008, at 7:45 PM, nilanthan wrote:



Hi,
I have a website hosted on netfirms. I have a domain,exmaple,  
mydomain.com
and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/ 
welcome.action

where xx is the ip of the server.

Im runningTomcat 5.5 alone without apache. The problem is that when  
a users
goes to www.mydomain.com, it takes them to the site but in the  
address bar

it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of
mydomain.com.

Is this an issue with DNS or something in Tomcat? I will have  
multiple sites

running in the future so I cannot place the site folder in the ROOT
directory.

Thanks.
--
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-28 Thread nilanthan

So what Can I do so that that domain goes to that address but shows the
domain in the address bar?

Yuval Perlov wrote:
 
 Where ever you forward, that's what the address bar shows
 
 
 On Jul 28, 2008, at 7:45 PM, nilanthan wrote:
 

 Hi,
 I have a website hosted on netfirms. I have a domain,exmaple,  
 mydomain.com
 and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/ 
 welcome.action
 where xx is the ip of the server.

 Im runningTomcat 5.5 alone without apache. The problem is that when  
 a users
 goes to www.mydomain.com, it takes them to the site but in the  
 address bar
 it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of
 mydomain.com.

 Is this an issue with DNS or something in Tomcat? I will have  
 multiple sites
 running in the future so I cannot place the site folder in the ROOT
 directory.

 Thanks.
 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-28 Thread Ken Bowen
Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip  
expression to what you want.


ken

On Jul 28, 2008, at 5:36 PM, nilanthan wrote:



So what Can I do so that that domain goes to that address but shows  
the

domain in the address bar?

Yuval Perlov wrote:


Where ever you forward, that's what the address bar shows


On Jul 28, 2008, at 7:45 PM, nilanthan wrote:



Hi,
I have a website hosted on netfirms. I have a domain,exmaple,
mydomain.com
and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/
welcome.action
where xx is the ip of the server.

Im runningTomcat 5.5 alone without apache. The problem is that when
a users
goes to www.mydomain.com, it takes them to the site but in the
address bar
it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of
mydomain.com.

Is this an issue with DNS or something in Tomcat? I will have
multiple sites
running in the future so I cannot place the site folder in the ROOT
directory.

Thanks.
--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-28 Thread nilanthan

Thanks. I have looked at that before but am a bit confused about the
instructions. Is there a good tutorial for this urlrewrite?


Ken Bowen wrote:
 
 Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip  
 expression to what you want.
 
 ken
 
 On Jul 28, 2008, at 5:36 PM, nilanthan wrote:
 

 So what Can I do so that that domain goes to that address but shows  
 the
 domain in the address bar?

 Yuval Perlov wrote:

 Where ever you forward, that's what the address bar shows


 On Jul 28, 2008, at 7:45 PM, nilanthan wrote:


 Hi,
 I have a website hosted on netfirms. I have a domain,exmaple,
 mydomain.com
 and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/
 welcome.action
 where xx is the ip of the server.

 Im runningTomcat 5.5 alone without apache. The problem is that when
 a users
 goes to www.mydomain.com, it takes them to the site but in the
 address bar
 it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of
 mydomain.com.

 Is this an issue with DNS or something in Tomcat? I will have
 multiple sites
 running in the future so I cannot place the site folder in the ROOT
 directory.

 Thanks.
 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context:
 http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: address bar shows ip instead of domain name

2008-07-28 Thread Ken Bowen
I don't know of any tutorial -- I found the documentation gave me  
enough guidance.

It's really pretty straight-forward.
Drop a filter definition like this in your web.xml:

filter
filter-nameUrlRewriteFilter/filter-name
filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ 
filter-class

!--
init-param
param-namelogLevel/param-name
param-valuesysout:DEBUG/param-value
/init-param
--
/filter

filter-mapping
filter-nameUrlRewriteFilter/filter-name
url-pattern/*/url-pattern
dispatcherFORWARD/dispatcher
dispatcherREQUEST/dispatcher
  /filter-mapping

Then add a file urlrewrite.xml in your WEB-INF containing mappings in  
the following spirit:


rule
from^/PrivacyPolicy$/from
to type=forward/PrivacyPolicy.do/to
/rule
outbound-rule
from^/PrivacyPolicy.do$/from
to/PrivacyPolicy/to
/outbound-rule

The outbound-rule describes how to map something going from the  
server to the browser,
and the (inbound) rule describes how to map what you mapped on  
output (now coming back from the browser)

 back into what you  need to see on input.

If you removed the comment symbols in the filter element, you get  
detailed debugging ouptut.


Hope this helps.
Ken

On Jul 28, 2008, at 6:16 PM, nilanthan wrote:



Thanks. I have looked at that before but am a bit confused about the
instructions. Is there a good tutorial for this urlrewrite?


Ken Bowen wrote:


Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip
expression to what you want.

ken

On Jul 28, 2008, at 5:36 PM, nilanthan wrote:



So what Can I do so that that domain goes to that address but shows
the
domain in the address bar?

Yuval Perlov wrote:


Where ever you forward, that's what the address bar shows


On Jul 28, 2008, at 7:45 PM, nilanthan wrote:



Hi,
I have a website hosted on netfirms. I have a domain,exmaple,
mydomain.com
and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/
welcome.action
where xx is the ip of the server.

Im runningTomcat 5.5 alone without apache. The problem is that  
when

a users
goes to www.mydomain.com, it takes them to the site but in the
address bar
it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of
mydomain.com.

Is this an issue with DNS or something in Tomcat? I will have
multiple sites
running in the future so I cannot place the site folder in the  
ROOT

directory.

Thanks.
--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18694567.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p1863.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: 
http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18700955.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]