Nginx中的DNS问题解决了问题

时间:2019-06-14 12:54:28

标签: linux nginx

在Linux环境中连接到从gnix创建的URL时出现问题。 Google Chrome中的结果是下一个

enter image description here 配置是/ 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;
    }

}

怎么了?

0 个答案:

没有答案