location ~ .*.(gif|jpg|jpeg|png|bmp|swf|css|htm|html)$ { root /var/www/html/backoffice; expires 180d; } } } 可以访问: http://192.168.137.3:8090/ http://192.168.137.3:8090/index.html