在Linux环境中连接到从gnix创建的URL时出现问题。 Google Chrome中的结果是下一个
配置是/ etc / nginx / sites-available
中的下一个server {
listen 80;
listen [::]:80;
root /var/www/shop.xxx.es/public/;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name shop.xxx.es;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?$query_string;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
怎么了?