![]() ![]() If you have any questions or issues, leave a comment and I’ll reply when I can. I hope this tutorial helped you get GitLab up and running with Apache. It’s a great starting point and as tons of answers. If there are other things you’re trying to figure out, I highly suggest GitLab’s README. Note that Nginx should not be listed anymore. Since we turned GitLab off earlier, let’s boot it back up. service httpd reload Start GitLab services Restart or start Apache once the virtual host file is in place. Note that your version of Apache would need to be 2.2.18 or later- NoDecode didn’t exist before that. I turned AllowEncodedSlashes off because I couldn’t find any URLs in GitLab that needed this, however, if you have issues with certain URLs not loading, try to set that directive to NoDecode. ĭocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public Update to the domain you were using for GitLab. $ gitlab-ctl reconfigure Add virtual host for GitLab to ApacheĬreate a new virtual host file for GitLab with the following directives (based on a GitLab recipe). This will parse your updated GitLab configuration file and disable Nginx. In the next section, “GitLab Nginx,” uncomment the first line and set it to false. Uncomment the web server username and group settings, and set both to Apache. ![]() You can jump there by searching for “Web”: hit the forward slash on your keyboard ( /), type in Web and hit ENTER. Scroll all the way down to the “GitLab Web Server” header. If you’re using GitLab out of the box, your GitLab configuration file should be located in /etc/gitlab. Ok: down: unicorn: 0s, normally up Disable built-in Nginx This will shutdown GitLab while we work on it. What I really wanted to do is disable the built-in Nginx server and just use my self-managed Apache installation. Later, however, I wanted to setup additional sites on the server using Apache, but now port 80 was already bound to by GitLab’s built-in Nginx web server. Since I had nothing else on the server at that time, everything GitLab setup and configured was sufficient. I installed GitLab CE using the Omnibus package on a new CentOS 6 server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |