当我打开我的项目时,它会给我以下三个错误:
内联.bundle.js:1未捕获的语法错误:意外的标记<
当我检查那些.js文件时,发现它们被用作index.html。不仅是js,其他所有文件都用作index.html,当它试图运行js时,会发现HTM标记并抛出错误。
nginx.conf格式
> server {
> server_name localhost;
> index index.php index.html;
> root /var/www/public;
>
> location / {
> try_files $uri /index.php?$args;
> }
>
> location ~ \.php$ {
> fastcgi_split_path_info ^(.+\.php)(/.+)$;
> fastcgi_pass php:9000;
> fastcgi_index index.php;
> include fastcgi_params;
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
> fastcgi_param PATH_INFO $fastcgi_path_info;
> } }
>
> server { listen 80; listen [::]:80; return
> 301 https://$host$request_uri; }