Re: Override a File to Same Name in Another Directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you want client requests to http://your.site/config.php be served by ./parent/config.php , then the answer is yes -- I'd start with mod_rewrite for instance. If config.php is invoked by PHP, not by Apache, then you cannot fix it using Apache features -- you really need to change that symbolic link or PHP configuration or something in the system. Actual analogue of OVRDBF as I understand it in Linux is OverlayFS, but it's overkill for your task.

--

With Best Regards,
Marat Khalili

On 12/03/2016 23:14, Ron Wingfield wrote:
I don’t know if and how this can be accomplished.

Scenario:

Two directories, parent and child.
parent is in a virtual host “container”.
child is a symbolic link to an application default core distribution directory (php objects).
./parent/child contains a default config.php file.
./parent contains a custom config.php file.

DocumentRoot points to ./parent/child.

Can the various features of Apache, .htaccess, <Directory>, <File>, Alias, etc., be configured to effectively override ./child/config.php to ./parent/config.php?

In other words, I want to substitute the custom file for the default version. In IBM OS/400 world, this can be easily accomplished with the Override with DataBase File command . . .something like:

     OVRDBF FILE(child/config.php) TOFILE(parent/config.php)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux