Re: mod_jk and URL rewriting/proxying?

2012-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Casper,

On 2/10/12 2:20 AM, Casper Wandahl Schmidt wrote:
 Well at least I don't have to restart tomcat for the changes to
 take effect :) Maybe I would take some time to look at how tomcat
 reads from server.xml and how the host-manager works and perhaps
 find a way to persist the changes :) Any clues as to where to look
 for that part of the code?

The host manager webapp is in the main part of the TC code, but it's
all contained in a single package: org/apache/catalina/manager/host.
It's 3 classes, one of which looks like it's nothing but constants.

It should be fairly clear how the host manager is doing its work, but
re-writing XML is a risky business because most people don't like to
lose the comments and spacing, etc. that they have explicitly put into
their configuration files.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk81PJEACgkQ9CaO5/Lv0PD07gCfYsVGZfu+YqUiRrnFXx4eZBzs
IOAAoJxFIoUnjuY8gTAx/brXxZkpaIEq
=xMt0
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk and URL rewriting/proxying?

2012-02-10 Thread Pid *
On 10 Feb 2012, at 07:21, Casper Wandahl Schmidt kalle.pri...@gmail.com wrote:

 Den 09-02-2012 22:02, Christopher Schultz skrev:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Casper,

 On 2/9/12 1:43 PM, Casper Wandahl Schmidt wrote:
 Den 09-02-2012 19:36, Caldarale, Charles R skrev:
 From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com]
 Subject: mod_jk and URL rewriting/proxying? I don't want the
 app to become ROOT since I have another app that should be
 running as ROOT.
 And how is that one accessed?  From what you described it sounds
 like you want the same URL to hit different webapps based on the
 mindset of the user.
 Ha my bad. I use separate subdomains. Right now the localhost-host
 uses the default ROOT (the one shipped with Tomcat) but I plan to
 use another webapp later.
 I dont like the fact that I need to restart tomcat each time I
 need to add a new host
 Restart not required; use the host-manager webapp to add them on
 the fly.
 Nice, that will be the thing to do then :)

 Thanks for the tip!
 IIRC, the host-manager won't save the server.xml back to disk, so
 you'll have to remember to update your server.xml whenever you want to
 hot-deploy a new domain name, anyway.
 Well at least I don't have to restart tomcat for the changes to take effect 
 :) Maybe I would take some time to look at how tomcat reads from server.xml 
 and how the host-manager works and perhaps find a way to persist the changes 
 :) Any clues as to where to look for that part of the code?

Look for the digester package to see how Tomcat reads from server.xml.


p



 Casper

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk80NH0ACgkQ9CaO5/Lv0PAOYACeOE6TRto+xkg05iMtKiOUcyvP
 FSUAnROQ2VOQT+GxkHMV1nYwaIdjOD+d
 =3Kim
 -END PGP SIGNATURE-

 -
 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



mod_jk and URL rewriting/proxying?

2012-02-09 Thread Casper Wandahl Schmidt

Hi List

I have a quick question (I hope).

I'm using mod_jk to forward from Apache httpd 2.2.8 to tomcat 7.0.20 
(Ubuntu 8.04). I think I saw something on this list some time ago but 
can't remember what it was really about (the real issue was not want I 
want to do).


So I want users to access my webapp from xxx.yyy.zz and then have 
apache/mod_jk to change it to xxx.yyy.zz/myapp


According to 
http://tomcat.apache.org/connectors-doc/generic_howto/proxy.html I have 
to manipulate headers but as far as I remember there was something about 
ProxyPass and ProxyPassReverse. Are they only available to mod_proxy or 
mod_ajp?


I don't want the app to become ROOT since I have another app that should 
be running as ROOT. I thought about making seperat host's in server.xml 
but I dont like the fact that I need to restart tomcat each time I need 
to add a new host so I thought I might achieve want I want by letting 
apache httpd take care of that part.


Kind regards
Casper

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Caldarale, Charles R
 From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com] 
 Subject: mod_jk and URL rewriting/proxying?

 I don't want the app to become ROOT since I have another app 
 that should be running as ROOT.

And how is that one accessed?  From what you described it sounds like you want 
the same URL to hit different webapps based on the mindset of the user.

 I dont like the fact that I need to restart tomcat each time I need 
 to add a new host

Restart not required; use the host-manager webapp to add them on the fly.

 - 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: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Casper Wandahl Schmidt



Den 09-02-2012 19:36, Caldarale, Charles R skrev:

From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com]
Subject: mod_jk and URL rewriting/proxying?
I don't want the app to become ROOT since I have another app
that should be running as ROOT.

And how is that one accessed?  From what you described it sounds like you want 
the same URL to hit different webapps based on the mindset of the user.


Ha my bad. I use separate subdomains. Right now the localhost-host uses 
the default ROOT (the one shipped with Tomcat) but I plan to use another 
webapp later.



I dont like the fact that I need to restart tomcat each time I need
to add a new host

Restart not required; use the host-manager webapp to add them on the fly.

Nice, that will be the thing to do then :)

Thanks for the tip!


  - 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: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Rainer Jung

On 09.02.2012 19:07, Casper Wandahl Schmidt wrote:

Hi List

I have a quick question (I hope).

I'm using mod_jk to forward from Apache httpd 2.2.8 to tomcat 7.0.20
(Ubuntu 8.04). I think I saw something on this list some time ago but
can't remember what it was really about (the real issue was not want I
want to do).

So I want users to access my webapp from xxx.yyy.zz and then have
apache/mod_jk to change it to xxx.yyy.zz/myapp

According to
http://tomcat.apache.org/connectors-doc/generic_howto/proxy.html I have
to manipulate headers but as far as I remember there was something about
ProxyPass and ProxyPassReverse. Are they only available to mod_proxy or
mod_ajp?


Yes, those can currently not be combined with mod_jk. Sorry.


I don't want the app to become ROOT since I have another app that should
be running as ROOT. I thought about making seperat host's in server.xml
but I dont like the fact that I need to restart tomcat each time I need
to add a new host so I thought I might achieve want I want by letting
apache httpd take care of that part.


You might want to look at the host-manager webapp.

Regards,

Rainer


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Jeffrey Janner


 -Original Message-
 From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
 Sent: Thursday, February 09, 2012 12:36 PM
 To: Tomcat Users List
 Subject: RE: mod_jk and URL rewriting/proxying?
 
  From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com]
  Subject: mod_jk and URL rewriting/proxying?
 
  I don't want the app to become ROOT since I have another app
  that should be running as ROOT.
 
 And how is that one accessed?  From what you described it sounds like
 you want the same URL to hit different webapps based on the mindset of
 the user.
 
  I dont like the fact that I need to restart tomcat each time I need
  to add a new host
 
 Restart not required; use the host-manager webapp to add them on the
 fly.
 
  - Chuck
 
Chuck -
Does the host-manager persist changes now, or is it still running changes only?
That is, does one still have to modify the server.xml if we want new hosts to 
be there the next time we restart tomcat?
Jeff
__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Caldarale, Charles R
 From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] 
 Subject: RE: mod_jk and URL rewriting/proxying?

 does one still have to modify the server.xml if we want new hosts 
 to be there the next time we restart tomcat?

A brief scan of the code indicates that you will have to maintain server.xml 
yourself.  All I could see was code that manipulates the active objects; 
nothing seems to be persisted.

 - 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: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Mark Thomas
On 09/02/2012 20:18, Caldarale, Charles R wrote:
 From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject:
 RE: mod_jk and URL rewriting/proxying?
 
 does one still have to modify the server.xml if we want new hosts 
 to be there the next time we restart tomcat?
 
 A brief scan of the code indicates that you will have to maintain
 server.xml yourself.  All I could see was code that manipulates the
 active objects; nothing seems to be persisted.

Correct. There was some code that tried to do this back in 5.5.x but it
was buggy, not maintained and therefore got dropped.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Casper,

On 2/9/12 1:43 PM, Casper Wandahl Schmidt wrote:
 Den 09-02-2012 19:36, Caldarale, Charles R skrev:
 From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com] 
 Subject: mod_jk and URL rewriting/proxying? I don't want the
 app to become ROOT since I have another app that should be
 running as ROOT.
 And how is that one accessed?  From what you described it sounds
 like you want the same URL to hit different webapps based on the
 mindset of the user.
 
 Ha my bad. I use separate subdomains. Right now the localhost-host
 uses the default ROOT (the one shipped with Tomcat) but I plan to
 use another webapp later.
 
 I dont like the fact that I need to restart tomcat each time I
 need to add a new host
 Restart not required; use the host-manager webapp to add them on
 the fly.
 
 Nice, that will be the thing to do then :)
 
 Thanks for the tip!

IIRC, the host-manager won't save the server.xml back to disk, so
you'll have to remember to update your server.xml whenever you want to
hot-deploy a new domain name, anyway.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk80NH0ACgkQ9CaO5/Lv0PAOYACeOE6TRto+xkg05iMtKiOUcyvP
FSUAnROQ2VOQT+GxkHMV1nYwaIdjOD+d
=3Kim
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Casper Wandahl Schmidt



Den 09-02-2012 22:02, Christopher Schultz skrev:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Casper,

On 2/9/12 1:43 PM, Casper Wandahl Schmidt wrote:

Den 09-02-2012 19:36, Caldarale, Charles R skrev:

From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com]
Subject: mod_jk and URL rewriting/proxying? I don't want the
app to become ROOT since I have another app that should be
running as ROOT.

And how is that one accessed?  From what you described it sounds
like you want the same URL to hit different webapps based on the
mindset of the user.

Ha my bad. I use separate subdomains. Right now the localhost-host
uses the default ROOT (the one shipped with Tomcat) but I plan to
use another webapp later.

I dont like the fact that I need to restart tomcat each time I
need to add a new host

Restart not required; use the host-manager webapp to add them on
the fly.

Nice, that will be the thing to do then :)

Thanks for the tip!

IIRC, the host-manager won't save the server.xml back to disk, so
you'll have to remember to update your server.xml whenever you want to
hot-deploy a new domain name, anyway.
Well at least I don't have to restart tomcat for the changes to take 
effect :) Maybe I would take some time to look at how tomcat reads from 
server.xml and how the host-manager works and perhaps find a way to 
persist the changes :) Any clues as to where to look for that part of 
the code?


Casper


- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk80NH0ACgkQ9CaO5/Lv0PAOYACeOE6TRto+xkg05iMtKiOUcyvP
FSUAnROQ2VOQT+GxkHMV1nYwaIdjOD+d
=3Kim
-END PGP SIGNATURE-

-
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