apache - Exclude a a directory in php open_basedir on nginx webserver -



apache - Exclude a a directory in php open_basedir on nginx webserver -

i trying set php open_basedir website , have 2 locations execute php script , need disable php on sub folder within document root. don't know if possible.

are doc roots requires php execution

/home/bastian/html /home/bastian/meatalheavy

i need disable php exection on next dirs

/home/bastian/html/ass_ests /home/bastian/html/images/

php.ini

open_basedir = "/home/bastian/html" ; "/home/bastian/meatalheavy"

the setting of open_basedir php manual sets access directory tree, not specific directory. if you'd restrict subdirectory, must not allow of it's parents.

note: depending on directory layout (and php version) looks want not possible or @ to the lowest degree not w/o big amount of configuration (allowing files , subfolder individually).

php apache nginx

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -