帶有非捆綁式網頁伺服器的 gitlab

帶有非捆綁式網頁伺服器的 gitlab

安裝後顯示狐狸圖示。

已關注亞搏體育appGitLab文檔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的預設頁面。

禁用預設頁面成功了!

相關內容