SSL not working with www or ServerAlias

There is an name:port overlap.
The same name is being used by two different config files.
Without seeing the files, I would guess that the simplest solution is to change the name use in the file:
/etc/httpd/conf.d/ssl.conf
to something that would never be used by you.
Like:
ServerName localserver
Some might suggest to simply remove the file, but sometimes there might exist settings within it that are needed.

Then restart the web server and you should be good to go.

4 Likes