Hi all,

I am using Midgard and like to redirect to an url within Apache when a
special client remote IP shows up.

Where can I specify my rewrite rule?

RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^xxx\.xxx\.xxx\.xxx$
RewriteRule ^(.*) http://www.example.com/ [R,L]

I have an midgard-data.conf where I can find the following virtual host
entries:

<VirtualHost 19x.yyy.yyy.yyy:80>
    MidgardEngine On
    ServerName www.example.com
    Port 80
    DocumentRoot /var/www/html
    MidgardDatabase midgardlive midgard 204vhE9i3ap9Q
    MidgardBlobDir /var/www/blobs_live
    Alias /webalizer/ /var/www/webalizer/www.example.com/
    CustomLog /var/log/httpd/www.example.com-access.log combined

    # Switch off magic quotes - it is required with Midgard

    php_value magic_quotes_gpc off
    php_value magic_quotes_runtime off

    # Configure text parser:
    # Change to 'russian' for Russian Midgard
    MidgardParser latin1
    # Configuration for Russian Midgard:
    <IfModule mod_charset.c>
     # default charset for real or virtual server (selected if all other
charset-
     # selections methods fails)
     CharsetDefault koi8-r
     # Default source (on-disk) charset (we keep all content in DB in KOI8-R
     # encoding). If you want different encoding, please re-encode
midgard-ru.sql
     # before inserting it into DB too.
     CharsetSourceEnc koi8-r
     # Force mod_charset to do its work
     CharsetDisable Off
    </IfModule>

</VirtualHost>

When I insert the rewrite rule here (anywhere in this section) nothing
happens. Any hints where I can do this better?

Regards,
Joe

-- 
GMX Weihnachts-Special: Seychellen-Traumreise zu gewinnen!

Rentier entlaufen. Finden Sie Rudolph! Als Belohnung winken
tolle Preise. http://www.gmx.net/de/cgi/specialmail/

+++ GMX - die erste Adresse f�r Mail, Message, More! +++


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to