Hi, thank you for help!
Now I can access the first default virtualhost and the second one from host machine.
But the second vhost can be accessed as a sub-directory only (http://192.168.56.120/noble/), as it's stored in c:/etc/wamp/www/noble. But the third vhost, I don't know how to find it from the url! It's stored in C:/www/smile-net/.
Also the Aliases :
phpmyadmin
phpsysinfo
sqlbuddy
webgrind
They are forbidened too.
In the guest OS, the second vhost can be accessed as [
noble.com], or localhost/noble/, and
the third one can be accessed as [
smile.net]
next is part of my modified httpd-vhost.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "c:/etc/wamp/www"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
<Directory "c:/etc/wamp/www">
AllowOverride All
Require local
Require ip 192.168.56
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
webmaster@noble.comDocumentRoot "c:/etc/wamp/www/noble"
ServerName noble.com
ServerAlias www.noble.com
ErrorLog "logs/noble-error.log"
CustomLog "logs/noble-access.log" common
<Directory "c:/etc/wamp/www/noble">
AllowOverride All
Require local
#Require all granted
Require ip 192.168.56
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
webmaster@smile.netDocumentRoot C:/www/smile-net
ServerName smile.net
ServerAlias www.smile.net
<Directory "c:/www/smile-net">
Options FollowSymlinks
AllowOverride All
#Require all granted
Require local
Require ip 192.168.56
</Directory>
php_flag display_errors On
php_flag log_errors On
# php_value max_upload_size 40M
php_value max_execution_time 120
php_value error_log "c:/www/smile-net/logs/error.log"
</VirtualHost>
I had modified only 2 conf files after the installation, the 'httpd.conf' that uncomented the vhost line, and the above parts in 'httpd-vhost.conf'.
Hope I have offered enough infos.
thanks