The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Падает Apache 2.2.2"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы WEB технологии (Public)
Изначальное сообщение [ Отслеживать ]

"Падает Apache 2.2.2"  
Сообщение от K_Volk email on 19-Янв-07, 16:05 
После каждого Segmentation Fault остается процесс httpd после того как лимит на количетво процессов httpd будет исчерпан апач не будет отвечать на запросы. Apache 2.2.2 (федорка)

[Thu Jan 18 22:07:39 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Jan 18 22:07:39 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 23765 for (*)
Segmentation Fault in 23385, waiting for debugger
Segmentation Fault in 23765, waiting for debugger
[Thu Jan 18 22:23:18 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 24351 for worker proxy:reverse
[Thu Jan 18 22:23:18 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Jan 18 22:23:18 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 24351 for (*)
[Thu Jan 18 22:23:19 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 24354 for worker proxy:reverse
[Thu Jan 18 22:23:19 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized

Откуда этот Segmentation Fault берётся, что его может вызывать? И что за штука такая мод_прокси?


Хелп

Высказать мнение | Ответить | Правка | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Падает Apache 2.2.2"  
Сообщение от zingel email on 19-Янв-07, 19:14 
>После каждого Segmentation Fault остается процесс httpd после того как лимит на
>количетво процессов httpd будет исчерпан апач не будет отвечать на запросы.
>Apache 2.2.2 (федорка)
>
>[Thu Jan 18 22:07:39 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
>
>[Thu Jan 18 22:07:39 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker
>0 in child 23765 for (*)
>Segmentation Fault in 23385, waiting for debugger
>Segmentation Fault in 23765, waiting for debugger
>[Thu Jan 18 22:23:18 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0
>in child 24351 for worker proxy:reverse
>[Thu Jan 18 22:23:18 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
>
>[Thu Jan 18 22:23:18 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker
>0 in child 24351 for (*)
>[Thu Jan 18 22:23:19 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0
>in child 24354 for worker proxy:reverse
>[Thu Jan 18 22:23:19 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
>
>
>Откуда этот Segmentation Fault берётся, что его может вызывать? И что за
>штука такая мод_прокси?
>
>
>Хелп


конфиг в студию

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "Падает Apache 2.2.2"  
Сообщение от jen email(ok) on 29-Ноя-07, 21:08 
Имею схожую проблему. Конфигурация - FC6, Apache 2.2.3. Хост на colocation, на нем сервер DNS, установлен Plesk 8.2.1, крутится сайт на движке bitrix.
Падает и автоматически перезапускается Апач пару-тройку раз в день, без указанного в предыдущем посте Segmentation Fault.
У Апача в error_log:
[Thu Nov 29 13:08:49 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15420 for worker proxy:reverse
[Thu Nov 29 13:08:49 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:08:49 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15420 for (*)
[Thu Nov 29 13:08:51 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15421 for worker proxy:reverse
[Thu Nov 29 13:08:51 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:08:51 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15421 for (*)
[Thu Nov 29 13:08:52 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15422 for worker proxy:reverse
[Thu Nov 29 13:08:52 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:08:52 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15422 for (*)
[Thu Nov 29 13:08:52 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15423 for worker proxy:reverse
[Thu Nov 29 13:08:52 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:08:52 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15423 for (*)
[Thu Nov 29 13:09:03 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15425 for worker proxy:reverse
[Thu Nov 29 13:09:03 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:03 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15425 for (*)
[Thu Nov 29 13:09:06 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15427 for worker proxy:reverse
[Thu Nov 29 13:09:06 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:06 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15427 for (*)
[Thu Nov 29 13:09:09 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15429 for worker proxy:reverse
[Thu Nov 29 13:09:09 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:09 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15429 for (*)
[Thu Nov 29 13:09:11 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15431 for worker proxy:reverse
[Thu Nov 29 13:09:11 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:11 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15431 for (*)
[Thu Nov 29 13:09:13 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15433 for worker proxy:reverse
[Thu Nov 29 13:09:13 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:13 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15433 for (*)
[Thu Nov 29 13:09:16 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15435 for worker proxy:reverse
[Thu Nov 29 13:09:16 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:16 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15435 for (*)
[Thu Nov 29 13:09:17 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15438 for worker proxy:reverse
[Thu Nov 29 13:09:17 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:17 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15438 for (*)
[Thu Nov 29 13:09:17 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15439 for worker proxy:reverse
[Thu Nov 29 13:09:17 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:17 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15439 for (*)
[Thu Nov 29 13:09:20 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15442 for worker proxy:reverse
[Thu Nov 29 13:09:20 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:20 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15442 for (*)
[Thu Nov 29 13:09:23 2007] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 15449 for worker proxy:reverse
[Thu Nov 29 13:09:23 2007] [debug] proxy_util.c(1644): proxy: worker proxy:reverse already initialized
[Thu Nov 29 13:09:23 2007] [debug] proxy_util.c(1724): proxy: initialized single connection worker 0 in child 15449 for (*)
[Thu Nov 29 13:09:25 2007] [info] removed PID file /etc/httpd/run/httpd.pid (pid=7952)
[Thu Nov 29 13:09:25 2007] [notice] caught SIGTERM, shutting down

Конфиги Апача:
httpd.conf:
### Section 1: Global Environment
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
## Server-Pool Size Regulation (MPM specific)
# prefork MPM
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>
# worker MPM
<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>
Listen 80
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
Include conf.d/*.conf
User apache
Group apache
### Section 2: 'Main' server configuration
#
ServerAdmin root@localhost
UseCanonicalName Off
DocumentRoot "/var/www/html"
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<IfModule mod_userdir.c>
    UserDir disable
</IfModule>
DirectoryIndex at_domains_index.html index.html index.html.var index.shtml index.cfm index.php index.htm
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel debug
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
CustomLog logs/access_log combined
ServerSignature On
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler type-map var
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/error/"
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>
</IfModule>
</IfModule>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
### Section 3: Virtual Hosts
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


Содержимое conf.d (записал здесь одним фрагментом):
LoadModule perl_module modules/mod_perl.so

LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php

LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

LoadModule ssl_module modules/mod_ssl.so
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
SSLPassPhraseDialog  builtin
SSLSessionCache         shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout  300
SSLMutex default
SSLRandomSeed startup file:/dev/urandom  256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
<VirtualHost _default_:443>
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>                                  

Alias /usage /var/www/usage
<Location /usage>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
</Location>

<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>


NameVirtualHost 1.1.1.1:80
NameVirtualHost 1.1.1.2:80
NameVirtualHost 1.1.1.1:443
NameVirtualHost 1.1.1.2:443
ServerName myhost.mydomain.ru
ServerAdmin root@mydomain.ru
DocumentRoot /var/www/vhosts/default/htdocs
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
</IfModule>
<IfModule !mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
</IfModule>
<Directory "/var/www/vhosts">
    AllowOverride All
    Options SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    <IfModule sapi_apache2.c>
    php_admin_flag engine off
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_flag engine off
    </IfModule>
</Directory>
<Directory "/usr/lib/mailman">
    AllowOverride All
    Options SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    <IfModule sapi_apache2.c>
    php_admin_flag engine off
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_flag engine off
    </IfModule>
</Directory>

<IfModule mod_userdir.c>
    UserDir disabled
</IfModule>
Include /var/www/vhosts/mydomain.ru/conf/httpd.include
<VirtualHost \
            1.1.1.1:80 \
            1.1.1.2:80 \
            >

    ServerName default
    UseCanonicalName Off
    DocumentRoot /var/www/vhosts/default/htdocs
    ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
    <IfModule mod_ssl.c>
        SSLEngine off
    </IfModule>
    <Directory "/var/www/vhosts/default/cgi-bin/">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/vhosts/default/htdocs>
    <IfModule sapi_apache2.c>
        php_admin_flag engine on
        php_admin_flag safe_mode on
        php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
        php_admin_flag engine on
        php_admin_flag safe_mode on
        php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
    </IfModule>
    </Directory>
    CustomLog /var/log/httpd/access_log combined
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost 1.1.1.1:443 >
    ServerName default-1-1-1-1
    UseCanonicalName Off
    DocumentRoot /var/www/vhosts/default/httpsdocs
    ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
    SSLEngine on
    SSLVerifyClient none
    SSLCertificateFile /usr/local/psa/var/certificates/certiEh5680
    <Directory "/var/www/vhosts/default/cgi-bin/">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/vhosts/default/httpsdocs>
        SSLRequireSSL
    </Directory>
    CustomLog /var/log/httpd/access_log combined
</VirtualHost>
<VirtualHost 1.1.1.2:443 >
    ServerName default-1-1-1-2
    UseCanonicalName Off
    DocumentRoot /var/www/vhosts/default/httpsdocs
    ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
    SSLEngine on
    SSLVerifyClient none
    SSLCertificateFile /usr/local/psa/var/certificates/certiEh5680
    <Directory "/var/www/vhosts/default/cgi-bin/">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/vhosts/default/httpsdocs>
        SSLRequireSSL
    </Directory>
    CustomLog /var/log/httpd/access_log combined
</VirtualHost>
</IfModule>
<VirtualHost \
            1.1.1.1:80 \
            1.1.1.2:80 \
            >

    DocumentRoot /usr/share/psa-horde/
    Alias /horde/ /usr/share/psa-horde/
    Alias /imp/ /usr/share/psa-horde/imp/
    ServerName webmail
    ServerAlias webmail.*
    UseCanonicalName Off
    <Directory /usr/share/psa-horde>
        <IfModule sapi_apache2.c>
            php_admin_flag engine on
            php_admin_flag magic_quotes_gpc off
            php_admin_flag safe_mode off
            php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
            php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
        </IfModule>
        <IfModule mod_php5.c>
            php_admin_flag engine on
            php_admin_flag magic_quotes_gpc off
            php_admin_flag safe_mode off
            php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
            php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
        </IfModule>
        Order allow,deny
        Allow from all
    </Directory>
    CustomLog /var/log/httpd/access_log combined
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost \
            1.1.1.1:443 \
            1.1.1.2:443 \
            >

    DocumentRoot /usr/share/psa-horde/
    Alias /horde/ /usr/share/psa-horde/
    Alias /imp/ /usr/share/psa-horde/imp/
    ServerName webmail
    ServerAlias webmail.*
    UseCanonicalName Off
    SSLEngine on
    SSLVerifyClient none
    SSLCertificateFile /etc/httpd/conf/httpd.pem
    <Directory /usr/share/psa-horde>
        <IfModule sapi_apache2.c>
            php_admin_flag engine on
            php_admin_flag magic_quotes_gpc off
            php_admin_flag safe_mode off
            php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
            php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
        </IfModule>
        <IfModule mod_php5.c>
            php_admin_flag engine on
            php_admin_flag magic_quotes_gpc off
            php_admin_flag safe_mode off
            php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
            php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
        </IfModule>
        SSLRequireSSL
        Order allow,deny
        Allow from all
    </Directory>
    CustomLog /var/log/httpd/access_log combined
</VirtualHost>
</IfModule>
<VirtualHost \
            1.1.1.1:80 \
            1.1.1.2:80 \
            >

    DocumentRoot /var/www/vhosts/default/htdocs
    ServerName lists
    ServerAlias lists.*
    UseCanonicalName Off
    ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
    Alias /icons/ /var/www/icons/
    Alias /pipermail/ /var/lib/mailman/archives/public/
    <Directory /var/lib/mailman/archives/>
        Options FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>
    CustomLog /var/log/httpd/access_log combined
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost \
            1.1.1.1:443 \
            1.1.1.2:443 \
            >

    DocumentRoot /var/www/vhosts/default/httpsdocs
    ServerName lists
    ServerAlias lists.*
    UseCanonicalName Off
    ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
    Alias /icons/ /var/www/icons/
    Alias /pipermail/ /var/lib/mailman/archives/public/
    <Directory /var/lib/mailman/archives/>
        Options FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>
    CustomLog /var/log/httpd/access_log combined
</VirtualHost>
</IfModule>


Содержимое httpd.include виртуального хоста:
<VirtualHost 1.1.1.1:80>
    ServerName   mydomain.ru:80
    ServerAlias  www.mydomain.ru
    UseCanonicalName Off
    ServerAlias  mydomain2.ru
    ServerAlias  www.mydomain2.ru
    SuexecUserGroup         us1111 psacln
    ServerAdmin  "admin@mydomain.ru"
    DocumentRoot /var/www/vhosts/mydomain.ru/httpdocs
    CustomLog  /var/www/vhosts/mydomain.ru/statistics/logs/access_log plesklog
    ErrorLog  /var/www/vhosts/mydomain.ru/statistics/logs/error_log
<IfModule mod_userdir.c>
    UserDir /var/www/vhosts/mydomain.ru/web_users
</IfModule>
    ScriptAlias  /cgi-bin/ /var/www/vhosts/mydomain.ru/cgi-bin/
    Alias  /plesk-stat /var/www/vhosts/mydomain.ru/statistics/
    <Location  /plesk-stat/>
        Options +Indexes
    </Location>
    <Location  /plesk-stat/logs/>
        Require valid-user
    </Location>
    Alias  /webstat /var/www/vhosts/mydomain.ru/statistics/webstat
    Alias  /webstat-ssl /var/www/vhosts/mydomain.ru/statistics/webstat-ssl
    Alias  /ftpstat /var/www/vhosts/mydomain.ru/statistics/ftpstat
    Alias  /anon_ftpstat /var/www/vhosts/mydomain.ru/statistics/anon_ftpstat
    Alias  /awstats-icon /var/www/html/awstats/icon
    <IfModule mod_ssl.c>
        SSLEngine off
    </IfModule>
    <Directory /var/www/vhosts/mydomain.ru/httpdocs>
    <IfModule mod_perl.c>
    <Files ~ (\.pl$)>
        SetHandler perl-script
        PerlHandler ModPerl::Registry
        Options ExecCGI
        allow from all
        PerlSendHeader On
    </Files>
    </IfModule>
    <IfModule sapi_apache2.c>
        php_admin_flag engine on
        php_admin_flag safe_mode off
        php_admin_value open_basedir "/var/www/vhosts/mydomain.ru/httpdocs:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
        php_admin_flag engine on
        php_admin_flag safe_mode off
        php_admin_value open_basedir "/var/www/vhosts/mydomain.ru/httpdocs:/tmp"
    </IfModule>
        Options +Includes +ExecCGI
    </Directory>
    <Directory /var/www/vhosts/mydomain.ru/web_users>
    <IfModule sapi_apache2.c>
        php_admin_flag engine off
    </IfModule>
    <IfModule mod_php5.c>
        php_admin_flag engine off
    </IfModule>
    </Directory>
    <Directory "/var/www/vhosts/mydomain.ru/statistics">
        AuthType Basic
        AuthName "*********** ****"
        AuthUserFile /var/www/vhosts/mydomain.ru/pd/d..httpdocs@plesk-stat
        require  valid-user
    </Directory>
    Include /var/www/vhosts/mydomain.ru/conf/vhost.conf
</VirtualHost>

Пробовал отключать подгрузку mod_proxy_ajp.so (все равно никаких доп. прокси не установлено). Может, есть смысл отключить загрузку mod_proxy.so?
В общем, какие будут соображения - за все благодарю.

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

3. "Падает Apache 2.2.2"  
Сообщение от K_Volk on 30-Ноя-07, 10:56 
хз, я поставил рестарт апача в крон через каждые 6 часов... больше ничё не смог нарыть по этому вопросу
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

4. "Падает Apache 2.2.2"  
Сообщение от jen email(??) on 29-Апр-08, 17:43 
>хз, я поставил рестарт апача в крон через каждые 6 часов... больше
>ничё не смог нарыть по этому вопросу

Я кажется нарыл. У меня стоит Plesk, а в нем были настроены watchdog по умолчанию. Он перезапускал сервер, если нет ответа 5 сек. Увеличил таймаут - красота.

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру