Home > OS >  how to find ssl.conf file in apache
how to find ssl.conf file in apache

Time:02-14

I am trying to install self signed ssl on IP address. I have apache in centos7. I have mod_ssl installed. I have been able to create self signed certificate with openssl req. Now I need to add this certificate to virtual hosts. I found two different files in tutorials for this purpose. etc/apache2/sites-available/default-ssl.conf and second option is etc/httpd/conf.d/ssl.conf. But I could find apache2 folder in etc but not sites-availabe and no httpd in etc. Where do I find the relevant file to edit virtual hosts? Thank you.

CodePudding user response:

you can just create the folder sites-available if you want inside of the Apache folder. The important thing is to check the Main Apache Config file and make sure that it is loading up the default-ssl.conf file. Usually its done by putting an Include /*. That would load up everything in that folder.

CodePudding user response:

Config files for Apache under Centos should be at /etc/httpd/ instead of /etc/apache/

  • Related