server { listen 80; server_name localhost; location = / { return 301 /index; try_files $uri $uri/ /index.html } location / { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass https://houtai.liantuofu.com; } }