Article 6CA0E Disable Apache default ssl virtual host

Disable Apache default ssl virtual host

by
JohnDoe36
from LinuxQuestions.org on (#6CA0E)
Hey!

I have a CentOS 8 server running apache to serve some simple websites. I installed the certbot package to manage the ssl certificates, i ran the certbot utilitary and noticed a strange entry when i ran the "httpd -S" command, something like this:

VirtualHost Configuration:
*:80 my.website.com (/etc/httpd/conf.d/mywebsite.conf:1)
*:443 is a NameVirtualHost
default server my.website.com (/etc/httpd/conf.d/mywebsite-le-ssl.conf:2)
port 443 namevhost my.website.com (/etc/httpd/conf.d/mywebsite-le-ssl.conf:2)
port 443 namevhost server.in-my.network (/etc/httpd/conf.d/ssl.conf:40)

That server.in-my.network seems to be the default virtual host from the ssl.conf, but i didnt configured it. Is there a way to remove that entry? The problem is that when i set a manual hosts entry on my local machine pointing that fqdn server.in-my.network to the remote machine ip, i can access the server www directory, i only want to server the contents of the defined mywebsite .conf files.

Thanks in advance :)
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments