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 7/12/05, dAniel hAhler <apache-users@xxxxxxxxxx> wrote:
> Hello everybody,
> 
> I've just discovered that adding
>  AddHandler php-fastcgi .xxx
> will also parse files like test.xxx.txt and test.xxx.foobar.
> 
> I think it should just use the handler if the extension is the last part of
> the URI. Speaking regexp it should build a pattern like "<extension>$".
> 
> I've set this handler in a VirtualHost directive.
> 
> 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.

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: 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