I'm a newbie at configuring servers and networks and I just recently installed Ubuntu Server on an old laptop to work on. The server currently has Jenkins, GitLab and Apache2 installed.
I can successfully log-in to GitLab by going to server.lan
- and it redirects me to server.lan/users/sign_in
- but to access Jenkins I have to type server.lan:8081
. I had to change the port to avoid conflicts with GitLab.
So is there a way that I can access these services by typing server.lan/jenkins
or server.lan/gitlab
and make them work from there? All the answers I can find is about port and IP redirection and most of them have no answers at all.
My /etc/hosts file:
127.0.0.1 localhost 127.0.1.1 COMPAQ.lan COMPAQ # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 192.168.1.72 server.lan
Thanks in advance!
Just checked this article on GitLab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#using-a-non-bundled-web-server
but with no luck
foo.bar/gitlab
instead offoo.bar/
. You'd be better off using different domains for both:git.server.lan
,ci.server.lan
, but Gitlab already has a CI, so you probably don't need Jenkins at all.foo.bar/gitlab
but it's still listening on the port 8080. If I go tofoo.bar/jenkins
I get a 404 from gitlab, so I'm gessing I need to use something to filter the ports. I'll have to investigate more on GitLab's CI. Thanks for the tip! :)