Hi,
You have manually changed the port dedicated to the http protocol, port 80, to port 8081 in your VirtualHost, but did you also tell Apache to listen on port 8081 in addition to port 80?
No, you didn't, so how do you want to access this Virtualhost on port 8081?
With Wampserver, you should not add "ListenPort" by hand directly in the httpd.conf file or httpd-vhosts.conf. You MUST use the Tools menu item "Add a listen port to Apache".
This is because additional listening ports are managed by Apache variables like this :
Define APACHE24 Apache2.4
Define VERSION_APACHE 2.4.37
Define INSTALL_DIR j:/wamp
Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}
Define SRVROOT ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}
Define MYPORT8082 8082
Define MYPORT8081 8081
then
#Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80
Listen 0.0.0.0:${MYPORT8082}
Listen [::0]:${MYPORT8082}
Listen 0.0.0.0:${MYPORT8081}
Similarly for VirtualHost, you must create them after adding additional listening ports to get, for example, a definition of VirtualHost like this:
#
<VirtualHost *:${MYPORT8081}>
ServerName mysite
DocumentRoot "j:/wamp/www/phpbb3"
<Directory "j:/wamp/www/phpbb3/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
In the alternative, why do you want to use port 8081?
If you cannot use port 80, the replacement port is 8080 and this MUST be done by the tools integrated in Wampserver:
Right-click -> Tools -> Use a port other than 80
In this way, the replacements of port 80 by 8080 are done wherever it is necessary, which you cannot do if you do it manually, as you do not know where it needs to be changed.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons