I edited my root folder from/var/www/example.com/public_html/mysite/publicto/var/www/example.com/public_htmlThen I configured my vitualhost for sub directory, as below. Site shows only white screen. Error log, nginx error log is empty.server {        listen 80;        #listen [::]:80 default_server ipv6only=on;    root /var/www/example.com/public_html;    index index.php index.html index.htm;    server_name example.com www.example.com;    location / {        try_files $uri $uri/ /index.php$is_args$args;    }    error_page 404 /404.html;    error_page 500 502 503 504 /50x.html;    error_log /var/www/logs/error.log;    location ~ \.php$ {            try_files $uri =404;            fastcgi_split_path_info ^(.+\.php)(/.+)$;            fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;            fastcgi_index index.php;            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;            include fastcgi_params;    }    location ^~ /mysite {            alias /var/www/example.com/public_html/mysite/public;            try_files $uri $uri/ @mysite;            location ~* \.php$ {                fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;                fastcgi_split_path_info ^(.+\.php)(.*)$;                include /etc/nginx/fastcgi_params;            }    }    location @mysite {            rewrite ^/mysite/(.*)$ /mysite/index.php?/$1 last;    }}I can't figure out what is a problem. Site was created in Laravel Framework1) File permissions, laravel configuration had been done correctly.2) I assume that the problem is with php fpm. But it works, opening the website without subdirectory.I had done same thing before in Ubuntu 14.04. It seems, in Ubuntu 16.04 there is some difference. Maybe, I miss something while configuring Nginx ?
Site works in directory, but doesn't work after moving to subdirectory in Ubuntu 16.04 Nginx
ubuntu;nginx