Вместо того, что бы ходить к Bamboo по адресу вида http://bamboo.domain.local:8085 — можно добавить NGINX, который будет проксировать запросы с порта 80 на порт 8085 Bamboo.
Предполагается, что Bamboo уже установлен и настроен. Тут речь только о NGINX.
Устанавливаем NGINX:
# yum install nginx
Редактируем /etc/nginx/nginx.conf
и добавляем описание хоста:
server { server_name bamboo.domain.local; listen 80; access_log /var/log/nginx/bamboo.log combined; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8085; proxy_set_header Authorization ""; } }
Проверяем конфиг:
# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
Запускаем NGINX:
# service nginx start Starting nginx: [ OK ]
Добавляем в автозапуск:
# chkconfig nginx on
# chkconfig --list nginx nginx 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Проверяем:
Если NGINX в логе пишет ошибку вида:
2015/03/08 14:00:13 [crit] 2075#0: *1 connect() to 127.0.0.1:8085 failed (13: Permission denied) while connecting to upstream, client: 192.168.1.146, server: bamboo.domain.local, request: «GET / HTTP/1.1», upstream: «http://127.0.0.1:8085/», host: «bamboo.domain.local»
Отключите SELinux или выполните:
# setsebool httpd_can_network_connect 1