nginx通过url跳转到另外的一个url上

时间:2018-06-21 18:23:07   收藏:0   阅读:687
#user nobody;
worker_processes 1;

events {
worker_connections 1024;
}

http {
sendfile on;
server {
listen 7080;
server_name localhost;

     location ^~ /demo { 
    proxy_pass http://127.0.0.1/;
}
location / {  
    root html;
    index index.html index.htm;
}
}

}

原文:http://blog.51cto.com/13172370/2131436

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!