nginx 反向代理Jenkins

进入nginx 配置文件 cd /root/nginx/conf   找到nginx.conf

修改server块内容:

    server {
        listen       80;
        server_name  XXX(ip:10.25.1.12或者域名);

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location /jenkins {
            #root   html;
            #index  index.html index.htm index.php;
            proxy_pass XXXXXX(Jenkins的访问地址http://10.25.1.12:8080/jenkins;
        }

反向代理成功后,可以使用http://10.25.1.12/jenkins

猜你喜欢

转载自www.cnblogs.com/tangqiu/p/9812149.html
今日推荐