question: Is it possible to "add" the contents of a 2nd folder to the current folder file contents? (In essence I was asking from a full Unix is perspective but may be nginx would work too as the goal is for a web server)
Example:
I have /pub
where our server software lives. It has index.php
But I also have /static/files
where test.php
lives. I do not want to place test.php
in /pub
. What I want is that if I visit the nginx webserver with root /pub
that it sees both test.php and index.php
in the root.
Why?
Because nowadays I have add a lot of validation files to our server that need to exist in the root. Files like bing_dfsfsfsdfs.html
and google_aaddasdjsad.html
. It is a multiserver setup so the files have amounted to quite a few. I was thinking of creating a folder /static/files
where I can store all these single files ... and keep the /pub
folder clean with the software only.
/pub
etc. through a web or FTP server (or similar; please mention which one), or are you dealing with actual directories that users access after logging in with terminal access?