Answer the question
In order to leave comments, you need to log in
Embed a banner on all your sites
Good afternoon!
I have a server running N sites (nginx+php).
How can I implement the insertion of a banner on all sites (in the header or footer)?
Similar things do (or did many years ago) free hosting.
Answer the question
In order to leave comments, you need to log in
Since the pages are generated by the backend (php-fpm), the line "add_before_body /banner;" must be specified in "location ~ \.php$", not "location /".
habrahabr.ru/post/158393/ - this should prompt you to think.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question