Direct access to nodes via single virtualhost
Direct access to nodes via single virtualhost
am 05.10.2009 15:19:00 von Andre Rodrigues
Hi,
I have an Apache that redirects via JkMount to two tomcat instance=
s.
They are accessed through different virtualhosts:
*:80>
ServerName appnode1
JkMount /app node1
=
ServerName appnode2
JkMount /app node2=
I would like to make single virtualhost and acces=
s the two nodes, is it possible?
Thanks,=0AAndré
=0A
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Direct access to nodes via single virtualhost
am 05.10.2009 15:25:57 von Krist van Besien
On Mon, Oct 5, 2009 at 3:19 PM, Andre Rodrigues
wrote:
> I would like to make single virtualhost and access the two nodes, is it possible?
One way you could do this is to use plain http between your apache and
your tomcat (in stead of mod JK). That has two advantages:
1) Your configuration becomes a lot simpler.
2) You can do all kinds of nifty things with Rewrite Rules...
Krist
--
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Direct access to nodes via single virtualhost
am 05.10.2009 16:27:44 von Andre Rodrigues
Folks,
=0AI=B4m trying to make this:
Se=
rverName portal
# Redirects to load balancer=0AJkMount /app dmb
=
# Test if wants to reach node1=0ARewriteCond %{REQUEST_URI} ^/node1/app=0A=
RewriteRule ^/?(.*) /app
JkMount /app node1
I=
=B4ve setup a rewrite log and it matches the cond.
172.29.26.184 - - =
[05/Oct/2009:11:16:50 --0300] [portal/sid#800d3468][rid#802a7a50/initial] (=
2) init rewrite engine with requested uri /node1/app=0A172.29.26.184 - - [0=
5/Oct/2009:11:16:50 --0300] [portal/sid#800d3468][rid#802a7a50/initial] (3)=
applying pattern '^/?(.*)' to uri '/node1/app'=0A172.29.26.184 - - [05/Oct=
/2009:11:16:50 --0300] [portal/sid#800d3468][rid#802a7a50/initial] (4) Rewr=
iteCond: input=3D'/node1/app' pattern=3D'^/node1/app' =3D> matched
But=
it returns Apache error 403 forbiden.
Any ideas?
=0AThanks,=0AAn=
dré
=0A----- Original Message ----=0AFrom: Krist van Besien
t.vanbesien@gmail.com>=0ATo: users@httpd.apache.org=0ASent: Monday, October=
5, 2009 10:25:57 AM=0ASubject: Re: [users@httpd] Direct access to nodes vi=
a single virtualhost
On Mon, Oct 5, 2009 at 3:19 PM, Andre Rodrigues=
=0A wrote:
> I would like to make singl=
e virtualhost and access the two nodes, is it possible?
One way you co=
uld do this is to use plain http between your apache and=0Ayour tomcat (in =
stead of mod JK). That has two advantages:=0A1) Your configuration becomes =
a lot simpler.=0A2) You can do all kinds of nifty things with Rewrite Rules=
....
Krist
-- =0Akrist.vanbesien@gmail.com=0Akrist@vanbesien.org=
=0ABremgarten b. Bern, Switzerland=0A--=0AA: It reverses the normal flow of=
conversation.=0AQ: What's wrong with top-posting?=0AA: Top-posting.=0AQ: W=
hat's the biggest scourge on plain text email discussions?
-----------=
----------------------------------------------------------=0 AThe official U=
ser-To-User support forum of the Apache HTTP Server Project.=0ASee
p://httpd.apache.org/userslist.html> for more info.=0ATo unsubscribe, e-mai=
l: users-unsubscribe@httpd.apache.org=0A " from the digest: users-diges=
t-unsubscribe@httpd.apache.org=0AFor additional commands, e-mail: users-hel=
p@httpd.apache.org
____________________________________ ______________=
=0ADo You Yahoo!?=0ATired of spam? Yahoo! Mail has the best spam protectio=
n around =0Ahttp://mail.yahoo.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Direct access to nodes via single virtualhost
am 05.10.2009 16:31:48 von aw
Krist van Besien wrote:
> On Mon, Oct 5, 2009 at 3:19 PM, Andre Rodrigues
> wrote:
>
>> I would like to make single virtualhost and access the two nodes, is it possible?
>
> One way you could do this is to use plain http between your apache and
> your tomcat (in stead of mod JK). That has two advantages:
> 1) Your configuration becomes a lot simpler.
> 2) You can do all kinds of nifty things with Rewrite Rules...
>
1) I can't really see why
2) you can do with mod_jk as well as without.
And, there are some things you can do with mod_jk, and not with
mod_proxy_http, such as authenticating a user in Apache httpd and
passing this authentication to Tomcat, and like load-balancing and
probably many others.
Basic thing : let's not be too quick here.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Direct access to nodes via single virtualhost
am 05.10.2009 16:40:45 von aw
Andre Rodrigues wrote:
....
Have a look at
http://tomcat.apache.org/connectors-doc/reference/apache.htm l
at the very end, the section :
Using SetHandler and Environment Variables
By using a judicious combination of RewriteCond and RewriteRule,
, SetEnv, SetEnvIf etc.., you can do just about anything you
want, and very fine-tuned.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Direct access to nodes via single virtualhost
am 05.10.2009 19:16:21 von Andre Rodrigues
I=B4m stuck with it.
Can you help me?
Thanks,=0AAndré
=
=0A----- Original Message ----=0AFrom: Andr=E9 Warnier =0ATo=
: users@httpd.apache.org=0ASent: Monday, October 5, 2009 11:31:48 AM=0ASubj=
ect: Re: [users@httpd] Direct access to nodes via single virtualhost
K=
rist van Besien wrote:=0A> On Mon, Oct 5, 2009 at 3:19 PM, Andre Rodrigues=
=0A> wrote:=0A> =0A>> I would like to make =
single virtualhost and access the two nodes, is it possible?=0A> =0A> One w=
ay you could do this is to use plain http between your apache and=0A> your =
tomcat (in stead of mod JK). That has two advantages:=0A> 1) Your configura=
tion becomes a lot simpler.=0A> 2) You can do all kinds of nifty things wit=
h Rewrite Rules...=0A> =0A1) I can't really see why=0A2) you can do with mo=
d_jk as well as without.
And, there are some things you can do with mo=
d_jk, and not with mod_proxy_http, such as authenticating a user in Apache =
httpd and passing this authentication to Tomcat, and like load-balancing an=
d probably many others.=0ABasic thing : let's not be too quick here.
=
------------------------------------------------------ ---------------=
=0AThe official User-To-User support forum of the Apache HTTP Server Projec=
t.=0ASee for more info.=0ATo u=
nsubscribe, e-mail: users-unsubscribe@httpd.apache.org=0A " from the dig=
est: users-digest-unsubscribe@httpd.apache.org=0AFor additional commands, e=
-mail: users-help@httpd.apache.org
=0A
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org