Magento 2 Nginx 配置

server {
    listen       80;
    server_name  localdomain.local;

    root   /usr/share/nginx/html/magento2/;
    index  index.php index.html index.htm;

    location / {
#Magento2
        try_files $uri $uri/ /index.php?$args;
    }

    location /setup {
        try_files $uri $uri/ @setuphandler;
    }
    # Rewrite Setup's Internal Requests
    location @setuphandler {
        rewrite /setup /setup/index.php;
    
更多...