Hot answers tagged

1

Yes, that is exactly what you can do. You make an A record for gitlab.a.com pointing to the same IP address as a.com in your DNS. You make a virtual host for gitlab.a.com in your a.com Apache server, which contains the reverse proxy directives sending all traffic for this domain to your CentOS 7 box.


1

Just implement a default server. Here's mine server { listen 80 default_server; server_name _; return 302 https://www.example.com; } You can do whatever action you want.


1

I would setup apache on port 80 and add a VirtualHost for gitlab.mydomain.com . Then setup that VirtualHost with mod_proxy to http://127.0.0.1:8080 . Finally, setup gitlab to listen on 127.0.0.1. Found an example for you on GitHub: https://gist.github.com/radmen/3689615



Only top voted, non community-wiki answers of a minimum length are eligible