I am coming today because, as a developer, I feel like I must know how to configure such things, however, I am getting stuck and I am not sure to understand why.
I have 4 stuff let's say:
- An API (
www.api.example.com
) - A WebApp (
www.player.example.com
) - A Showcase website (
www.example.com
) - A GitLab (
www.gitlab.example.com
)
In order to realise that, I bought a virtual server from Obambu. I also bought a domain name from OVH.
But, the main issue is that, first, I can't redirect from www.api.example.com
to 192.0.2.89:1234
(my server ip : port), I searched but it seems that there is no option for that...
Then, what I did first is install GitLab and disable Apache2 (because I ain't sure to understand the point of it.. and because they're using the same port).
In order to access my gitlab, I typed https://www.gitlab.example.com
, but it works only in Safari, not in Chrome. I saw on the internet that it's because of SSL certification, but one more time, it doesn't work...
There was an error running gitlab-ctl reconfigure:
letsencrypt_certificate[gitlab.example.com] (letsencrypt::http_authorization line 3) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 20) had an error: RuntimeError: [gitlab.example.com] Validation failed for domain gitlab.PROJECT.com
Third, the thing I don't get as well is that, if you can't redirect to a certain port, do you need multiple server? Also, another point which is not clear to me is Apache2..Is it usefull for what I am trying to achieve? Because at the end, I don't want to call http://www.example.com:8079
for something and http://www.example.com:8083
for something else.. I really want to follow the 4 different sub domains I wrote above :/
Edit 1
Ok firstly, I would like to thank you for yours answers. Now, based on your answers/comments and some others answers/question, I feel like the best options would be:
www.example.com:8080
(showcase website)
www.example.com:8081
(gitlab)
www.example.com:8082
(api)
www.example.com:8083
(webapp)
Does it makes sense?