VirtualHosts in WAMP 3.3.2
Posted by: caydee (---.customer.vsm.sh)
Date: December 17, 2023 09:05PM

Hello Otomatik,

I upgraded to WAMP 332 . Works like a charm, but was a little bit annoyed for you cannot make any additional VirtualHosts, because it uses the Port 80 as a stringent default. It shows an error and red remarks for any other Virtual Hosts besides localhost. Finally, made a change and it worked, but I am not sure if it is correct and meant to be only that way.
One can of course, open a couple more ports and even more by assigning them 127.x.y.z IP Numbers, but it is a weary task bothering to do that, especially if you have very many of these.
It was written like this and I changed it as follows.:


<VirtualHost   _default_*:80> And I changed it to:
<VirtualHost     *:80> Now I can add multiple VirtualHosts

Caydee

IN ALL THINGS BE MEN
Windows 10 x64 | WAMP 3.3.2 - x64 | Apache 2.4.58 | MySQL 8.2.0 | PHP 8.2.13 | PHPMyAdmin 5.2.0

Options: ReplyQuote
Re: VirtualHosts in WAMP 3.3.2
Posted by: Otomatic (Moderator)
Date: December 18, 2023 08:45AM

Hi,

By default, it is:
<VirtualHost _default_:80>
and not <VirtualHost _default_*:80>

And that doesn't prevent you from adding VirtualHosts with an IP. I have several, for example
<VirtualHost 127.0.0.45:80>

> It shows an error and red remarks
In cases such as this, it would be good to give the exact text of the error! I'm not immune to one.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.