Apache WampServer - Getting "It works!" only with https

eg flag

I am using WampServer 3.2.3 (Apache 2.4.46) and I added an SSL certificate on a virtual host, but when I go to this virtual host's whebsite with http, it displays the configured page. The problem is that when I go with https, the website shows the default page "It works!".

I searched for "htdocs" (the path where the file is stored) in httpd.conf and httpd-vhosts.conf, but I don't have any result.

Can someone help me ?

cn flag
It sounds like you see the default virtualhost and need to create a SSL VirtualHost in addition to the plain http VirtualHost that is configured for your content.
Nikita Kipriyanov avatar
za flag
We consider this setup unsuitable as business practice (so this is offtopic). Also it was already answered, why this is bad. If you are setting up a developer/test station, better ask on webmasters.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.