server {
listen ***********:443;
server_name mydomain.com ;
ssl on;
ssl_certificate /home/user/conf/web/ssl.mydomain.com.pem;
ssl_certificate_key /home/user/conf/web/ssl.mydomain.com.key;
error_log /var/log/httpd/domains/mydomain.com.error.log error;
location / {
proxy_pass https://***********:8443;
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
root /home/user/web/mydomain.com/public_html;
access_log /var/log/httpd/domains/mydomain.com.log combined;
access_log /var/log/httpd/domains/mydomain.com.bytes bytes;
expires max;
try_files $uri @fallback;
}
}
location ~* /videos/ {
limit_conn addr 10;
limit_rate_after 500k;
limit_rate 150k;
proxy_buffering on;
}
location /error/ {
alias /home/user/web/mydomain.com/document_errors/;
}
location @fallback {
proxy_pass https://***********:8443;
}
location ~ /\.ht {return 404;}
location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;}
include /home/user/conf/web/*nginx.mydomain.com.conf_letsencrypt;
include /home/user/conf/web/snginx.mydomain.com.conf*;
}
location / {
proxy_pass https://***********;
location ~* ^.+\.(mp4|...)
location ~* /videos/
Но на мой взгляд тоже все верно.