Re: Direct access to nodes via single virtualhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Folks,

 
I´m trying to make this:

<virtualhost *:443>

ServerName portal 

# Redirects to load balancer
JkMount /app dmb

# Test if wants to reach node1
RewriteCond %{REQUEST_URI}  ^/node1/app
RewriteRule ^/?(.*) /app

JkMount /app node1

</virtualhost>

I´ve 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
172.29.26.184 - - [05/Oct/2009:11:16:50 --0300] [portal/sid#800d3468][rid#802a7a50/initial] (3) applying pattern '^/?(.*)' to uri '/node1/app'
172.29.26.184 - - [05/Oct/2009:11:16:50 --0300] [portal/sid#800d3468][rid#802a7a50/initial] (4) RewriteCond: input='/node1/app' pattern='^/node1/app' => matched

But it returns Apache error 403 forbiden.

Any ideas?


Thanks,
André



----- Original Message ----
From: Krist van Besien <krist.vanbesien@xxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Monday, October 5, 2009 10:25:57 AM
Subject: Re:  Direct access to nodes via single virtualhost

On Mon, Oct 5, 2009 at 3:19 PM, Andre Rodrigues
<acastanheira2001@xxxxxxxxxxxx> 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@xxxxxxxxx
krist@xxxxxxxxxxxxx
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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux