Hi guys,
First of all, I would like to thank you for WampServer. I teach web development at a university, and WampServer is a blessing for me and my students when it comes to rapidly understanding the Apache + PHP + MariaDB ecosystem. Last week, the new semester started, and as always, we created a new application in PHP. The problem is that this year, I decided that we would not create vhosts via the config file but via the GUI provided by WampServer (http://forum.wampserver.com/read.php?2,146746). Everything was working fine until one of my students told me that he could no longer access [localhost] and was getting a 404 Not Found error. The vhost we added still works fine. I tried to fix the issue, but based on my understanding, everything looks correct.
Here is my httpd-vhosts.conf:
# Virtual Hosts
#
<VirtualHost _default_:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName diff-mania-be.local
DocumentRoot "c:/wamp64/www/diff-mania-be/public"
<Directory "c:/wamp64/www/diff-mania-be/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
Here is my hosts file on Windows 11:
#
127.0.0.1 localhost
::1 localhost
127.0.0.1 diff-mania-be.local
::1 diff-mania-be.local
# Added by Docker Desktop
192.168.0.102 host.docker.internal
192.168.0.102 gateway.docker.internal
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
I also used the Apache Tool shipped with WampServer to check the active vhosts, and it correctly displayed two vhosts: localhost and diff-mania-be.local. My current version of WampServer is 3.3.5. Can anybody give me some advice on how to get the localhost domain working again?
First of all, I would like to thank you for WampServer. I teach web development at a university, and WampServer is a blessing for me and my students when it comes to rapidly understanding the Apache + PHP + MariaDB ecosystem. Last week, the new semester started, and as always, we created a new application in PHP. The problem is that this year, I decided that we would not create vhosts via the config file but via the GUI provided by WampServer (http://forum.wampserver.com/read.php?2,146746). Everything was working fine until one of my students told me that he could no longer access [localhost] and was getting a 404 Not Found error. The vhost we added still works fine. I tried to fix the issue, but based on my understanding, everything looks correct.
Here is my httpd-vhosts.conf:
# Virtual Hosts
#
<VirtualHost _default_:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName diff-mania-be.local
DocumentRoot "c:/wamp64/www/diff-mania-be/public"
<Directory "c:/wamp64/www/diff-mania-be/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
Here is my hosts file on Windows 11:
#
127.0.0.1 localhost
::1 localhost
127.0.0.1 diff-mania-be.local
::1 diff-mania-be.local
# Added by Docker Desktop
192.168.0.102 host.docker.internal
192.168.0.102 gateway.docker.internal
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
I also used the Apache Tool shipped with WampServer to check the active vhosts, and it correctly displayed two vhosts: localhost and diff-mania-be.local. My current version of WampServer is 3.3.5. Can anybody give me some advice on how to get the localhost domain working again?