server
{
listen 80;
#listen [::]:80;
server_name www.l.com l.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/www.l.com/laravel/public;
include other.conf;
#error_page 404 /404.html;
include enable-php.conf;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/www.l.com_access.log;
error_log /home/wwwlogs/www.l.com_error.log;
}
我的laravel nginx配置
最新推荐文章于 2025-05-14 23:40:34 发布