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


    root         /var/www/;

autoindex on;

    access_log   /var/log/nginx/;

    error_log    /var/log/nginx/;

    location / {

        root  /var/www/;

        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; ## 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

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