disable redirect SSL to default / primary website
Hello guys
Scenario
edit file hosts of a pc for make that anyname.com resolve to the server IP
if the anyname.com are a server account but without SSL user will be redirect to primary/main website
There is anyway to change this? for example to give an error? or redirect to not found account?
Thanks
-
Hey there! There sure is - you can use the following guides to set up the default pages that Apache serves:
Hello Thanks for reply I've check the second link, that is what we need. But seems the only solutions is to define a primary website, that is not really fine. By this way i give traffic to other customer, and I could see content with not correct domain name on browser. One solution may be to create a dedicate account, with error page, and elevate this to "not found" .. But, cPanel/WHM don't already have any integrated solutions for this?? There isn't an option where if a domain is not present on server this give error (as happen for http) ?? Thanks0 -
The best way would be to create a site on the server to handle this. This is a limitation of Apache as it will always try and serve the closest match to whatever request it receives, so setting up a site to be the default is the best way to handle this. 0
Please sign in to leave a comment.
Comments
3 comments