127.0.0.1 localhost ::1 localhost 127.0.0.1 projet01 ::1 projet01 127.0.0.1 projet02 ::1 projet02
127.0.0.1 localhost ::1 localhost 127.0.0.1 projet03 ::1 projet03
# Virtual Hosts # <VirtualHost *:80> ServerName localhost ServerAlias localhost DocumentRoot "${INSTALL_DIR}/www" <Directory "${INSTALL_DIR}/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost> # <VirtualHost *:80> ServerName projet01 DocumentRoot "${INSTALL_DIR}/www/projet01" <Directory "${INSTALL_DIR}/www/projet01/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Allow from 127.0.0.1 Allow from 10.0.0.0/8 Allow from 172.16.0.0/12 Allow from 192.168.0.0/16 Require all granted </Directory> </VirtualHost> # <VirtualHost *:80> ServerName projet02 DocumentRoot "${INSTALL_DIR}/www/projet02" <Directory "${INSTALL_DIR}/www/projet02/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Allow from 127.0.0.1 Allow from 10.0.0.0/8 Allow from 172.16.0.0/12 Allow from 192.168.0.0/16 Require all granted </Directory> </VirtualHost>
# Virtual Hosts # <VirtualHost *:80> ServerName localhost ServerAlias localhost DocumentRoot "${INSTALL_DIR}/www" <Directory "${INSTALL_DIR}/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost> # <VirtualHost *:80> ServerName projet01 DocumentRoot "${INSTALL_DIR}/www/projet01" <Directory "${INSTALL_DIR}/www/projet01/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require ip 192.168.0 Require local </Directory> </VirtualHost> # <VirtualHost *:80> ServerName projet02 DocumentRoot "${INSTALL_DIR}/www/projet02" <Directory "${INSTALL_DIR}/www/projet02/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require ip 192.168.0 Require local </Directory> </VirtualHost>
<VirtualHost 127.0.0.10:80> ServerName mesphotos DocumentRoot "g:/www/photos" <Directory "g:/www/photos/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost>Nota : L'option ajouter une IP locale existe dans la page Ajouter un VirtualHost
# 127.0.0.1 localhost ::1 localhost 127.0.0.11 projet01 ::1 projet01 127.0.0.12 projet02 ::1 projet02 127.0.0.13 testdunnouveauvirtualhost ::1 testdunnouveauvirtualhost
<VirtualHost *:80> ServerName photos-nas DocumentRoot "//DS218/home/sites/photos-otomatic" ServerAdmin webmaster@ottello.net <Directory "//DS218/home/sites/photos-otomatic/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride all Require local </Directory> </VirtualHost>
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