Hypothesized server, internal IP: 10.0.0.12, outside the net uses in common IP: 222.73.161.42
xampp-win32-1.6.8-installer.exe
C:\xampp\apache\conf\httpd.conf
C:\xampp\apache\conf\extra\httpd - vhosts.conf
Listen 80
NameVirtualHost *: 80
<VirtualHost *: 80>
DocumentRoot “E:/dragonballcn/jj/”
ServerName dragonball.cn
</VirtualHost>
Or
NameVirtualHost 10.0.0.12: 80
<VirtualHost 10.0.0.12: 80>
DocumentRoot “E:/dragonballcn/jj/”
ServerName dragonball.cn
</VirtualHost>
dragonball.cn can visit normally.
Listen 77
NameVirtualHost *: 77
<VirtualHost *: 77>
DocumentRoot “E:/dragonballcn/jj/”
ServerName dragonball.cn
</VirtualHost>
Or
NameVirtualHost 10.0.0.12: 77
<VirtualHost 10.0.0.12: 77>
DocumentRoot “E:/dragonballcn/jj/”
ServerName dragonball.cn
</VirtualHost>
dragonball.cn:77 cannot be visited, showing:
Cannot find the server
Cannot find the server or DNS is wrong
Wrong page.
If I use IP 222.73.161.42, it'll be directly redirected to DocumentRoot “e:/” in httpd.conf.
Could anyone tell me how to make apache visit with other ports?