LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-19-2014, 07:05 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Rep: Reputation: Disabled
Setting up httpd.conf


I am installing gitlab per https://github.com/gitlabhq/gitlab-r.../centos#apache

They instruct to replace /etc/httpd/conf.d/ssl.conf with this file: https://gitlab.com/gitlab-org/gitlab...itlab-ssl.conf

I am starting to think it might not be a good idea, and wonder if I should instead edit the existing httpd.conf and ssl.conf files. Note my desire is to have both gitlab running on my server as well as other sites. My reasons are:
  1. /etc/httpd/conf/httpd.conf has "Include conf.d/*.conf" which is located before the default webserver section. It appears that this makes the virtual server specified in gitlab.conf become the default server.
  2. There is a bunch of other stuff in the original ssl.conf. Is any of these still necessary?

Any thoughts?
 
Old 03-20-2014, 04:02 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,166

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Back up the whole of /etc/httpd and then try both options and see which works best for you.
 
Old 03-20-2014, 06:55 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Original Poster
Rep: Reputation: Disabled
Thanks TenTenths,

Am I right in thinking that the creating of a virtual server in /etc/httpd/conf.d will superseed the default server created in /etc/httpd/conf/httpd.conf?
 
Old 03-20-2014, 10:22 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,166

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
It's been my experience that the first defined server becomes the default, so if you have your include conf.d "above" your definition in httpd.conf then the first config read from conf.d will become the default.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure /etc/httpd/conf/httpd.conf file to run a html on web arunava.saha Red Hat 2 05-30-2012 04:28 AM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 12:26 PM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 08:24 AM
Reg Setting Proxy in httpd.conf chnlinux Linux - Newbie 0 08-30-2007 02:42 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration