nginx反向代理重写跳转后地址

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        root /usr/share/nginx/html;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name localhost;
        rewrite ^ https://blog.csdn.net/lu_wei_wei$request_uri? permanent;
        location / {
   
        proxy_pass https://blog.csdn.net/lu_wei_wei;
        }

      
}

你可能感兴趣的:(nginx反向代理重写跳转后地址)