testopsfeng
server {
    listen       80;
    server_name *.youdomain.com;
    if ($http_host ~* "^(.*?)\.youdomain\.com$") {
           set $domain $1;
    }
     location / {
        if ($domain ~* "jenkins") {  #域名中有jenkins,转发到8080端口
            proxy_pass http://0.0.0.0:8080;      
        }
        # 默认情况
        root   /var/www/html;
        index  index.html index.htm;
     }
}

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2021-12-31
  • 2021-11-23
  • 2021-12-11
  • 2022-12-23
  • 2022-01-30
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-08-04
相关资源
相似解决方案