Форум: "Прочее";
Текущий архив: 2009.11.15;
Скачать: [xml.tar.bz2];
Внизmod_status Найти похожие ветки
← →
Kerk © (2009-09-12 13:39) [0]Делаю все, как написано тут - http://tinyurl.com/ncku3v
Но в результате по http://урл/server-status вижу 404
Что-то еще упускаю? В чем может быть проблема?
По apachectl -t -D DUMP_MODULES модуль вижу, т.е. он по крайней мере грузится.
← →
easy © (2009-09-12 16:32) [1]и чего, ты это всё в httpd.conf пишешь?
а /etc/apache2/mods-available/status.conf status.load нету?
у меня так это по умолчанию включено, кроме ExtendedStatus
Apache/2.2.11 (Ubuntu)
← →
Kerk © (2009-09-12 22:00) [2]
> easy © (12.09.09 16:32) [1]
>
> и чего, ты это всё в httpd.conf пишешь?
> а /etc/apache2/mods-available/status.conf status.load нету?
У меня /etc/apache2/ на диске вообще нет. Возможно, особенность FreeBSD.
И я не все в httpd.conf пишу. Там ж в статье про /usr/local/etc/apache22/extra/httpd-info.conf речь.
← →
easy © (2009-09-13 21:28) [3]поставил фряху, сделал по тому мануалу - работает без проблем
что-то ты упустил..
← →
easy © (2009-09-13 21:45) [4]httpd-info.conf
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
← →
Kerk © (2009-09-14 03:33) [5]cat httpd.conf | grep mod_status
LoadModule status_module libexec/apache22/mod_status.so
cat httpd.conf | grep httpd-infoInclude etc/apache22/extra/httpd-info.conf
cat httpd-info.conf
#
# Get information about the requests being processed by the server
# and the configuration of the server.
#
# Required modules: mod_status (for the server-status handler),
# mod_info (for the server-info handler)
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
<Location /server-status>
SetHandler server-status
</Location>
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On
#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
<Location /server-info>
SetHandler server-info
</Location>
← →
easy © (2009-09-14 22:43) [6]
> Note that also if you use NameVirtualHost *:80 directive,
> or any *:port directive to run multiple name based virtual
> hosts, this configuration does not allow server-status on
> any of the publicly accessible addresses. The reason is
> that the first Virtual Host in the directive is considered
> the “Default Virtual Host”, and any unknown entries on the
> NameVirtualHost space whenever user or process attempts
> to access port 80 on any IP address, will go to this virtual
> host by default. Hence the 404 page not found error is returned.
> Furthermore the server-status configuration cannot be placed
> inside of a VirtualHost directive to be read from a full
> domain name.
>
> There are 2s solution and workarounds for this scenario,
> either by making the server listen on an alternative port
> (such as port 8080), or allowing only internal or local
> access.
>
> To change to another port, simply adding “Listen 8080″ to
> the configuration, and you can access the server status
> from external by using http://domain:8080/server-status
> in any web browser.
© http://www.mydigitallife.info/2007/04/23/request-url-server-status-or-404-page-not-found-apache-error/
?
← →
Kerk © (2009-09-14 23:02) [7]У меня стоит "Listen 8080", потому что на фронтенде nginx
Когда пишу в браузере урл:8080/server-status, меня перекидывает на url/server-status
apachectl status говорит тоже not found
А за инфу спасибо, интересно :)
← →
Kerk © (2009-09-14 23:19) [8]Кстати, вот чего добился от суппорта:
В текущей технологии vds, к сожалению, невозможно использование стандартных при решении данной проблемы утилит (lsof, fstat), т.к. данная информация низкого уровня. Поэтому основной путь исследования такой: кладется по какой-нибудь из сервисов (apache, mysqld, sendmail..) и замеряется насколько изменилось количество дескрипторов открытых файлов. Таким образом выясняется основной виновник, и круг сужается. Далее уже искать конкретно - если апач, то какие скрипты какого сайта (apache server-status); если mysql, то какая база; и т.д.
Узнавать текущее кол-во открытых файлов:
sysctl -a | grep openfiles
← →
Kerk © (2009-09-14 23:22) [9]ЧОрт, не та ветка :)
← →
Kerk © (2009-09-15 00:21) [10]Заработало. Проблема была в совокупности того, что написал easy выше и nginx, который слал запрос напрямую к ip:8080 хрен знает куда :)
Страницы: 1 вся ветка
Форум: "Прочее";
Текущий архив: 2009.11.15;
Скачать: [xml.tar.bz2];
Память: 0.47 MB
Время: 0.008 c