@Stepgor

Что не так с css nginx?

Вроде настроил nginx , но при подгрузке css выдает такую ошибку: Refused to apply style from 'путь' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.5d30c41ec16d1218736587.png
server {
        server_name site.com www.site.com;
        charset off;
        index index.html;
        disable_symlinks if_not_owner from=$root_path;
        include /etc/nginx/vhosts-includes/*.conf;
        include /etc/nginx/vhosts-resources/site.com/*.conf;
        access_log /var/www/httpd-logs/site.com.access.log;
        error_log /var/www/httpd-logs/site.com.error.log notice;
        ssi on;
        set $root_path /var/www/www-root/data/www/site.com;
        root $root_path;
        location / {
        proxy_pass http://localhost:3000;
        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;
            }
        return 301 https://$host:443$request_uri;
        listen ip:80;
}
server {
        server_name site.com www.site.com;
        ssl_certificate "/var/www/httpd-cert/www-root/site.com_le1.crtca";
        ssl_certificate_key "/var/www/httpd-cert/www-root/site.com_le1.key";
        ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
        ssl_prefer_server_ciphers on;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        add_header Strict-Transport-Security "max-age=31536000;";
        ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
        charset off;
        index index.html;
        disable_symlinks if_not_owner from=$root_path;
        include /etc/nginx/vhosts-includes/*.conf;
        include /etc/nginx/vhosts-resources/site.com/*.conf;
        access_log /var/www/httpd-logs/site.com.access.log;
        error_log /var/www/httpd-logs/site.com.error.log notice;
        ssi on;
        set $root_path /var/www/www-root/data/www/site.com;
        root $root_path;
        location / {
        proxy_pass http://localhost:3000;
        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;
        }
        listen ip:443 ssl;
}
  • Вопрос задан
  • 259 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы