服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

无法使用Apache和Tomcat在端口80上运行GitLab

我使用Omnibus安装程序安装了GitLab。 目前它正在使用运行在端口81上的Nginx(与GitLab捆绑在一起)正常工作。我从端口80更改为端口81,因为我的Apache运行在端口80上。我还安装了Tomcat并运行在端口8080上,所以我更改了独angular兽端口到8081.所有这些工作正常。 以下是我更改的设置: /etc/gitlab/gitlab.rb # https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#configuring-the-external-url-for-gitlab external_url 'http://mysite.example.net:81' #https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#tcp-ports-for-gitlab-services-are-already-taken unicorn['port'] = 8081 #https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#storing-git-data-in-an-alternative-directory git_data_dir "/mnt/tank/gitlab" /var/opt/gitlab/gitlab-rails/etc/gitlab.yml production: &base # # 1. GitLab app settings # ========================== ## GitLab settings gitlab: ## Web server settings (note: host is the FQDN, do not include http://) host: mysite.example.net port: 81 https: false 不幸的是,我需要GitLab在80端口上运行。我尝试了几个Apache虚拟主机configuration。 我得到的唯一成功是我可以键入URL http://mysite.example.com/gitlab并获得一个404错误,但我看到该URL更改为http://mysite.example.com/users/sign_in 。 redirect导致gitlab被删除,但如果我把它放回来获取URL http://mysite.example.com/gitlab/users/sign_in我可以看到GitLablogin页面,虽然它都被抬起,因为没有的图像是正确的。 […]