parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

на всякий случай - конфиг Апача

Larrikin 07.09.2004 15:06

# =================================================
# Basic settings
# =================================================

ServerType standalone
ServerRoot "/usr/local/apache"
PidFile /usr/local/apache/logs/httpd.pid
ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
ResourceConfig /dev/null
AccessConfig /dev/null

# =================================================
# Performance settings
# =================================================

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0

# =================================================
# Apache's modules
# =================================================

ClearModuleList
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_dir.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_php4.c

# =================================================
# General settings
# =================================================

Port 80
User apache
Group apache
ServerAdmin webmaster@voskresensk.net
UseCanonicalName Off
ServerSignature Off
HostnameLookups Off
ServerTokens Prod
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
DocumentRoot "/www/vhosts"

# =================================================
# Access control
# =================================================

<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>

# =================================================
# MIME encoding
# =================================================

<IfModule mod_mime.c>
TypesConfig /usr/local/apache/conf/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime.c>
AddEncoding x-compress Z AddEncoding x-gzip gz tgz
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .inc
AddType application/x-httpd-php .class
</IfModule>

# =================================================
# Logs
# =================================================

LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
ErrorLog /usr/local/apache/logs/error_log
CustomLog /usr/local/apache/logs/access_log combined

# =================================================
# Virtual hosts
# =================================================

NameVirtualHost *
<VirtualHost *>
DocumentRoot "/www/vhosts/default/html"
ServerName "192.168.50.5"
ServerAlias "213.234.249.4"
ErrorLog /www/vhosts/default/logs/error_log
CustomLog /www/vhosts/default/logs/access_log combined
<Directory "/www/vhosts/default/html">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>