xuandi

在conf下 新建一个 文件 格式 : 域名.conf  例如:www.test.com.conf 

文件里配置:

server
{
listen 80;
server_name www.test.com;

location /
{
proxy_pass http://www.81145.com/;
}

 

然后在 :Nginx.conf 配置文件里 http块里添加:

include       www.test.com.conf;

 

重启Nginx服务器就可以实现。

分类:

技术点:

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-12-23
  • 2021-12-18
  • 2021-08-31
  • 2021-12-28
  • 2022-12-23
猜你喜欢
  • 2023-03-20
  • 2021-11-23
  • 2022-12-23
  • 2023-03-19
  • 2021-12-18
  • 2022-01-11
  • 2022-12-23
相关资源
相似解决方案