Answer the question
In order to leave comments, you need to log in
Is it possible to disable image logging globally?
server {
listen 80;
server_name example.ru;
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
access_log off;
}
Answer the question
In order to leave comments, you need to log in
You can not prescribe in each. Create a file in it and write settings common to all virtual hosts. And then you register in each virtual host.
Profit)) And you can generally make just one virtual host that will be universal for all sites.
server {
server_name ~^(www\.)?(?<domain>.+)$;
location / {
root /sites/$domain;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question