SIMPLE httpd.conf help.
http.conf <Directory> ....Simple question.Hi guys,
I have ALOT of functions in php disabled in php.ini, and allow furl open off, safemode on, open base dir on, etc....
I need some scripts to have access to fopen, but I don't want to leak my entire server, so I'm trying this:
I'd like to give a file named TEST1564489.php located in ANY directory on the server, in ANY domain/website, turn off safe mode and allow furl open.
<Directory /home/*/public_html/TEST1564489.php>
Will this work for the first part, I already know the rest of the portion of code to allow furl open and turn safe mode off, I just need to fix the directory.
Will the wild card work?
so /home/yahoo/public_html/TEST1564489.php has access to allow furl open but every other file in that site does NOT.
How about making it so even unlimited subdirectories, if that TEST156 file is 20 folders deep, can it have acesss to this rule?
<Directory /home/*/public_html/*/TEST1564489.php> How can I make the * wild card recursive for as many sub folders as it needs?
Also, is it possible to have MULTIPLE locations?
Example:
<Directory /home/yahoo/public_html/:/home/google/public_html>
So both (and only) yahoo and google have access to this rule and no other directories have access to this rule? I believe this works for yahoo but it didn't work for google, the ":" is not the proper way to separate or add multiple rules, how can I add multiple without doing
<Directory /home/yahoo/public_html/>
and
<Directory /home/google/public_html/>
because doing this for two dozen sites (on a 500 domain server) would take up ALOT of room on the httpd.conf with TONS of multiple lines, it would be so much easier and more efficient and faster to do if I MULTIPLE directories with the same set of rules.
Thanks for help in advance.
NOTE 2 Admins, appologize for similar double post, I posted this similar message in programming the other day but this category is more appropriate.