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;
}
}
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;
}
}
转载于:https://www.cnblogs.com/hikarusun/p/6657166.html