MOD_REWRITE MOD_JK Altering host

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

 



Hi, 

I want to configure apache to alter the host before the request it passed to my jk handler.

Example:

a.domain.com 

needs to be altered to 

b.domain.com


I have tried..

RewriteRule ^(.*) http://a.domain.com$1 [QSA,L,PT]

here is the log output

rewrite.log

192.168.1.46 - - [11/May/2011:08:51:03 +0100] [a.domain.com/sid#84688c8][rid#84f49b0/initial] (2) init rewrite engine with requested uri /licc_spec.xml
192.168.1.46 - - [11/May/2011:08:51:03 +0100] [a.domain.com/sid#84688c8][rid#84f49b0/initial] (3) applying pattern '^(.*)' to uri '/licc_spec.xml'
192.168.1.46 - - [11/May/2011:08:51:03 +0100] [a.domain.com/sid#84688c8][rid#84f49b0/initial] (2) rewrite '/licc_spec.xml' -> 'http://b.domain.com/licc_spec.xml'
192.168.1.46 - - [11/May/2011:08:51:03 +0100] a.domain.com/sid#84688c8][rid#84f49b0/initial] (2) implicitly forcing redirect (rc=302) with http://b.domain.com/licc_spec.xml
192.168.1.46 - - [11/May/2011:08:51:03 +0100] [a.domain.com/sid#84688c8][rid#84f49b0/initial] (2) forcing 'http://b.domain.com/licc_spec.xml' to get passed through to next API URI-to-filename handler

mod_jk.log

[Wed May 11 08:51:03 2011] [32311:3086915328] [warn] map_uri_to_worker::jk_uri_worker_map.c (608): Uri http://b.domain.com/licc_spec.xml is invalid. Uri must start with /
[Wed May 11 08:51:03 2011] [32311:3086915328] [debug] jk_translate::mod_jk.c (3147): no match for http://b.domain.com/licc_spec.xml found

What am I doing wrong?

Ben

[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