/var/www/www-root/data/www/мой-домен.ru/static/js/bundle.js локально поднял а вот на серваке получаю ошибку.
server {
server_name мой-домен.ru www.мой-домен.ru;
charset off;
disable_symlinks if_not_owner from=$root_path;
include /etc/nginx/vhosts-includes/*.conf;
include /etc/nginx/vhosts-resources/мой-домен.ru/*.conf;
access_log /var/www/httpd-logs/мой-домен.ru.access.log;
error_log /var/www/httpd-logs/мой-домен.ru.error.log notice;
ssi on;
return 301 https://$host:443$request_uri;
set $root_path /var/www/www-root/data/www/мой-домен.ru;
root $root_path;
listen адрес-моего-сервера:80;
gzip on;
gzip_comp_level 5;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
location / {
proxy_pass http://localhost:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|webp|woff|woff2)$ {
expires 24h;
}
}
}
server {
server_name мой-домен.ru www.мой-домен.ru;
ssl_certificate "/var/www/httpd-cert/www-root/мой-домен.ru_le1.crtca";
ssl_certificate_key "/var/www/httpd-cert/www-root/мой-домен.ru_le1.key";
ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
charset off;
disable_symlinks if_not_owner from=$root_path;
include /etc/nginx/vhosts-includes/*.conf;
include /etc/nginx/vhosts-resources/мой-домен.ru/*.conf;
access_log /var/www/httpd-logs/мой-домен.ru.access.log;
error_log /var/www/httpd-logs/мой-домен.ru.error.log notice;
ssi on;
set $root_path /var/www/www-root/data/www/мой-домен.ru;
root $root_path;
listen 5.35.85.227:443 ssl;
gzip on;
gzip_comp_level 5;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
location / {
proxy_pass http://localhost:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|webp|woff|woff2)$ {
expires 24h;
}
}
}
думаю ошибка в настройке nginx но не знаю что тут не верно, спасибо за любую помощь.