L
L
lfs2012-07-07 12:46:23
PHP
lfs, 2012-07-07 12:46:23

how to disable php parsing of apache files with a name containing .php in the middle?

all files with a name containing .php are parsed as php on the hosting!

wap7.ru/tests/test.php.txt
wap7.ru/tests/test.php.jpg

hosting - a virtual machine under unix

on a local car under windows 7 + denver this is not observed.
output as expected

<? echo 111;

no lines in htaccess
AddHandler
AddType

on both php cars no

thanks

Answer the question

In order to leave comments, you need to log in

5 answer(s)
Z
zibada, 2012-07-07
@zibada

RemoveType .php .pht .phtml
<FilesMatch "\.php$">
  SetHandler application/x-httpd-php
</FilesMatch>

C
CAH4A, 2012-07-07
@CAH4A

Maybe it's Apache's Options Multiviews?

A
Alexey Prokhorov, 2012-07-07
@megahertz

<Location /upload>
AddType text/html .php
AddHandler application/x-httpd-php-source .php

L
lfs, 2012-07-07
@lfs

inserted into my htaccess
does not plow ((
response TP
==============================
You are answered by a hosting technical support specialist
. This cannot be done on shared hosting. Such functionality is not included in the list of shared services.To implement such settings, we can offer you a virtual dedicated server, where you will have the opportunity to fully administer the server, indicating all the settings as you need.

L
lfs, 2012-07-11
@lfs

Here's a response from TP
On our hosting, PHP runs in cgi mode, not as an Apache module, so we can't make the changes you need.
In addition, this behavior is described on the Apache developer site at httpd.apache.org/docs/1.3/mod/mod_mime.html#multipleext.
As an example, there is world.imap.html, which is parsed as .imap.
The solution is only a virtual dedicated server
================
Any advice?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question