How to configuration nginx + php-fpm for use suffix=>html ?

Hello. How can i configuration nginx for use route suffix as .html ? If i used default configuration i see 403 error.





server {

    charset      utf-8;

    client_max_body_size  200M;


    listen       80; ## listen for ipv4

    #listen       [::]:80 default_server ipv6only=on; ## listen for ipv6


    server_name  site.com;

    root         /var/www/site.com;

autoindex on;

    access_log   /var/log/nginx/site.com.access.log;

    error_log    /var/log/nginx/site.com.error.log;


    location / {

        root  /var/www/site.com/frontend/web;


        try_files  $uri  /frontend/web/index.php?$args;


        # avoiding processing of calls to non-existing static files by Yii

        location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {

            access_log  off;

            expires  360d;


            try_files  $uri =404;

        }

    }

.....

 location ~ \.php$ {

        include  fastcgi_params;

        # check your /etc/php5/fpm/pool.d/www.conf to see if PHP-FPM is listening on a socket or port

        fastcgi_pass  unix:/var/run/php/php7.0-fpm.sock; ## listen for socket

        #fastcgi_pass  127.0.0.1:9000; ## listen for port

        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;

        try_files  $uri =404;

    }




Thank you.

why bother with nginx when yii does the job for you here you go

http://www.yiiframework.com/doc-2.0/guide-runtime-routing.html#url-suffixes

Hello I am trying to get someone to build revolution slider in my website… Do you have any recommendations?