apache - 如何更正 Apache2 Ubuntu 默认页面显示代替 Gitlab

标签 apache configuration installation gitlab default

我正在尝试让 Gitlab 在我已经运行 Apache2 的 Ubuntu 服务器上运行。

我首先根据 https://about.gitlab.com/installation/#ubuntu?version=ce 安装了它, 然后我按照这些指示 https://ryansechrest.com/2015/08/use-apache-instead-of-built-in-nginx-in-gitlab-ce/但是我得到的不是 Gitlab 设置页面,而是 Apache2 默认页面。

URL 看起来已正确重定向。但是,当我查看 DocumentRoot 目录 /opt/gitlab/embedded/service/gitlab-rails/public 时,我没有看到索引页。我可以从 URL 访问 deploy.html 页面。我猜它没有完全安装。但我不确定。

有什么建议吗?

最佳答案

确保在安装 Gitlab 时您的主机上没有安装 Apache 或 Nginx。

查看是否安装了包:

dpkg -l | grep -e apache -e nginx

如果不是这个原因,你能显示你的/etc/gitlab/gitlab.rb 文件的内容吗? 您还可以使用此命令检查一切是否正在运行吗:

gitlab-ctl 状态

如果没有,你可以检查你的 gitlab 日志文件在/var/log/gitlab/中是否有错误

关于apache - 如何更正 Apache2 Ubuntu 默认页面显示代替 Gitlab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47080586/

相关文章:

apache-flex - 如何检测和调用用户在特定 AIR 应用程序上本地安装的 AIR 运行时?

apache - Tomcat 8 : Unable to overcome common error: The CATALINA_HOME environment variable is not defined correctly

linux 上的 php apache

c# - 如何识别缺少的 ConfigurationElement?

installation - 尝试执行已安装的软件时, "All users"模式下的 Inno Setup 安装仍然需要非管理员用户的管理员权限

windows - 在 Windows XP 上安装 watir-webdriver 时出现 `marshal data too short` 错误消息

python - 为 HTML 网页运行 python 脚本

移动服务器后出现 PHP 语法错误

php - Silex Framework 中具有动态替换的 YAML 配置文件

php - 我将 codeigniter web 应用程序移至测试服务器,但现在我没有将任何数据插入到我的表中?