Answer the question
In order to leave comments, you need to log in
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
RemoveType .php .pht .phtml
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<Location /upload>
AddType text/html .php
AddHandler application/x-httpd-php-source .php
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.
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 questionAsk a Question
731 491 924 answers to any question