location / {
index index.html index.htm index.php l.php;
autoindex on;
}
location /xxx1/x2 {
index index.html index.htm index.php;
try_files $uri $uri/ /xxx1/x2/index.php?$query_string; //这是laravel的nginx配置
}