Monthly Archives: March 2016

red hat nginx php fpm nginx config

red hat nginx php fpm nginx config

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        # try_files $uri $uri/ =404;
        try_files $uri $uri/ index.js /index.php$is_args$args;

    # pass the PHP scripts to FastCGI server listening on
    location ~ \.php$ {
        index  index.html index.htm index.php;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $request_filename;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;