gitlab 与非捆绑网络服务器

gitlab 与非捆绑网络服务器

安装后显示狐狸图标。仅建议重新配置外部链接。

已关注GitLab 文档using-a-non-bundled-web-server

已关注这个答案改变部分/etc/gitlab/gitlab.rb 已添加的gitlab-apache24.confgitlab.com/etc/apache2/sites-available

在conf中更改域名后,重新加载apache2,出现以下错误

systemctl status apache2.service
//folded some lines
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默认页面。

apache版本 2.4,系统ubuntu 16.04 LTSgitlab-ce安装自apt-install

更新:mkdir -p /var/log/httpd/logs/ mkdir -p /home/git/gitlab/public状态由红色变成白色 后reload,但是域名上显示的页面仍然是Apache的默认页面。

已禁用默认页面并且成功了!

相关内容