httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Konzack <linux4miche...@tamay-dogan.net>
Subject [users@httpd] Re: Searchin better solution as mod_proxy/vhost
Date Fri, 31 Dec 2010 00:27:44 GMT
Hello Joost de Heer,

Am 2010-12-29 22:15:56, hacktest Du folgendes herunter:
> With mod_rewrite and rewritemap. It should look something like this
> (untested):
> 
> urlmap.txt [textfile]
> host1		ip1
> host2		ip2
> host3		ip3
> 
> httpd.conf:
> RewriteEngine On
> RewriteMap urlmap txt:/path/to/urlmap.txt
> # Only rewrite if there is a host header
> RewriteCond %{HTTP_HOST} !^$
> # Lowercase the hostheader
> RewriteCond ${lowercase:%{HTTP_HOST}} ^(.+)$
> # Rewrite only if there is an entry in the urlmap
> RewriteCond ${urlmap:%1} ^([0-9].*)$
> RewriteRule /(.*) http://%1/$1 [P,L]

Thank you Joost.  This was I have tried but not gotten it to work

> Joost

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstra├če 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle@jabber.ccc.de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Mime
View raw message