:
#make#make install
, Apache
apachectl. :
-
start .
-
stop .
-
restart .
-
fullstatus .
lynx mod_status.
-
status .
lynx mod_status.
-
graceful .
, .
-
configtest .
-
help .
. /etc/apache/httpd.conf (
). .
Global Environment.
Web .
:
-
ServerType
: standalone inetd. inetd
UNIX/Linux .
,
inet .
-
ServerRoot
. /usr/local/apache
-
StartServers
. . Windows
Apache
.
-
MaxClients
. 150,
.
-
Listen ,
.
IP
. 80 .
(Listen 5000) IP
(Listen 192.168.7.102:80).
IP , Listen
. IP
, .
-
LoadModule ,
,
. : LoadModule
mime_module libexec/mod_mime.so libexec
.
-
AddModule LoadModule
. : AddModule mod_mime.c
.
- Global Environment .
, Main Server Configuration.
Web .
,
,
. Main Server Configuration
- :
-
Port .
80.
-
User
.
-
Group .
-
ServerAdmin ,
.
-
ServerName .
localhost.
. DNS
/etc/hosts.
-
DocumentRoot
Web . /home/www/htdocs .
-
DefaulType
, .
text/plain.
-
ErrorLog
.
-
LogLevel .
warn, ,
Warning -.
debug, info, notice, warn, error, crit, alert, emerg.
- debug, - - emerg
-
ScriptAlias ,
CGI .
,
: ScriptAlias /cgi-bin/ /home/www/cgi-bin/.
:
http://www.localhost/cgi-bin/
, /home/www/cgi-bin/
-
BrowserMatch
.
,
,
. : BrowserMatch Mozilla/2 nokeepalive.