226
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name pre.huing.faline; root /data/huing/managent-fe; location / { try_files $uri $uri/ @router; index index.html index.htm; } location @router { rewrite ^(.+)$ /index.html last; } } }
232
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name msgapi.hang.online; root /data/hang/management-fe; location / { try_files $uri $uri/ @router; index index.html index.htm; } location @router { rewrite ^(.+)$ /index.html last; } } }
标签:index,uri,server,nginx,html,location,router From: https://www.cnblogs.com/JIKes/p/18031410