我在sites-available / default文件中有以下代码:
try_files $uri $uri/ /index.php?$query_string;
}
server {
listen 80 default_server;
# listen [::]:80 default_server ipv6only=on;
root /home/project/public;
index index.php index.html index.htm;
server_name ~^(www\.)?(?<domain>.+)$;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
# try_files $uri /index.php =404;
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_keep_conn on;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param TENANT $domain;
include fastcgi_params;
}
}
但我一直收到以下错误:
InvalidArgumentException in FileViewFinder.php line 137:
View [auth.login] not found.
in FileViewFinder.php line 137
at FileViewFinder->findInPaths('auth.login', array('/home/vagrant/Code/project/resources/views')) in FileViewFinder.php line 79
/ home / vagrant / Code / project是我在本地开发项目所在的旧路径。我在哪里需要将此“路径”重置为新的/ home /项目?这是一个Laravel 5项目,我正在运行一个nginx Web服务器。