T
T
TheInvisible2015-07-07 19:12:26
PHP
TheInvisible, 2015-07-07 19:12:26

Configure .htaccess execution "PHP as FAST-CGI", what is the way to execute any (non-standard) files like php?

There are many files on the hosting, with different NON-STANDARD extensions, but the names are template.
For example user .text?log-7

If the extensions were .htm, etc., and there were few of them, then the entry would be like this for .htaccess

FCGIWrapper /var/www/user/data/php-bin/php . html
FCGIWrapper /var/www/user/data/php-bin/php .htm
FCGIWrapper /var/www/user/data/php-bin/php .php
AddHandler fcgid-script .php .html .htm

But you need to do the opposite there are several names, and there are a lot of extensions, an example is below

On another hosting, I used

ForceType application/x-httpd-php,

but the server is configured differently there

How to configure for FASTCGI?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ShamblerR, 2015-07-08
@ShamblerR

make a redirect from these urls to normal ones and execute them already.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question