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

Bug#447264: marked as done (apache2.2-common: icons do not work on virtualhost with mod_rewrite on)



Your message dated Sat, 10 Nov 2007 11:25:58 +0100
with message-id <200711101125.59215.sf@sfritsch.de>
and subject line Bug#447264: apache2.2-common: icons do not work on virtualhost with mod_rewrite on
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apache2.2-common
Version: 2.2.3-4+etch1
Severity: normal

I believe this can be solved by changing /etc/apache2/apache2.conf to read:

    <Directory "/usr/share/apache2/icons">
		        Options Indexes MultiViews SymLinksIfOwnerMatch

So, basically adding SymLinksIfOwnerMatch to /usr/share/apache2/icons. I am
not sure why this works, or why this is needed, but it solves the issue.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (400, 'testing'), (300, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-rvdb
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)

Versions of packages apache2.2-common depends on:
ii  apache2-utils              2.2.3-4+etch1 utility programs for webservers
ii  libmagic1                  4.17-5etch3   File type determination library us
ii  lsb-base                   3.1-23.2etch1 Linux Standard Base 3.1 init scrip
ii  mime-support               3.39-1        MIME files 'mime.types' & 'mailcap
ii  net-tools                  1.60-17       The NET-3 networking toolkit
ii  procps                     1:3.2.7-3     /proc file system utilities

apache2.2-common recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
On Saturday 10 November 2007, Richard van den Berg wrote:
> 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?

It is probably a side effect of how Location and Directory contexts 
are merged. To cite the documentation: "Although rewrite rules are 
syntactically permitted in <Location> sections, this should never be 
necessary and is unsupported."

Thanks for posting the solution. Since this is not a bug I am closing 
the report.

Cheers,
Stefan


--- End Message ---

Reply to: