GitLab 安装已遮挡 Apache 上的所有其他站点

GitLab 安装已遮挡 Apache 上的所有其他站点

我也使用 Apache 作为几个 Web 应用程序的反向代理,包括 HTTP 和 HTTPS,但在安装 GitLab 之后,它掩盖了所有这些应用程序,如果我去https://myapp.domain.com我总是被重定向到https://git.domain.com

apache 配置文件没有改变。如果我运行 lsof,我会得到:

user@server:/tmp$ sudo lsof -i :443
user@server:/tmp$ sudo lsof -i :80
COMMAND  PID       USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   4791       root    7u  IPv4 318350      0t0  TCP *:http (LISTEN)
nginx   4819 gitlab-www    7u  IPv4 318350      0t0  TCP *:http (LISTEN)
nginx   4820 gitlab-www    7u  IPv4 318350      0t0  TCP *:http (LISTEN)
nginx   4821 gitlab-www    7u  IPv4 318350      0t0  TCP *:http (LISTEN)
nginx   4822 gitlab-www    7u  IPv4 318350      0t0  TCP *:http (LISTEN)

Apache 已经消失了:

 systemctl status apache2.service
apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: inactive (dead) since Sat 2019-05-25 15:34:28 CEST; 27min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1171 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 1151 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)

May 25 15:34:28 neuron07ubtx apache2[1151]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
May 25 15:34:28 neuron07ubtx apache2[1151]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
May 25 15:34:28 neuron07ubtx apache2[1151]: no listening sockets available, shutting down
May 25 15:34:28 neuron07ubtx apache2[1151]: AH00015: Unable to open logs
May 25 15:34:28 neuron07ubtx apache2[1151]: Action 'start' failed.
May 25 15:34:28 neuron07ubtx apache2[1151]: The Apache error log may have more information.
May 25 15:34:28 neuron07ubtx apache2[1151]:  *
May 25 15:34:28 neuron07ubtx apache2[1171]:  * Stopping Apache httpd web server apache2
May 25 15:34:28 neuron07ubtx apache2[1171]:  *
May 25 15:34:28 neuron07ubtx systemd[1]: Started LSB: Apache2 web server.

但是我可以在哪里更改 NGINX 应该监听的端口?我尝试在 gitlab.rb 中查看它:

 nginx['listen_port'] = 30080
 nginx['listen_https'] = 30443

但没有效果

相关内容