Hi,
You need to modify all VirtualHost in httpd-vhosts.conf like mine that is on a NAS
<VirtualHost *:80>
ServerName photos-famille
DocumentRoot "//DS218/home/sites/photos-ottello"
<Directory "//DS218/home/sites/photos-ottello/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride all
Require local
</Directory>
</VirtualHost>
But there will be an error in apache_error.log
AH00526: Syntax error on line 151 of E:/wamp64/bin/apache/apache2.4.52a/conf/extra/httpd-vhosts.conf:
DocumentRoot must be a directory
Why?
The wampapache64 service on computer must be launched with the admin account and not the local system account.
So, leave Wampserver, services manager, wampapache64 service, properties, connection tab:
-This account radio button
- Browse, Advanced, Search, validate the administrator account (in this case dominique DOMI) - Attention not the account marked Administrator).
- OK twice
- Fill in the Password and Confirm Password fields correctly
- Apply, then OK
Note: This is a translation of the terms I see on my French Windows. They may not be those terms on an English Windows.
Start Wampserver
To check that the wampapache64 service is no longer LocalSystem, Right-click -> Tools -> Check Service Status and you should see that it is no longer LocalSystem for Apache:
State of services:
The service 'wampapache64' is started
Service Session : .\dominique
The service 'wampmysqld64' is started
Service Session : LocalSystem
The service 'wampmariadb64' is started
Service Session : LocalSystem
all services are started - it is OK
all services BINARY_PATH_NAME are OK
For several sites in the same folder, it is possible to define an Apache variable at the beginning of the httpd-vhosts.conf file, for example
Define NETSITE "//DS218/home/sites/"
In your case
Define NETSITE "//BBOXII/Website/"
Then modify httpd-vhosts.conf with
<VirtualHost *:80>
ServerName photos-famille
DocumentRoot "${NETSITE}photos-ottello"
<Directory "${NETSITE}photos-ottello/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride all
Require local
</Directory>
</VirtualHost>
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons