

If you need your site to be accessible through both secure (https) and non-secure (http) connections, you will need a virtual host for each type of connection. Where " /etc/httpd/" is the base directory for your Apache installation. Grep -i -r "SSLCertificateFile" /etc/httpd/ One way to locate the SSL Configuration on Linux distributions is to search using grep, as shown in the example below. The configuration files may be under a directory like /etc/httpd/vhosts.d/, /etc/httpd/sites/, or in a file called nf. Often, the SSL Certificate configuration is located in a block in a different configuration file. For a comprehensive listing of default installation layouts for Apache HTTPD on various operating systems and distributions, see Httpd Wiki - DistrosDefaultLayout. Possible locations for this file include /etc/httpd/ or /etc/apache2/. The location and name of the config file can vary from server to server - especially if you use a special interface to manage your server configuration.Īpache's main configuration file is typically named nf or nf.
