tangbinde 发表于 2018-11-12 10:18:30

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

  #usernobody;
  worker_processes1;
  events {
  worker_connections1024;
  }
  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;
  
}
  
}
  

  }


页: [1]
查看完整版本: nginx通过url跳转到另外的一个url上