Периодически выскакивает 403 ошибка

1 234
[Удален]
#21

Судя по логу из первого поста ошибку апач рисует. Смысла ковырять nginx не вижу.

nginx передал запрос к фронтеду, апач должен определить индексный файл (если запрос не к другому).

serg-smirnoff
На сайте с 23.02.2008
Offline
139
#22
actions alias auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex cache cgi deflate dir env expires fcgid headers include mem_cache mime negotiation php5 php5_cgi reqtimeout rewrite rpaf setenvif status suexec vhost_alias

с чего начинать выключать модули апача?

[Удален]
#23

Выключите то что не используется на текущий момент.

---------- Добавлено 21.10.2013 в 00:03 ----------

А чтобы не ждать ошибку погоняйте сервер дополнительными запросами, хотя бы тем же ab.

serg-smirnoff
На сайте с 23.02.2008
Offline
139
#24
WapGraf:
Выключите то что не используется на текущий момент.

я на сегодня все. завтра погоняю, и потестирую с "голым" апачом

A
На сайте с 18.05.2008
Offline
207
#25

Я могу ошибаться, но вроде бы ошибка ушла.

Когда я проверял сайт в самом начале темы, то действительно ловил 403 при первом переходе. Сейчас же мне не удается это повторить ни каким образом.

Я конечно не могу видеть полной картины, но спрошу на всякий: serg-smirnoff, вы проверяли логи более свежей даты?

LineHost.Org - Хостинг и VPS в Москве | VPS в США (http://linehost.org/) WebNicks.Com - Дешевая Регистрация Доменов Онлайн (http://webnicks.com/)
nezabor
На сайте с 19.07.2010
Offline
152
#26

1 отключи cgi

2 команда #tail -50 /var/www/httpd-logs/domain.tld.error.log

чего даст?

и уже отсюда плясать

Чудес не бывает...
serg-smirnoff
На сайте с 23.02.2008
Offline
139
#27
nezabor:
1 отключи cgi
2 команда #tail -50 /var/www/httpd-logs/domain.tld.error.log
чего даст?
и уже отсюда плясать

cgi отключил, отключил также пару модулей апача, такие как autoindex и php5_cgi но пока не нормализовалась работа

результат команды:

(все стрикт_стандарты это старая версия phpbb на новой версии php)

root@onlysites ~ # tail -50 /var/www/httpd-logs/schekino.net.error.log
[Mon Oct 21 09:58:57 2013] [error] [client 89.107.196.39] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/, referer: http://www .schekino.net/forum/viewtopic.php?f=41&t=8530&p=116592
[Mon Oct 21 10:05:50 2013] [error] [client 5.255.210.93] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/
[Mon Oct 21 10:09:57 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically, as suming $this from incompatible context in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/search/fulltext_native.php on line 1523, referer: http ://www.schekino.net/forum/viewtopic.php?p=116590
[Mon Oct 21 10:09:57 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::recompose() should not be called statical ly, assuming $this from incompatible context in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_normalizer.php on line 145, referer: htt p://www.schekino.net/forum/viewtopic.php?p=116590
[Mon Oct 21 10:10:28 2013] [error] [client 213.180.206.197] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/
[Mon Oct 21 10:10:28 2013] [error] [client 95.108.129.207] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/
[Mon Oct 21 10:10:31 2013] [error] [client 213.180.206.197] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_tools.php on line 1781, referer: http://www.schekino.net/forum/posting.php?mode=edit&f=3 4&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::recompose() should not be called statical ly in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_normalizer.php on line 145, referer: http://www.schekino.net/forum/posting.php?mod e=edit&f=34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_tools.php on line 1781, referer: http://www.schekino.net/forum/posting.php?mode=edit&f=3 4&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::recompose() should not be called statical ly in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_normalizer.php on line 145, referer: http://www.schekino.net/forum/posting.php?mod e=edit&f=34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_tools.php on line 1781, referer: http://www.schekino.net/forum/posting.php?mode=edit&f=3 4&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::nfkc() should not be called statically in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_tools.php on line 1663, referer: http://www.schekino.net/forum/posting.php?mode=edit&f= 34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::recompose() should not be called statical ly in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_normalizer.php on line 177, referer: http://www.schekino.net/forum/posting.php?mod e=edit&f=34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::nfkc() should not be called statically in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_tools.php on line 1663, referer: http://www.schekino.net/forum/posting.php?mode=edit&f= 34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::recompose() should not be called statical ly in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_normalizer.php on line 177, referer: http://www.schekino.net/forum/posting.php?mod e=edit&f=34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically, as suming $this from incompatible context in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/search/fulltext_native.php on line 1523, referer: http ://www.schekino.net/forum/posting.php?mode=edit&f=34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::recompose() should not be called statical ly, assuming $this from incompatible context in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_normalizer.php on line 145, referer: htt p://www.schekino.net/forum/posting.php?mode=edit&f=34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically, as suming $this from incompatible context in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/search/fulltext_native.php on line 1523, referer: http ://www.schekino.net/forum/posting.php?mode=edit&f=34&p=116593
[Mon Oct 21 10:11:49 2013] [error] [client 89.107.196.39] PHP Strict Standards: Non-static method utf_normalizer::recompose() should not be called statical ly, assuming $this from incompatible context in /var/www/serg-smirnoff/data/www/schekino.net/forum/includes/utf/utf_normalizer.php on line 145, referer: htt p://www.schekino.net/forum/posting.php?mode=edit&f=34&p=116593
[Mon Oct 21 10:16:27 2013] [error] [client 89.107.196.39] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/, referer: http://www .schekino.net/forum/viewtopic.php?f=34&t=8408&p=116593
[Mon Oct 21 10:20:32 2013] [error] [client 212.35.173.189] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/
[Mon Oct 21 10:24:45 2013] [error] [client 5.255.210.93] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/
[Mon Oct 21 10:29:35 2013] [error] [client 95.108.129.207] Attempt to serve directory: /var/www/serg-smirnoff/data/www/www.schekino.net/



---------- Добавлено 21.10.2013 в 10:48 ----------

addurl:
Я могу ошибаться, но вроде бы ошибка ушла.
Когда я проверял сайт в самом начале темы, то действительно ловил 403 при первом переходе. Сейчас же мне не удается это повторить ни каким образом.
Я конечно не могу видеть полной картины, но спрошу на всякий: serg-smirnoff, вы проверяли логи более свежей даты?

Ошибка File does not exist 403 заменилась на ошибку Attempt to serve directory

Думаю это после отключения мода autoindex для apache2

Т.е. грубо говоря проблема никуда не ушла, она просто с 403 превратилась в 404. Что-то все равно периодические теряет index.php по неясной причине и запрашивает листинг директории.

[Удален]
#28
serg-smirnoff:
Ошибка File does not exist 403 заменилась на ошибку Attempt to serve directory
Думаю это после отключения мода autoindex для apache2

Верно думаете.

serg-smirnoff
На сайте с 23.02.2008
Offline
139
#29
WapGraf:
Верно думаете.

Вернул обратно, т.к. проблема не ушла. Просто с 403 превратилась в 404

---------- Добавлено 21.10.2013 в 11:05 ----------

Мне намекали, что это может быть из-за лимитов. Но лимитов на что? На одновременно открытое количество файлов? Где это мониторить?

По htop я не вижу выхода за пределы допустимых памяти и процессора. Все работает штатно.

[Удален]
#30

Трудно представлять что там и как. Лучше предоставить сервер специалисту. Удаленно это не работа.

Как вариант - попробовать обновить апач и модули (без пхп).

1 234

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий