Blogger Information
Blog 143
fans 1
comment 0
visits 440316
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
nginx反向代理设置
弘德誉曦的博客
Original
1252 people have browsed it

nginx反向代理设置

  1. server {
  2. listen 80;
  3. server_name www.123.com;
  4. location / {
  5. proxy_pass http://127.0.0.1:8080;
  6. index index.html index.htm index.jsp;
  7. }
  8. }

如上配置,我们监听80端口,访问域名为www.123.com,不加端口号时默认为80端口,故访问该域名时会跳转到127.0.0.1:8080路径上。

我们在浏览器端输入 www.123.com

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post