- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2018-8-24
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
nginx配置文件:server
{
listen 80 default_server;
#listen [::]:80 default_server ipv6only=on;
server_name _;
index index.html index.htm index.php;
root /home/wwwroot/default;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/access.log;
}
include vhost/*.conf;
}
引入vhost中v.com
server {
listen 80;
server_name www.a.com;
index index.html index.htm index.php;
root /home/wwwroot/shop/public;
include enable-php.conf;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
报错:
该网页无法正常运作www.a.com 目前无法处理此请求。
[size=0.8em]HTTP ERROR 500
目录文件已经给了777,防火墙已经关闭,laravel不存在任何错误,这个问题已经请教很多人,还是无法解决,希望大哥给看看
问题只存在laravel,v.conf指向其他目录index.html index.php都可以 |
|