nginx_web_root: /opt有多个web站点,例如34454、563234、23445、688656...这种数字的目录,location如何写正则匹配访问需求http://192.168.1.233/34454会自动找到34454目录下的index.html这么写不能访问location ~ ^/(\d+){root /opt;index index.html;}
从入门到精通-Nginx