httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] Rewrite does not work
Date Mon, 08 Jan 2007 15:56:24 GMT
On 1/8/07, Huesser Peter <peter.huesser@psi.ch> wrote:

> I have a problem with a rewrite. In my httpd.conf I use the following lines:
>
>
>
> ScriptAlias /test/ /var/test/cgi-bin/
>
> Alias /pipermail/ /var/test/archives/public/
>
> <Directory /var/test/archives>
>
>         Options +FollowSymlinks
>
> </Directory>
>
>
>
> RewriteEngine On
>
> RewriteCond %{SERVER_PORT}       ^80$
>
> RewriteRule ^(.+)$ https://server.domain.ch$1 [R]
>
>
>
> RewriteCond %{REMOTE_HOST} \.domain\.ch$
>
> RewriteRule ^/testtinfo/fea http://another.url.ch/
>
>
>
> The first RewriteCond maps all request on port 80 to the port 443 an works
> fine. But the second RewriteCond has no effect Any idea?

What are you seeing in your rewrite log? (If you don't have a rewrite
log, switch it on now, and set debugging to a sufficiently high
level).

Krist

-- 
krist.vanbesien@gmail.com
Bremgarten b. Bern, Switzerland
--
"...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation." (Comment on the Dilbert Blog)

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message