Answer the question
In order to leave comments, you need to log in
Why on the server can one file in fact refer to another file in another folder?
Good day.
There is a domain and a subdomain, on the server they are, respectively, decomposed into two different folders. The structure is this:
\
|- domain.com
|- dev.domain.com
|- another-domain.com
Answer the question
In order to leave comments, you need to log in
Options:
1) A symbolic (or even hard) link on the disk from /dir1/file.css to /dir2/file.css
2) A line in the web server config that "overwrites" one folder (or file) with another.
3) The same as in point 2, only it works for non-existent files like try_files and nginx.
I'm leaning towards 1 or 3.
The above has already described how it works, but did not describe why. Why - you need to ask the one who set up the server. But in general, if this is not someone's mistake, this is done so that the same file does not need to be copied to several places.
In fact, there is another option - if the site uses some kind of engine, its own configuration in the second instance (which is dev.domain.com) can simply be copied from the first one, and an absolute path can be given there. This is mistake.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question