[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#447264: apache2.2-common: icons do not work on virtualhost with mod_rewrite on



Stefan Fritsch wrote:
> From the source it appears that this error message can only appear 
> when you have RewriteRules in either .htaccess, <Directory> context, 
> or <Location> context. So look for those.
>   

Thanks for that pointer. Now I found the offending rules, inside a
site-enabled file for my webmail virtual host:

<IfModule rewrite_module>
  <IfModule ssl_module>
    <Location />
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteCond %{HTTP_HOST} ^webmail [NC]
      RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
    </Location>
  </IfModule>
</IfModule>

When I move those rules inside the <Virtualhost> tags, everything works.
I still don't understand how these rules could have caused this problem.
What do these rules have to do with symlinks for the /icons directory?

Thanks for the help!

Richard




Reply to: