最近刚接触laravel,项目放在了网站的二级目录,配置了二级域名,访问时报500错误。当项目放在网站根目录时,用一级域名可以正常访问。
ngix配置文件:chat.abc.cc.conf 如下
server {
listen 80;
root /www/web/abc/public_html/chat;
server_name chat.abc.cc;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 405 /errpage/405.html;
error_page 503 /errpage/503.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri @apache;
}
location @apache {
internal;
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
哔哔one
慕田峪9158850