server { listen 8000; #监听端口号 server_name loaclhost;#/#域名、主机名 #location /cache_app { //匹配路径 # root html/; // 文件根目录 # index index.html index.htm; //默认页名称 #} # location /rise { # alias html/cache_app; # index index.html index.htm; # } location /dcimUnityWeb/DCIM/WebGL3D/index.html{ alias /Users/Simoon/Desktop/dcimUnityWeb/DCIM/WebGL3D/; #index index.html; } error_page 500 502 503 504 /50x.html; #报错编码对应页面 location = /50x.html { root html; } }
标签:index,静态,app,后缀名,nginx,html,location,WebGL3D From: https://www.cnblogs.com/Simoon/p/16876761.html