Re: [users@httpd] Handler added with AddHandler gets invoked when <extension> is not really an extension

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

 



On Wednesday 13 July 2005 04:00, Joshua Slive wrote:

> > I've just discovered that adding
> >  AddHandler php-fastcgi .xxx
> > will also parse files like test.xxx.txt and test.xxx.foobar.
> > [...]
> > Is this a bug or am I missing something?

> See
> http://httpd.apache.org/docs-2.0/mod/mod_mime.html#multipleext
> http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Syntax
>
> If you really want only a trailing extension, you can use a
> <FilesMatch> with a SetHandler.

Thank you, Joshua. After reading it, it makes sense.

I've now used FilesMatch to force vi backups to not been shown unparsed with:
<IfModule mod_fastcgi.c>
        <FilesMatch "\.php~$">
                SetHandler php-fastcgi
        </FilesMatch>
</IfModule>

As a side note, it would make sense IMHO to add a note to the AddHandler 
directive documentation about this.

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux