Gitlab 配置 non-bundled web-server 问题 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
nullcoder
V2EX    Linux

Gitlab 配置 non-bundled web-server 问题

  •  
  •   nullcoder 2017-09-28 15:58:09 +08:00 2190 次点击
    这是一个创建于 3001 天前的主题,其中的信息可能已经有所发展或是发生改变。

    安装正常,终端里看到了 gitlab 狐狸头像,提示需要 reconfigure external-link

    基本上是按照这个来的 git lab 的 nginx 配置文档

    参考这个 改的一些 /etc/gitlab/gitlab.rb 里面的配置 另外在 /etc/apache2/sites-available 加了 gitlab-apache24.conf conf 文件也是 gitlab 下的,conf 里面就改了域名

    配好 conf 文件 reload 报错

    systemctl status apache2.service //此处省略若干行 apache2[25437]: AH00112: Warning: DocumentRoot [/home/git/gitlab/public] does not exist apache2[25437]: AH00557: apache2: apr_sockaddr_info_get() failed for ecs1 apache2[25437]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message apache2[25437]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/logs/' for error log of vhost defined at /etc/apache2/sites-enabled/gitlab-apache24.conf:12 apache2[25437]: AH00014: Configuration check failed apache2[25437]: Action 'configtest' failed. apache2[25437]: The Apache error log may have more information. systemd[1]: apache2.service: Control process exited, code=exited status=1 

    看了确实没有 /home/git/gitlab/public ,也没有 /var/log/httpd/logs/ ,是本机原来的 apache2 有问题吗?

    参考这个网址

    修改了 /etc/hosts ,在 127.0.0.1 localhosts 后面加了 终端里 @提示符后面显示的主机名,也没有什么变化

    域名能打开,能 ping 通,但显示的是 apache 的默认页面

    apache2.4 的版本,系统 ubuntu 16.04 LTS,gitlab-ce 用的清华镜像

    3 条回复    2017-09-30 11:17:10 +08:00
    nullcoder
        1
    nullcoder  
    OP
       2017-09-28 17:36:22 +08:00
    mkdir -p 创建了 _/home/git/gitlab/public_ _/var/log/httpd/logs/_
    Apache reload 没有报错了,但是浏览器打开 external-link 的还是 Apache 的默认页面
    kappa
        2
    kappa  
       2017-09-28 18:34:20 +08:00
    如果用 CE 版可以试试 https://github.com/sameersbn/docker-gitlab/ docker 方案,比较省心点。。
    nullcoder
        3
    nullcoder  
    OP
       2017-09-30 11:17:10 +08:00
    a2dissite default
    禁用默认页之后正常了
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1088 人线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 23:19 PVG 07:19 LAX 15:19 JFK 18:19
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86