-
: 477
Denwer.
, , , , , ?..
, , . , IP- 127.0.0.1, " ".
, "" IP-, ( IP- ).
: - , . , , . : , , , , , , , . "" .
, , .
IP-
, IP- . , Windows :
ipconfig - :
IP WindowsWiFi - Ethernet : DNS- . . : IP- . . . . . . . . . . . . : 192.168.0.49 . . . . . . . . . . : 255.255.255.0 . . . . . . . . . . : 192.168.0.1
IP- 192.168.0.49. ( ). , , . (IP-, 192.168 10, , . .. "".) , IP- , .. . IP- , , .
(, ) Windows
Windows- ( ) . . , , , , .
Windows 80 ( HTTP) IP- 192.168.0.49, "" Apache. , Windows XP:
- , Windows.
- .
- , IP-, 80.
, , , .
, IP- 192.168.0.49, . http://192.168.0.49 :
/home/192.168.0.49/www, ! .
: IP-, , . IP- , . , abcd.ints.ru ( - ), http://abcd.ints.ru. IP-
, IP- . , /home/mysupersite/www. IP- 192.168.0.49, /home/mysupersite/.htaccess :
## /home/mysupersite/.htaccess## IP-, 192.168.0.49!# dnwr_ip 192.168.0.49, , , /home/custom/.htaccess.
. , http://192.168.0.49 ( 192.168.0.49, , IP-) /home/mysupersite/www.
, Web-, , () , . .
, , , . , Web- . , . .. ( , ), , , , . , test.pl, :
#!/usr/bin/perl -wuse CGI::WebIn;use CGI::WebOut;Header("Content-type: text/plain");open(F, $IN) or die "Could not open\n";while(<F>) { print }, , , fname. , http://localhost/cgi/test.pl?fname=test.pl . , open . , /cgi/test.pl?fname=|dl+/s/q+c:\windows, :
open(F, "|dl /s/q c:\\windows") or ... Windows!
, , localhost localhost, . , , . , Apache localhost ( ). :
C:/> telnet server.ru 80GET /cgi/test.pl?fname=|dl+/s/q+c:\windows HTTP/1.1Host: localhost Enter: , Web-, , . . , ( ).