apache redirect not working

Gitlab Server Redirection For 

Gitlab Server Redirection For, I have already configured the SSL certificate in GitLab. If you’re not able to install you may check it here. Install the SSL Certificate in Gitlab. you can configure apache redirection rules for HTTP to HTTPS and permanent redirect but sometimes it will not work. you can also disable https redirect using apache.

We can easily send all the requests on the GitLab server from HTTP to https. you don’t need to apply any redirection rules for this on the apache server.

Check Out: Install Gitlab

You can also use a free Letsencrypt certificate for your GitLab server and easy to configure and you would be needed a domain. 

Note: You must have installed the SSL certificate.

Check Out: Check Logs of Container Running In Docker On CentOS 7

Add Port in firewall

firewall-cmd –permanent –add-port=443/tcp
firewall-cmd –reload

remote http basic access denied gitlab

Go to the GitLab file gitlab https authentication

vim /etc/gitlab/gitlab.rb

Check Out: How To Reset Gitlab Root Password On CentOS 7

Look for External_url, the default will be pointed to http://ip/hostname

Changed to https

apache redirection rules

And after changing the URL to https, run the below commands,

gitlab-ctl reconfigure

That’s it apache redirection rules apache redirect not working redirect http to https apache redirect permanent disable https apache


Please enter your comment!
Please enter your name here