Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8508917D27 for ; Sat, 4 Apr 2015 23:22:05 +0000 (UTC) Received: (qmail 35945 invoked by uid 500); 4 Apr 2015 23:22:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 35915 invoked by uid 500); 4 Apr 2015 23:22:01 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 35905 invoked by uid 99); 4 Apr 2015 23:22:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2015 23:22:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [80.67.31.96] (HELO smtprelay06.ispgateway.de) (80.67.31.96) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2015 23:21:36 +0000 Received: from [85.179.6.212] (helo=[192.168.1.2]) by smtprelay06.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YeXNK-00041i-VX for users@httpd.apache.org; Sun, 05 Apr 2015 01:21:15 +0200 Message-ID: <552071EA.2030203@pipping.org> Date: Sun, 05 Apr 2015 01:21:14 +0200 From: Sebastian Pipping User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Df-Sender: aGFydHdvcmtAYmluZXJhLmRl X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Effect of AddType / Differences of AddType and AddHandler Hello! I recently learned that both the AddType and AddHandler directives run a multiple extension approach [1]. So a line like AddHandler application/x-httpd-php .php ^^^^^^^ could get you into situations where image uploads of files named "code.php.png" despite ".php" not being the end of the string. Okay. I have seen lines like AddType application/x-httpd-php .php ^^^^ using AddType rather than AddHandler (e.g. at a rather popular German website called Selfhtml [2]), too. That's why I'm contacting you. >From the official AddType docs [3] I was assuming that AddType would only set the string sent in "Content-type: ..." server response headers, previously. To put it into questions: * What are the effects of a "AddType ..." line really? * What are the differences of AddType and AddHandler? * What is the relation of MIME types and handlers in Apache? * Are there differences from what Apache 2.2 did compared to 2.4 in this area of working? Many thanks in advance for your help! Best, Sebastian [1] https://httpd.apache.org/docs/current/mod/mod_mime.html#multipleext [2] http://aktuell.de.selfhtml.org/artikel/server/apacheconf/apconf15.htm [3] https://httpd.apache.org/docs/current/mod/mod_mime.html#addtype --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org