M
M
Maxim Klyushkov2013-07-09 12:27:26
Nginx
Maxim Klyushkov, 2013-07-09 12:27:26

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

3 answer(s)
M
Maxim Klyushkov, 2013-07-09
@m_klyushkov

Since the pages are generated by the backend (php-fpm), the line "add_before_body /banner;" must be specified in "location ~ \.php$", not "location /".

V
Vlad Zhivotnev, 2013-07-09
@inkvizitor68sl

habrahabr.ru/post/158393/ - this should prompt you to think.

V
Vlad Zhivotnev, 2013-07-09
@inkvizitor68sl

subs_filter on, or something ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question