frame

Sveiki apsilankę!

Jei forume lankaisi pirmą kartą, kviečiame registruotis ir prisijungti prie diskusijų.

Prisijungti Registruotis

Bėda su "500 Internal Server Error"

labas987labas987 Naujokas (-ė)
edited 2012 sausio 30 Į Pagalba
Sveiki, turiu problemą, pastaruoju metu labai dažnai pradėjo lūžinėti web serveris. Apart ram/cpu nieko vps'e nekeičiau, gal yra minčių, kas galėtų būti?

P.S. Naudoju kloxo
«1

Komentarai

  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 14
    Labas,

    reikia peržiūrėti serverio žurnalo įrašus galimai klaidai nustatyti kataloge /var/log . Taip pat, stebėkite procesus vykstančius serveryje realiuoju laiku komandos top pagalba.
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 17
    [root@server ~]# service httpd restart
    Stopping httpd:                                            [  OK  ]
    Starting httpd: [Sat Dec 17 00:14:16 2011] [warn] NameVirtualHost 79.98.30.225:80 has no VirtualHosts
    [Sat Dec 17 00:14:16 2011] [warn] NameVirtualHost 79.98.30.225:443 has no VirtualHosts
    

    parasius i ssh konsole: service httpd restart
    ismeta tai, ka matot virsuje, parasius sita svetaine restartuojas, ir veikia normaliai (bet ne visada), kartais diena, kartais 1min kartais 1h kaip pauola... Gal kam kyla minciu?
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 19
    Problema su serveryje veikiančia tarnyba Apache. Galimai tarnyba nėra tinkamai sukonfigūruota esamom apkrovom, todėl "pakimba". Pridėkite httpd.conf failą ir informuokite kokio galingumo serverį turite?
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 19
    IV_RomanL parašė: »
    Problema su serveryje veikiančia tarnyba Apache. Galimai tarnyba nėra tinkamai sukonfigūruota esamom apkrovom, todėl "pakimba". Pridėkite httpd.conf failą ir informuokite kokio galingumo serverį turite?

    VPS'as: planas 4GHz:2048MB:60GB:100Mbps

    Failas: Siustis

    P.S. http://forum.lxcenter.org/index.php?&t=msg&goto=75076 radau ir man akzkas risasi, bet nzn ar istises :confused:
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 19
    Šios klaidos nėra susijusios su apache serviso pakibimu, reiktų peržiūrėti apache error log įrašus. Pažiūrėkite /var/log/httpd/error_log direktorijoje. Jei galite įklijuokite to failo paskutines 100 eilučių čia.
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 19
    [Mon Dec 19 22:26:48 2011] [error] [client 66.249.66.130] script '/home/kloxo/httpd/default/hlstats/hlstats.php' not found or unable to stat
    [Mon Dec 19 22:27:08 2011] [error] [client 66.249.66.237] script '/home/kloxo/httpd/default/hlstats/hlstats.php' not found or unable to stat
    [Mon Dec 19 22:27:28 2011] [error] [client 66.249.66.145] script '/home/kloxo/httpd/default/hlstats/hlstats.php' not found or unable to stat
    [Mon Dec 19 19:11:07 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
    [Mon Dec 19 19:11:35 2011] [notice] caught SIGTERM, shutting down
    [Mon Dec 19 19:11:36 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    

    As numanau, kur beda, taciau sito skripto nera jau po senovei, gal butu galima suzinoti, kur patikrint ar jie yra ar ne? "/home/kloxo/httpd/default/hlstats/hlstats.php" sito failo nebuvo, sukuriau, vistiek meta ta pati.
  • IV_LinasJIV_LinasJ Interneto vizija
    edited 2011 gruodžio 20
    Sveiki,
    problemą yra šioje vietoje:
    [Mon Dec 19 19:11:07 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
    
    Šis pranešimas reiškia jog apache serveris pasiekė maksimalų vartotojų skaičių.
    Reikėtų išsiaiškinti ar tai yra ddos ataka ar tiesiog jūsų svetainės turi daug lankytoju. Jei problema su padidėjusiu lankytojų skaičiumi, reiktų padidinti MaxClients nustatymą, jei problema su ddos, reiktų blokuoti atakuojančius ip adresus.
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 20
    max skaiciu pasiekia mano manybu del:

    [Mon Dec 19 22:27:28 2011] [error] [client 66.249.66.145] script '/home/kloxo/httpd/default/hlstats/hlstats.php' not found or unable to stat

    kadangi anksciau sito nebudavo ir viskas buvo gerai, taciau man neaisku, is korios vietos jis paleidzia ta script? ar kurioje vietoje yra to script paleidimo eilute
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 20
    IP adresai iš kurių kreipiamasi į neegzistuojantį failą, priklauso Google paieškos sistemos robotams. Failo nurodytoje vietoje /home/kloxo/httpd/default/hlstats/hlstats.php nėra, tačiau niekas nedraudžia kreiptis į jūsų serverį su nuoroda į tą failą.
    Sprendimas būtų sukurti .htaccess failą toje direktorijoje su nukreipimu į tarkim google.lt. Htaccess failo turinį galite sugeneruoti šio įrankio pagalba: http://www.htaccesseditor.com/en.shtml#a_redirect
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 20
    Kas bebutu, error susitvarkiau, aciu, taciau man vistiek meta:
    [Tue Dec 20 15:08:34 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting

    Ir web nebesikrauna... :/

    P.S. Kaip padidinti max client skaiciu?
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 20
    MaxClients skaičius didinamas faile httpd.conf . Raskite eilutes:

    ServerLimit 256
    MaxClients 256

    Pridėkite prie kiekvienos bent po 100. Taipogi rekomenduoju peržiūrėti iš kur ateina srautas kuris išnaudoja šį limitą.
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 20
    IV_RomanL parašė: »
    MaxClients skaičius didinamas faile httpd.conf . Raskite eilutes:

    ServerLimit 256
    MaxClients 256

    Pridėkite prie kiekvienos bent po 100. Taipogi rekomenduoju peržiūrėti iš kur ateina srautas kuris išnaudoja šį limitą.

    Na, jei zinociau, pasiziureciau, taciau sitose srityse as dar galima sakyti "Pradinukas" ;D
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 20
    Apache access.log žurnale tai turėtų būti matoma. Taip pat komandos top pagalba peržiūrėkite bendrą serverio apkrovą.
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 21
    127.0.0.1 - - [21/Dec/2011:21:00:54 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:00:55 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:00:59 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:01:00 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:01:01 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:01:14 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    66.249.66.129 - - [21/Dec/2011:21:01:28 +0200] "GET /hlstats/hlstats.php?mode=playerinfo&player=6237&obj_sort=description&obj_sortorder=desc HTTP/1.1" 200 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    66.249.66.181 - - [21/Dec/2011:21:02:05 +0200] "GET /hlstats/hlstats.php?mode=playerinfo&player=6237&obj_sort=obj_bonus&obj_sortorder=desc HTTP/1.1" 200 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    127.0.0.1 - - [21/Dec/2011:21:02:19 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:02:20 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:02:21 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    66.249.66.123 - - [21/Dec/2011:21:02:43 +0200] "GET /hlstats/hlstats.php?mode=playerinfo&player=5993&maps_sort=map&maps_sortorder=desc HTTP/1.1" 200 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    127.0.0.1 - - [21/Dec/2011:21:02:45 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:02:46 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:02:47 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:02:50 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:02:51 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:02:52 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:02:53 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:04 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:05 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:06 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:07 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:13 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:14 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:15 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    66.249.66.99 - - [21/Dec/2011:21:03:20 +0200] "GET /hlstats/hlstats.php?mode=playerinfo&player=5993&obj_sort=description&obj_sortorder=desc HTTP/1.1" 200 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    127.0.0.1 - - [21/Dec/2011:21:03:28 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:33 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:34 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    127.0.0.1 - - [21/Dec/2011:21:03:35 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.21 (CentOS) (internal dummy connection)"
    

    access.log pora eiluciu
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 22
    Parašykite asmenine žinute savo serverio IP adresą, pasistengsime peržiūrėti kur slypi problema.
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 22
    Nusiunčiau, tačiau nemanau, kad šitą dalyką galima sutvarkyti ne iš serverio pusės
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 22
    Peržiūrėjus jūsų serverio veikimą rekomenduojame:

    * įdiegti mod_security nekorektiškų užklausų filtravimui ir stebėjimui (mod_security įdiegimo instrukcija)

    Tai atlikus galėsime toliau tęsti serverio būklės stebėjimą jei problema su web serverio lūžinėjimu išliks.
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 22
    Nuoroda pataisyta. Nurodyta instrukcija į oficialų Kloxo valdymo pulto tinklalapį.

    P.S. Įjungti EPEL repozitoriją galite viena iš šių komandų (priklauso kokia operacinė sistema įdiegta):

    CentOS 5.x 32-bit (x86/i386):
    rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
    
    CentOS 5.x 64-bit (x64):
    rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
    
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 27
    gal yra kita pamoka, kaip isidiegti? nes niekaip nepavyksta, o web'as ir toliau luzineja
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2011 gruodžio 28
    1. Validuojame paketus įdiegimui parsisiųsdami raktą:
    rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
    
    2. Atidarome failą:
    nano /etc/sysconfig/rhn/sources
    
    Ir įklijuojame eilutę:
    yum utterramblings http://www.jasonlitka.com/media/EL5/$ARCH
    
    3. Sukuriame naują .repo failą:
    nano /etc/yum.repos.d/utterramblings.repo
    
    Ir įklijuojame:
    [utterramblings]
    name=Jason's Utter Ramblings Repo
    baseurl=http://www.jasonlitka.com/media/EL5/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
    
    4. Įdiegiame:
    yum install mod_security
    
    5. Perkrauname Apache:
    service httpd restart
    
    Jei gauname klaidą, tuomet vykdome komandą:
    yum update httpd*
    
    Ir tuomet:
    service httpd restart
    
    Mod_security jau turės pagal nutylėjimą nustatytas taisykles. Taisykles redaguoti pagal savo poreikius galite failuose:

    /etc/httpd/conf.d/mod_security.conf
    /etc/httpd/modsecurity.d
  • labas987labas987 Naujokas (-ė)
    edited 2011 gruodžio 28
    Aciu, bet kas bebutu, jis vistiek "luzta"... su labai sunkiu mod log failu
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2012 sausio 2
    Gal galite pateikti .log failo paskutines 50 eilučių? Jei jose yra informacijos kurios nenorite viešinti, atsiųskite asmenine žinute.
  • labas987labas987 Naujokas (-ė)
    edited 2012 sausio 2
    modsec_audit.log
    modsec_debug.log
    access_log
    error_log

    Korio is siu failu log 50 eiluciu norite?
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2012 sausio 2
    access_log
    error_log

    Abiejų dokumentų po 50 paskutinių eilučių.
  • labas987labas987 Naujokas (-ė)
    edited 2012 sausio 2
    access_log:
    66.249.66.76 - - [02/Jan/2012:19:52:04 +0200] "GET /hlstats/hlstats.php?mode=playersessions&player=1735&sort=skill_change&sortorder=desc HTTP/1.1" 400 303 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    66.249.66.76 - - [02/Jan/2012:19:55:44 +0200] "GET /hlstats/hlstats.php?mode=playersessions&player=1735&sort=suicides&sortorder=desc HTTP/1.1" 400 303 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    127.0.0.1 - - [02/Jan/2012:19:57:08 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:19:57:16 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:19:57:22 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:19:57:30 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:04:29 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    66.249.66.11 - - [02/Jan/2012:20:04:54 +0200] "GET /hlstats/hlstats.php?mode=search&st=player&q=%5BDirect%5DNo_steam HTTP/1.1" 200 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    66.249.72.108 - - [02/Jan/2012:20:05:31 +0200] "GET /hlstats/hlstats.php?mode=playersessions&player=1878&sort=connection_time&sortorder=desc HTTP/1.1" 400 303 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    127.0.0.1 - - [02/Jan/2012:20:06:53 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:06:55 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:06:58 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:06:59 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:07:00 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:07:01 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    66.249.72.108 - - [02/Jan/2012:20:07:20 +0200] "GET /hlstats/hlstats.php?mode=playersessions&player=1878&sort=deaths&sortorder=desc HTTP/1.1" 400 303 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    127.0.0.1 - - [02/Jan/2012:20:07:43 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:08:02 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    66.249.72.81 - - [02/Jan/2012:20:08:03 +0200] "GET /hlstats/hlstats.php?mode=rankinfo&rank=605&game=cstrike HTTP/1.1" 200 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    127.0.0.1 - - [02/Jan/2012:20:09:51 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    66.249.72.108 - - [02/Jan/2012:20:11:00 +0200] "GET /hlstats/hlstats.php?mode=playersessions&player=1878&sort=eventTime&sortorder=asc HTTP/1.1" 400 303 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    66.249.66.36 - - [02/Jan/2012:20:11:31 +0200] "GET /stats/player.php?id=40&vsort=kills&vorder=asc HTTP/1.1" 404 288 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    127.0.0.1 - - [02/Jan/2012:20:12:16 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:13:00 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:13:01 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:13:02 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:14:21 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:14:41 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:16:37 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:17:25 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:17:26 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:17:27 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:18:08 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:18:09 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:18:10 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:20:23 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:20:24 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:20:25 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:20:33 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:20:38 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:20:40 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    127.0.0.1 - - [02/Jan/2012:20:20:41 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.0 (Fedora) (internal dummy connection)"
    66.249.66.36 - - [02/Jan/2012:20:20:48 +0200] "GET /stats/player.php?id=67 HTTP/1.1" 404 288 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    66.249.66.76 - - [02/Jan/2012:20:21:23 +0200] "GET /hlstats/hlstats.php?mode=playersessions&player=1878&sort=headshots&sortorder=desc HTTP/1.1" 400 303 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    

    error_log:
    [Mon Jan 02 19:31:53 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:53 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:53 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:53 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: ip.rez.lt:443 (/home/httpd/ip.rez.lt/conf/kloxo.ip.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: filmukai.rez.lt:443 (/home/httpd/filmukai.rez.lt/conf/kloxo.filmukai.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: failai.rez.lt:443 (/home/httpd/failai.rez.lt/conf/kloxo.failai.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: pastebin.rez.lt:443 (/home/httpd/pastebin.rez.lt/conf/kloxo.pastebin.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: maps.rez.lt:443 (/home/httpd/maps.rez.lt/conf/kloxo.maps.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: cstrike.rez.lt:443 (/home/httpd/cstrike.rez.lt/conf/kloxo.cstrike.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: monitors.rez.lt:443 (/home/httpd/monitors.rez.lt/conf/kloxo.monitors.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: eko.rez.lt:443 (/home/httpd/eko.rez.lt/conf/kloxo.eko.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: rez.lt:443 (/home/httpd/rez.lt/conf/kloxo.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: SSL server IP/port conflict: server.rez.lt:443 (/etc/httpd/conf/kloxo/ssl.conf:3) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:53 2012] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
    [Mon Jan 02 19:31:53 2012] [notice] ModSecurity for Apache/2.5.9 (http://www.modsecurity.org/) configured.
    [Mon Jan 02 19:31:53 2012] [notice] Original server signature: Apache/2.2.21 (CentOS)
    [Mon Jan 02 19:31:53 2012] [notice] Digest: generating secret for digest authentication ...
    [Mon Jan 02 19:31:53 2012] [notice] Digest: done
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: ip.rez.lt:443 (/home/httpd/ip.rez.lt/conf/kloxo.ip.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: filmukai.rez.lt:443 (/home/httpd/filmukai.rez.lt/conf/kloxo.filmukai.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: failai.rez.lt:443 (/home/httpd/failai.rez.lt/conf/kloxo.failai.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: pastebin.rez.lt:443 (/home/httpd/pastebin.rez.lt/conf/kloxo.pastebin.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: maps.rez.lt:443 (/home/httpd/maps.rez.lt/conf/kloxo.maps.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: cstrike.rez.lt:443 (/home/httpd/cstrike.rez.lt/conf/kloxo.cstrike.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: monitors.rez.lt:443 (/home/httpd/monitors.rez.lt/conf/kloxo.monitors.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: eko.rez.lt:443 (/home/httpd/eko.rez.lt/conf/kloxo.eko.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: rez.lt:443 (/home/httpd/rez.lt/conf/kloxo.rez.lt:71) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: SSL server IP/port conflict: server.rez.lt:443 (/etc/httpd/conf/kloxo/ssl.conf:3) vs. reztv.lt:443 (/home/httpd/reztv.lt/conf/kloxo.reztv.lt:71)
    [Mon Jan 02 19:31:54 2012] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
    [Mon Jan 02 19:31:54 2012] [notice] Apache/2.2.21 (Unix) DAV/2 PHP/5.2.6 mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 Apache/2.2.0 (Fedora) configured -- resuming normal operations
    [Mon Jan 02 19:31:57 2012] [error] [client 66.249.66.76] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwHqDU9iHuEAAHyVy8AAAAAA"]
    [Mon Jan 02 19:35:35 2012] [error] [client 66.249.66.76] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwHq509iHuEAAHyy1eQAAAAC"]
    [Mon Jan 02 19:40:08 2012] [error] [client 66.249.66.36] File does not exist: /home/kloxo/httpd/default/stats
    [Mon Jan 02 19:47:04 2012] [error] [client 66.249.72.56] File does not exist: /home/kloxo/httpd/default/stats
    [Mon Jan 02 19:47:48 2012] [error] [client 66.249.66.149] script '/home/kloxo/httpd/default/hlstats/sig.php' not found or unable to stat
    [Mon Jan 02 19:52:04 2012] [error] [client 66.249.66.76] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwHuxE9iHuEAAH3IgfsAAAAF"]
    [Mon Jan 02 19:55:44 2012] [error] [client 66.249.66.76] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwHvoE9iHuEAAH4sub4AAAAB"]
    [Mon Jan 02 20:05:31 2012] [error] [client 66.249.72.108] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwHx609iHuEAAH7X6vAAAAAH"]
    [Mon Jan 02 20:07:20 2012] [error] [client 66.249.72.108] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwHyWE9iHuEAAASmPasAAAAI"]
    [Mon Jan 02 20:11:00 2012] [error] [client 66.249.72.108] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwHzNE9iHuEAAAUQSEAAAAAA"]
    [Mon Jan 02 20:11:31 2012] [error] [client 66.249.66.36] File does not exist: /home/kloxo/httpd/default/stats
    [Mon Jan 02 20:20:48 2012] [error] [client 66.249.66.36] File does not exist: /home/kloxo/httpd/default/stats
    [Mon Jan 02 20:21:23 2012] [error] [client 66.249.66.76] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwH1o09iHuEAAAajFO4AAAAA"]
    [Mon Jan 02 20:22:00 2012] [error] [client 66.249.66.76] ModSecurity: Access denied with code 400 (phase 2). Pattern match "^[\\d\\.]+$" at REQUEST_HEADERS:Host. [file "/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf"] [line "60"] [id "960017"] [msg "Host header is a numeric IP address"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/IP_HOST"] [hostname "79.98.30.225"] [uri "/hlstats/hlstats.php"] [unique_id "TwH1yE9iHuEAAAaRC4oAAAAB"]
    [Mon Jan 02 20:22:26 2012] [error] [client 66.249.66.36] File does not exist: /home/kloxo/httpd/default/stats
    
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2012 sausio 10
    Sveiki,

    problema dėl itin mažo MaxClients limito, šiuo metu jis yra 10. Reiktų padidinti bent jau iki 50.
  • labas987labas987 Naujokas (-ė)
    edited 2012 sausio 11
    Sveiki,
    jeigu kalba eina apie httpd.conf failą tai jame MaxClients yra nustatyta virš 200, tad man įdomu kurioje vietoje dar jį pakeisti?
  • stunnerstunner Naujokas (-ė)
    edited 2012 sausio 11
    Kartais šis limitas yra rašomas į apache2.conf failą
  • labas987labas987 Naujokas (-ė)
    edited 2012 sausio 12
    Toks failas pas mane VPS'e visame neegzistuoja Ieškojau su: find / -name 'apache2.conf'
  • IV_RomanLIV_RomanL Interneto vizija
    edited 2012 sausio 13
    Administratoriai peržiūrėjo situaciją jūsų serveryje. Pateikiamas problemos sprendimas:

    Reiktų atverti konfigūracinį failą /etc/httpd/conf.d/swtune.conf ir rasti eilutes:
    <IfModule prefork.c>
    StartServers       1
    MinSpareServers    1
    MaxSpareServers    5
    ServerLimit       10
    MaxClients        10
    MaxRequestsPerChild  10000
    </IfModule>
    

    ir pakeisti į:
    <IfModule prefork.c>
    StartServers       5
    MinSpareServers    5
    MaxSpareServers    15
    ServerLimit       64
    MaxClients        64
    MaxRequestsPerChild  10000
    </IfModule>
    

    Tuomet perkrauti apache serverį:
    service httpd restart
    
Norėdami palikti komentarą, turite prisijungti arba registruokis.