Sunday, October 15, 2017

Wordpress subdirectory domain in Nginx Ubuntu 16.04

        location /blog {
                root /var/www/html/wordpress/;

                access_log /var/log/nginx/blog.access.log;
                error_log /var/log/nginx/blog.error.log;

                location ~ \.php$ {
                        include snippets/fastcgi-php.conf;
                        fastcgi_pass unix:/run/php/php7.1-fpm.sock;
                }

        }

No comments:

Post a Comment