.

Nginx ошибки & журналов доступа - VPS Admin # 9

English Английский (изменить)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

В примере вы не были уверены, где они живут

Nginx журналы ошибок изображение

Давайте кратко рассмотрим на нашем сервере и Nginx ошибки сайта & журналов доступа, и где их найти.

У вас есть одна пара Nginx логи сервера масштаба, а другой для каждого сайта, если вы не пропущен них. Журналы ошибок делают именно это, журнал ошибок. Журналов доступа показать, что веб-элементы были решены по IP адресу и когда.

Те, кто следовал обслуживать несколько сайтов & блогах с виртуальные хосты наметили места из журналов в каждый сайт или блог виртуальный хост-файл, или, если у вас комплект конфигурации каждого сайта в вашем файле nginx.conf, места для файлов там.

Вот напоминание попало.

Настройка Неуправляемые VPS (4 чайниками) .. VPS Библии

В 20 Copy / Paste шаги .. от нуля до героя, пустое поле Cute-как сервер Linux.

Прокрутку вниз для полного индекса серии.

Итак, эй, Сарай общих & Viva виртуальный! Надеемся, что оно помогает. The_guv

Nginx Web Server Error & доступе Вход страна

Чтобы перечислить их: --

ls -l /usr/local/nginx/logs

Or to open them:-

sudo nano /usr/local/nginx/logs/error.log

.. substituting error.log for access.log as appropriate.

Or if you installed Nginx using the package manager, rather than compiling from source as is recommended in the VPS Bible, they're here:-

sudo nano /etc/nginx/logs

Web Site Error & Access Log Locations

sudo nano /home/public_html/someSite.com/log/access.log

And the error page:-

sudo nano /home/public_html/someSite.com/log/error.log

My Error or Access Log is a Blank File/Won't Open.

In the case of the error log, hopefully it is indeed empty. With the access log, maybe it's just too darn big and is taking a long time to open. If you really want to look at it, be patient. Else delete it and add a new, empty one:-

sudo rm /home/public_html/someSite.com/log/access.log && sudo nano /home/public_html/someSite.com/log/access.log

.. saving the empty file.


SETUP an Unmanaged VPS (4 Newbies) .. The V-P-S Bible

Serve multi sites & blogs on a budget .. at the fastest possible speed .. with the least downtime .. in the most secure environment .. and future-proofed for easy admin.

That's what the VPS Bible is about, stepped out in simple copy & paste guides.

From high traffic WordPress blogs to startup web hosts, here's what you need.

Set it up?   Click here for the 21 part follow-up .. V-P-S Admin

  1. * Includes video tutorial.

  2. Not linked = not published. Won't be long. Fix a feed for updates.


If you liked that ...
... maybe you'll like these?

.