Answer the question
In order to leave comments, you need to log in
Where to inject Nginx script into OpenServer?
I need this code:
location ~* ^.+\.(webp|jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpeg|avi|zip|gz|bz2|rar|swf|ico|mp4)$ {
valid_referers none blocked domain.tld ~\.google\. ~\.yandex\.;
if ($invalid_referer) {
return 403;
}
}
Answer the question
In order to leave comments, you need to log in
I'll answer my own question:
Here - "D:\OpenServer\userdata\config\Apache_2.4-PHP_7.2-7.4+Nginx_1.17_vhostn.conf" Choose
Apache depending on the selected module
In a separate conf file, which should be included in the main conf file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question