[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [users@httpd] ssl.conf and httpd.conf in Centos

IncludeOptional will include any files if present, based on the pattern. If no file can be included, it won't cause issues.

Further, you don't need to use separate files for everything. You can use a single monolithic file for everything, if you prefer that approach.

Running apachectl -V will show the first read config file. You can take it from there. 

On Thu, Sep 6, 2018 at 2:02 PM Mahmood Naderan <nt_mahmood@xxxxxxxxx.invalid> wrote:
In Centos with the name of httpd, I see two IncludeOptional statements in /var/etc/httpd/conf/httpd.conf

# grep -r IncludeOptional /etc/httpd/
/etc/httpd/conf/httpd.conf:IncludeOptional conf.d/*.conf
/etc/httpd/conf/httpd.conf:IncludeOptional sites-enabled/*.conf

I don't see such statements in the ssl configuration.

# grep -r IncludeOptional /etc/httpd/conf.d/ssl.conf

I want to know should I manually add include statements for the ssl configuration file? Or ssl.conf inherits from httpd.conf?

Thanks for any feedback.