.


:




:

































 

 

 

 


SSI .




 

Web- Apache

Apache web- . Apache .

web- Apache :

- httpd.conf, conf;

- , conf\extra httpd.conf Include;

- .htaccess, , .

, web- , , , . web- Apache .

Web- Apache httpd.conf . web- , httpd.conf web-.

httpd.conf .htaccess , web- Apache.

httpd.conf Include, conf\extra.

Web- Apache .

web-, web-. IP- (IP-based), IP- web-, (name-based), IP- web-, .

Listen, NameVirtualHost VirtualHost ( name-based , web- Apache, ).

Listen , web-. Listen.

Listen 8081

 

NameVirtualHost name-based .

NameVirtualHost 127.0.0.1:8081

 

<VirtualHost> , .

<VirtualHost 127.0.0.1:8081>

CustomLog //access.log common

ErrorLog //error.log

DocumentRoot //www

<Directory //www>

Options

</Directory>

<Files //test.html>

</Files>

</VirtualHost>

 

web- Apache. , </VirtualHost> , http://127.0.0.1:8080/manual. </VirtualHost> , Context virtual host.

DocumentRoot web-, .

.

<Directory> <Files> , (, ).

Allow, Deny, AuthType, AuthName, AuthGroupFile, AuthUserFile Require.

Allow, Deny / , , IP-.

Allow from all / Deny from all

Allow from apache.org / Deny from apache.org

Allow from.net / Deny from.net

Allow from 192.168.1.104 / Deny from192.168.1.104

Allow from 192.168 / Deny from192.168

 

Allow Deny Order.

Order Deny,Allow

# Deny, ,

# Allow.

# , .

 

Order Allow,Deny

# , Allow, ,

# Deny.

# , .

 

AuthType, AuthName, AuthGroupFile, AuthUserFile Require / .

AuthType .

AuthType Basic

 

AuthName , .

AuthName Test

AuthGroupFile AuthUserFile , , . :

group1:user1 user2

group2:user3 user4

user1:password1

user2:password2

, . bin\htpasswd.exe. ?.

, , , , DocumentRoot.

Require , , .

Require user user1 user2

#

 

Require group group1 group2

#

 

Require valid-user

#

 

, DocumentRoot, ( DirectoryIndex), web- Apache . Indexes Options .

IndexOptions.

IndexOptions FancyIndexing

 

AddIcon, AddDescription, HeaderName, ReadmeName, IndexIgnore ( . Reference Manual/Run-time Configuration Directives).

(SSI Server Side Includes)

SSI, , . , , .

:

<!--#directive attribute=value attribute=value -->

 

SSI .

web- Apache SSI Options, AddOutputFilter AddType.

Options Includes

# SSI

 

AddOutputFilter INCLUDES.ssi

# ,

#

 

AddType text/html.ssi

# media-

. ( Server Side Includes (SSI)/Basic SSI directives).

 


2.
CGI-.
(4 )

 

:

CGI- , CGI.

 

:

CGI-.

.

, , , CGI-, .

: CGI- , , GET, POST.

0

.

1

.

2

.

3

HTML.

4

CSS.

5

.

6

JavaScript.

7

web- Apache.

8

C++.

9

PHP.

 

:

1. Denwer (http://denwer.ru).

2. html- .

3. CGI- .

4. CGI- ( GET POST).

 

 


( ):

- -000 ().doc;

o ;

o ;

o ;

o

o html-;

o ;

o html- , CGI-;

o .

 


 





:


: 2017-02-24; !; : 377 |


:

:

, .
==> ...

1790 - | 1618 -


© 2015-2024 lektsii.org - -

: 0.034 .