Ich möchte gitlab auf meinem Centos 7 Server installieren. Aber ich muss den Ordner gitlab und apache trennen. Das ist, wenn ich localhost eintippe, sollte die Indexseite im HTML-Ordner erhalten und wenn ich git.example.com eintippe, sollte die gitlab Seite erhalten. Gibt es eine Möglichkeit, dies zu tun? Bitte hilf mir, irgendjemand.Wie installiere ich gitlab separat auf centos7?
0
A
Antwort
0
vielleicht nicht die beste Lösung, aber was ich tat, war ein "Front NGINX" Proxy meine 3-Dienste einzustellen: Apache (www), Redmine (bei Fragen) und Gitlab (bei git)
Dann habe ich meinen Apache so konfiguriert, dass er auf einen anderen Port hört (sagen wir 808). Und mein GitLab hört auf seinen eigenen Port (sprich 809).
Und fügte ich so etwas wie dies eine Serverkonfiguration in NGINX mit einem Proxypass mit:
server {
listen 80;
server_name www.example.com;
location/{
access_log off;
proxy_pass http://localhost:808;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
und eine für die Gitlab als:
server {
listen 80;
server_name git.example.com;
location/{
access_log off;
proxy_pass http://localhost:809;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 502 /502.html;
location = /502.html {
root /opt/gitlab/error_pages;
}
}
+0
Sie können auch mod_proxy mit ProxyPass/ProxyPassReverse auf Ihrem Apache betrachten – menssana
Verwandte Themen
- 1. Wie installiere ich Gitlab mit Virtualbox und Vagrant auf Ubuntu?
- 2. gitlab-ci docker executor | Wie installiere ich mysql service?
- 3. Wie installiere ich eine bestimmte Version von Docker auf Centos?
- 4. wie boost-devel installieren 1.59 in CentOS7
- 5. Wie installiere ich Cron
- 6. Wie installiere ich XamlPad?
- 7. Wie installiere ich DJGPP
- 8. Wie installiere ich MSVCR90D.DLL
- 9. Wie installiere ich iPython auf Snow Leopard?
- 10. Wie installiere ich Matplotlib auf Elastic Beanstalk
- 11. Wie installiere ich roboterframework RIDE auf Windows ???
- 12. Wie installiere ich Pytables 3.2 auf Anaconda?
- 13. Wie installiere ich PySide auf CentOS?
- 14. Wie installiere ich gprof auf OS X
- 15. Wie installiere ich Haskell auf Mac OS
- 16. Wie installiere ich J2ME auf Nokia 1200?
- 17. Wie installiere ich M2Crypto auf Ubuntu?
- 18. Wie installiere ich Pandas auf Windows (32bit)
- 19. Wie installiere ich ImageHash auf Ubuntu 14.0.4?
- 20. Wie installiere ich Pip auf Arch Linux?
- 21. Wie installiere ich Git Repository auf Bluehost
- 22. Wie installiere ich pycairo auf osx?
- 23. Wie installiere ich Hadoop auf Ubuntu
- 24. Wie installiere ich PHP auf Terminal
- 25. Wie installiere ich LESS auf Ubuntu 12.04?
- 26. Wie installiere ich Titanium Studio auf Ubuntu?
- 27. Wie installiere ich libgit2 auf Alipne Linux
- 28. Wie installiere ich Filezilla auf CentOS?
- 29. Wie installiere ich GRADLE auf WINDOWS 10
- 30. Wie installiere ich apktool auf Win 10?
Ist das nicht Omnibus Gitlab mit NGINX läuft? (meins ist ...) – menssana