On Nov 22, 2007 4:10 AM, Thomas Schweikle <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have configured apache2:
>
> ScriptAlias /mirrorlist "/usr/share/mirrorlist/mirrorlist"
> <Directory "/usr/share/mirrorlist">
>     Options None
>     AllowOverride None
>     Order allow,deny
>     Allow from 172.16.0.0/16
>     Allow from 192.168.0.0/16
> </Directory>
>
> RewriteEngine on
> RewriteRule "^/?(.*)$"  "/mirrorlist?$1"

You would need the [PT] flag on the RewriteRule to ask that the
ScriptAlias be applied to the result. But why not just replace the
ScriptAlias with
ScriptAlias / /usr/share/mirrorlist/mirrorlist
or
ScriptAliasMatch ^/$ /usr/share/mirrorlist/mirrorlist
(depending on what you are looking for. Your RewriteRule is not at all
clear, since RewriteRules do not match the query string (the part
after the ?).)

Joshua.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to