Environment:
vmware
php7
nginx
mysql
laravel
Mount directory / mnt/hgfs/WWW/test/l/public
first, test.com.conf under / usr/local/nginx/conf/vhost
server
{
listen 80;
-sharplisten [::]:80;
server_name test.com test2.com;
index index.html index.htm index.php default.html default.htm default.php;
root /mnt/hgfs/WWW/test/l/public;
include rewrite/laravel.conf;
-sharperror_page 404 /404.html;
-sharp Deny access to PHP files in specific directory
-sharplocation ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php-pathinfo.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\. {
deny all;
}
access_log off;
}
next is the host file for windows
192.168.0.16 test.com
question: 404 appears to use the browser to access test.com at this time. Is it impossible for the domain name to point to the mount directory, or am I misconfigured? Pray for the Great God