首页 > 代码库 > nginx 反向代理到目录

nginx 反向代理到目录

upstream yg{    server 127.0.0.x;}server {      listen      80;      server_name  www.hikaru.pw;      location / {          rewrite ^/(.*)$ /yg/$1 last;      }        location ~* ^/yg/.*$ {          proxy_pass http://yg;      }  }

  

 

nginx 反向代理到目录