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 · 1745 次点击
    这是一个创建于 2395 天前的主题,其中的信息可能已经有所发展或是发生改变。

    安装正常,终端里看到了 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   ·   我们的愿景   ·   实用小工具   ·   2571 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.