Translations:Nginx/25/ja

From Gentoo Wiki
Jump to:navigation Jump to:search
FILE /etc/nginx/nginx.confPHP サポートの有効化
...
http {
...
    server {
    ...
        location ~ \.php$ {
            # Test for non-existent scripts or throw a 404 error
            # Without this line, nginx will blindly send any request ending in .php to php-fpm
            try_files $uri =404;
            include /etc/nginx/fastcgi.conf;
            fastcgi_pass unix:/run/php-fpm.socket;
        }
    }
}