Hi Margit,
You could add a rewrite rule like this:
rew Yourrule {
[EMAIL PROTECTED]://[EMAIL PROTECTED]://[EMAIL PROTECTED]
}
acl default {
pass all
rewrite Yourrule
}
..And thus eliminating the redirect directive.
If you want to use the VHM, include the VirtualHostWhatever to the
rewrite rule (could be used to tell Zope for example that it's behind an
SSL terminating reverse proxy).
Regards,
Tuukka
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owner-
> [EMAIL PROTECTED] On Behalf Of Margit Meyer
> Sent: Wednesday, November 30, 2005 1:20 PM
> To: [email protected]
> Subject: rewrite rule
>
> Hi all,
> recently we changed our web server from apache to zope/plone with
squid as
> a
> cache proxy and squidGuard as a redirector.
> Our problem is the following:
> We have one domain, let's say dom1.de and a second domain dom2.de.
> In dns there is an alias from www.dom2.de to www.dom1.de
> When you enter http://www.dom2.de at the web browser you shold be
> redirected
> to http://www.dom1.de/path1
> Therefore at the old apache web server we had a rewrite rule to
rewrite
> from
> http://www.dom2.de to http://www.dom1.de/path1 which worked fine::
>
> RewriteEngine On
> RewriteCond %{HTTP_HOST} www.dom2.de
> RewriteRule ^/$ http://www.dom1.de/path1
>
> How do I manage this with squidGuard?
>
> My squidGuard.conf looks like this:
> acl {
> default {
> redirect
>
http://localhost:8080/VirtualHostBase/http/www.dom1.de:80/yyy/VirutalHos
tR
> oot/%p
> }
> }
>
>
> Thanks in advance
> Margit Meyer
>