xampp, win, apache port establishment issue

Problems with the Windows version of XAMPP, questions, comments, and anything related.

xampp, win, apache port establishment issue

Postby cball0 » 28. October 2008 05:00

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?
cball0
 
Posts: 1
Joined: 28. October 2008 04:20

Postby Wiedmann » 28. October 2008 09:48

If "222.73.161.42" is the IP of a NAT router, you must also make port-mappings and configure the firewall for port 77.

(BTW: Don't use ports < 1024 for your own purpose.)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 113 guests