Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Instead of this line:
location ~* (\.jpg|\.png|\.css|\.mp3)$ {
Try using:
location ~ .(jpe?g|png|css|mp3)$ {
The above will cover jpeg, jpg, png, css, and mp3. You can extend that list by simply adding a new |ext where ext is the extension of the file without the . or \ used in your current.
I tried that. Didn’t work. Here is the configuration.
location ~ .(jpe?g|png|css|mp3)$ {
valid_referers none blocked mydomain.com www.mydomain.com;
if ($invalid_referer) {
return 444; # or 403 Forbidden
}
}
i got the following error
2017/03/10 20:40:14 [emerg] 1742#1742: conflicting parameter “mydomain.com” in /etc/nginx/sites-enabled/mydomain.com:77