You have to create your folder inside pub
folder to access the link as you expected: /var/www/html/pub/mynewfolder
If it does not work, edit nginx.conf or nginx.conf.sample depend on which file you are using for config nginx to add the following rule:
# PHP entry point for custom scripts
location /mynewfolder/ {
try_files $uri =404;
fastcgi_pass fastcgi_backend;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
fastcgi_param PHP_VALUE "memory_limit=756M \n max_execution_time=18000";
fastcgi_read_timeout 600s;
fastcgi_connect_timeout 600s;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
And restart nginx