php.ini in subdomain
-
Hi,
I have a global php.ini for my domain with an editor, where I can define the auto_prepend_file. So I can activate Full WAf mode manually.
IMG A https://snag.gy/jGpbHm.jpg
You see the path and a running firewallBecause I have different wordpress installations in various subdomains,
I left the auto_prepend_file input blank, and put a local php.ini in the root of each subdomain with the correct auto_prepend_file directive.
The path occurs in the table, which means the local php.ini works.
But when I see the table, that means the firewall does not work.
IMG B https://snag.gy/zxJ6jI.jpgSo I changed the path, to see if the php.ini here does anything with the prepend file. And it does. The Whole text of the license.txt was on to of the phpinfo table.
IMG C https://snag.gy/ydaFX3.jpgI have solved the problem with a auto_prepend_loader.php
switch ($_SERVER['SERVER_NAME']) { case "sub_1.domain.foo": require '/root_1/wordpress/wp-content/nfwlog/ninjafirewall.php'; break; case "sub_2.domain.foo": require '/root_2/wordpress/wp-content/nfwlog/ninjafirewall.php'; break; }
Is this a bug or a feature ??
Best regards
Jürgen
- The topic ‘php.ini in subdomain’ is closed to new replies.