P
P
PO6OT2015-04-17 15:51:32
Apache HTTP Server
PO6OT, 2015-04-17 15:51:32

How can I make changing a few characters in .htaccess disable or comment out the last few lines of configuration?

It is necessary that these lines do not work with a wave of the hand (I don’t want to constantly comment and uncomment each line):

Options All +Indexes

<FilesMatch ".(php|inc|log|config)$">
Order Allow,Deny
Allow from all
</FilesMatch>

<IfModule mod_fcgid.c>
AddHandler fcgid-script .html .php .inc
</IfModule>

<IfModule mod_php5.c>
AddHandler application/x-httpd-php .html .php .inc
</IfModule>

php_flag display_startup_errors On
php_flag display_errors On

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PO6OT, 2015-04-17
@woonem

One IfModule disables the code and the other enables it. You can replace mod_mime.c with something else that you are not going to disable.

<IfModule no-exist-module.c>
#<IfModule mod_mime.c>

Отключаемый конфиг

</IfModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question