.


:




:

































 

 

 

 





WEB- Apache WEB-. . .


. Servers WebSiteVirt, : site1 site2. ( ).

: log - log- public - . public .

.

httpd.conf

httpd.conf ( ). # Include:

#Virtual hosts

Include conf/extra/httpd-vhosts.conf

, httpd-vhosts.conf, . extra, conf.

httpd-vhosts.conf

IP- . , , *, . , :

NameVirtualHost *:80
<VirtualHost *:80>
# 1
</VirtualHost>

<VirtualHost *:80>
# 2
</VirtualHost>

<VirtualHost *:80>
# n
</VirtualHost>

<VirtualHost>, :

<VirtualHost *:80>

ServerName mysite1

ServerAlias site1.ru

DocumentRoot "C:/Servers/WebSiteVirt/site1/public"

ErrorLog "C:/Servers/WebSiteVirt/site1/log/error.log"

CustomLog "C:/Servers/WebSiteVirt/site1/log/access.log" combined

<Directory "C:/Servers/WebSiteVirt/site1/public">

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

 

:

ServerName , . , http://mysite1/.

ServerAlias . , , http://www.site1.ru/.

DocumentRoot , () (WEB-).

ErrorLog CustomLog .

Directory .

 

, DNS-. Apache , hosts. Windows 2000,XP,7 C:\Windows\System32\drivers\etc. hosts , IP :

hosts:

192.168.0.137 mysite1 site1.ru

 

! , , ServerAlias. , . , , , DNS-. .

 

, .

 

! , htdocs , , . , , localhost , httpd-vhosts.conf .

 

PHP

web- - . web- PHP.

web- Apache PHP. . php-5.2.9-2-win32-installer.msi . C:\Server\PHP\ (. . 2.5). Apache 2.2.xModule (. . 2.6). .

 

. 2.5. PHP . 2.6.

. 2.6. ,

 

PHP Apache

php, , httpd.conf ( ).

( index.php ):

 

<IfModule dir_module>

DirectoryIndex index.html index.phtml index.php

</IfModule>

 

( ):

 

#BEGINPHPINSTALLEREDITS - REMOVEONLYONUNINSTALL

PHPIniDir "C:/Servers/PHP/"

LoadModulephp5_module "C:/Servers/PHP/php5apache2_2.dll"

AddType application/x-httpd-php phtml php

#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

 

httpd.conf, , :

php.ini.

PHP, php5apache2_2.dll

.

 

. C:\Servers\WebServer\htdocs\ web- (html php) localhost. , .

 

1. Apache PHP web-, ( , PHP).

2. . .

 

:

Apache [v. 2.2.3-win32-x86-no_ssl].msi

php-5.2.9-2-win32-installer.msi


 

4

 

. , , . . , .

. . , .

. , . , .

. 4.1, , (NonReturntoZero, NRZ). NRZ , (- ), . , , .

NRZ , . - , , . NRZ . NRZ, - , f0, N/2 . , , .

 

. 4.1.

 

NRZ (BipolarAlternateMarkInversion, AMI). (. 4.1, ) , . , , , .

AMI , NRZ. . , NRZ, , N/2 ( N ). AMI, NRZ . AMI .

, AMI , NRZ, , . , f0 N/4 . AMI . , . (signalviolation).

, . , , (. 4.1, ). . , , , . , , . , N , NRZ AMI . - .

(. 4.1, ). Ethernet TokenRing.

, . . , . , . , . , , , . , . , ( ) N , ( ) N/2 , AMI NRZ. , , 3N/4. . , .

 

. ANSI.

 

:

.

1. ANSI 192.

2. 192 11000000

3. :

 

. 4.2. NRZ

 

. 4.3. AMI

 

. 4.4.

 

. 4.5.


 

5

 

AMI, NRZI 2Q1B. , , . .

. . , :

,

i , i- , Ai , i- , Bi-3 Bi-5 , , 3 5 , ( 2).

, 110110000001 :

Bi = Ai = 1 ( , )

 

, 110001101111, , .

, , . , ISDN 5 23 , 18 23 .

 

, , .

, . , . , .

 

 





:


: 2016-12-18; !; : 287 |


:

:

, .
==> ...

1858 - | 1656 -


© 2015-2024 lektsii.org - -

: 0.048 .