V
V
vljs2018-08-14 14:09:18
Nginx
vljs, 2018-08-14 14:09:18

Why does the subfolder take styles from the main site? How to change it?

Hello everyone, I ran into such a problem: there is a site x.com. Documentation has appeared that is not located in the folder of the main site and is not attached to them in any way except for the domain (/var/www/x vs /var/www/docs). I set up a subdirectory, goes to x/docs.com, but takes all styles, pictures, etc. not in the docs folder, but in x .
What I did:
- specified the root folder in ^~ /docs
- put try_files, etc.
If you make a subdomain (docs.x.com), then everything works as it should. What do you advise? What to push off?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question