These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for How to show SSL error message when going to non-existent https address on the new forum.
I have a few virtual servers added. If I go to one of them via https:// rather than get a SSL error page (which I get on Cpanel) it shows me an empty page, except for "Index of" and "Name Last modified Size Description "
Does anyone know why this is happening and how I can have just a page not found when someone goes to a https:// page.
For info, the error I would see on CPanel is: "SSL connection error. Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have."
I think its better to display this than imply there is a virtual server there with no files in it.
Thanks
You have a few options for doing this. Basically you have to catch connections to port 443. You can do this as a default error page for all https requests that can't find a page or for each individual virtual server.
To catch all, edit /etc/apache2/sites-enabled/000-default and add a section for (sideways v)VirtualHost yourIP:443(sideways v) with a DocumentRoot, ServerName, etc.
To catch 443 (HTTPS) connections by each virtual server, edit /etc/apache2/sites-enabled/virtualservername and do the same as above.
Restart apache.
I'm fairly new to using Virtualmin so this is the way I know how, I'm sure there is a way to set this up in Virtualmin.
p.s. excuse the (sideways v)'s, it kept thinking it was html and excluding it from the post.
www.ryanelders.com
thanks a lot will try that