Current time: 11-25-2024, 02:16 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 5 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ispCP & nginx
Author Message
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #84
RE: ispCP & nginx
А для Awstat тупо делается замена папки домена

#LogFile="/var/log/httpd/bull-doc.ru-combined.log"
LogFile="/var/log/nginx/bull-doc.ru-access.log"

А можно сделать ещё проще - настроить Nginx на вливание слових логов в папку апача.
Формат совпадает. Логи доступа к телу апача уже не нужны, кроме ерорлогов.

Не забываем поправить шаблончик
/etc/ispcp/awstats/awstats.ispcp_tpl.conf
Шобы накормить юзеров логами идём в Файлик основного конфига панели и меняем
#APACHE_BACKUP_LOG_DIR = /var/log/httpd/backup
APACHE_BACKUP_LOG_DIR = /var/log/nginx/backup

#APACHE_USERS_LOG_DIR = /var/log/httpd/users
APACHE_USERS_LOG_DIR = /var/log/nginx

Должно работать...
Хотя нахрена юзерам дубли логов если они поставляются кроном раз в сутки я не понял. Токма для красовты.
Вот важный момент по передачи заголовков. Возможно у меня хупс из-за этого не пахал
Проверяйте кто нить сами, я уже опух. Всю рекламу с моих сайтов поснимали, пока я колупался Sad

nginx, apache, mod_rpaf и не правильное определение прокси
January 18th, 2009
No comments
http://unix-notes.ru/2009/01/18/nginx-ap...ie-proksi/
Если вы используете такую связку, и в nginx присуствуют следующие директивы
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;

чтобы пробросить ip пользователя к apache, то некоторые скрипты, работающие под apache из-за заголовка X-Forwarded-For могут считать, что пользователь пришел через прокси. А это не желательно. В таком случае в nginx те два заголовка надо заменить на:
proxy_set_header Test $remote_addr;

а в конфиге mod_rpaf сделать так:
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1 внешние ип-ы
RPAFheader Test
Сижу, наслаждаюсь топами и графиками.
И куда теперь стока мощи девать... И так клиентов с гулькин поц было...
Вот только мелкие глючки настроение портят.
Ужасно ненравится, что у php-fpm нет мягкого рестатрта или релоада конфигов.
Скрипты на обработке соответственно валятся, если ручками чонить переделываеш.
(This post was last modified: 03-02-2010 03:52 PM by data-stream_ru.)
03-02-2010 03:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
ispCP & nginx - data-stream_ru - 11-04-2009, 12:50 PM
RE: ispCP & nginx - server801 - 11-04-2009, 08:26 PM
RE: ispCP & nginx - data-stream_ru - 11-07-2009, 02:33 PM
RE: ispCP & nginx - server801 - 11-07-2009, 09:05 PM
RE: ispCP & nginx - koffu - 01-09-2010, 11:10 AM
RE: ispCP & nginx - data-stream_ru - 01-11-2010, 01:45 AM
RE: ispCP & nginx - server801 - 01-09-2010, 04:54 PM
RE: ispCP & nginx - koffu - 01-09-2010, 10:53 PM
RE: ispCP & nginx - koffu - 01-10-2010, 10:12 AM
RE: ispCP & nginx - server801 - 01-10-2010, 11:32 PM
RE: ispCP & nginx - koffu - 01-10-2010, 11:37 PM
RE: ispCP & nginx - server801 - 01-11-2010, 12:40 AM
RE: ispCP & nginx - koffu - 01-11-2010, 06:47 AM
RE: ispCP & nginx - server801 - 01-11-2010, 07:40 AM
RE: ispCP & nginx - koffu - 01-11-2010, 07:47 AM
RE: ispCP & nginx - koffu - 01-12-2010, 04:30 PM
RE: ispCP & nginx - data-stream_ru - 01-14-2010, 01:23 AM
RE: ispCP & nginx - data-stream_ru - 01-16-2010, 10:29 PM
RE: ispCP & nginx - koffu - 01-17-2010, 08:10 PM
RE: ispCP & nginx - Kursor - 01-26-2010, 12:30 AM
RE: ispCP & nginx - koffu - 01-26-2010, 01:55 AM
RE: ispCP & nginx - koffu - 01-26-2010, 04:44 AM
RE: ispCP & nginx - marchaos - 01-26-2010, 04:58 AM
RE: ispCP & nginx - koffu - 01-26-2010, 05:02 AM
RE: ispCP & nginx - marchaos - 01-26-2010, 05:41 AM
RE: ispCP & nginx - Kursor - 01-26-2010, 06:07 AM
RE: ispCP & nginx - Kursor - 01-26-2010, 06:20 AM
RE: ispCP & nginx - koffu - 01-26-2010, 06:45 AM
RE: ispCP & nginx - Kursor - 01-26-2010, 07:15 AM
RE: ispCP & nginx - koffu - 01-26-2010, 07:23 AM
RE: ispCP & nginx - Kursor - 01-26-2010, 07:33 AM
RE: ispCP & nginx - koffu - 01-26-2010, 07:38 AM
RE: ispCP & nginx - koffu - 01-27-2010, 07:11 PM
RE: ispCP & nginx - koffu - 01-28-2010, 08:44 AM
RE: ispCP & nginx - data-stream_ru - 01-30-2010, 07:42 PM
RE: ispCP & nginx - koffu - 01-31-2010, 08:30 AM
RE: ispCP & nginx - data-stream_ru - 02-01-2010, 02:53 PM
RE: ispCP & nginx - koffu - 02-01-2010, 06:57 PM
RE: ispCP & nginx - data-stream_ru - 02-01-2010, 08:44 PM
RE: ispCP & nginx - koffu - 02-03-2010, 08:59 AM
RE: ispCP & nginx - data-stream_ru - 02-03-2010, 09:30 PM
RE: ispCP & nginx - koffu - 02-05-2010, 07:56 AM
RE: ispCP & nginx - data-stream_ru - 02-05-2010, 06:30 PM
RE: ispCP & nginx - data-stream_ru - 02-12-2010, 04:53 PM
RE: ispCP & nginx - data-stream_ru - 02-12-2010, 06:09 PM
RE: ispCP & nginx - data-stream_ru - 02-12-2010, 10:18 PM
RE: ispCP & nginx - data-stream_ru - 02-12-2010, 11:34 PM
RE: ispCP & nginx - koffu - 02-13-2010, 12:44 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 01:53 AM
RE: ispCP & nginx - koffu - 02-13-2010, 01:59 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 02:56 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 05:29 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 07:12 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 12:53 PM
RE: ispCP & nginx - koffu - 02-13-2010, 06:52 PM
RE: ispCP & nginx - data-stream_ru - 02-14-2010, 01:40 AM
RE: ispCP & nginx - data-stream_ru - 02-15-2010, 07:07 AM
RE: ispCP & nginx - data-stream_ru - 02-17-2010, 08:06 PM
RE: ispCP & nginx - koffu - 02-18-2010, 08:21 AM
RE: ispCP & nginx - data-stream_ru - 02-18-2010, 09:23 PM
RE: ispCP & nginx - koffu - 02-18-2010, 09:25 PM
RE: ispCP & nginx - data-stream_ru - 02-19-2010, 07:43 AM
RE: ispCP & nginx - data-stream_ru - 02-22-2010, 06:36 AM
RE: ispCP & nginx - data-stream_ru - 02-23-2010, 11:27 AM
RE: ispCP & nginx - marchaos - 02-26-2010, 04:48 AM
RE: ispCP & nginx - data-stream_ru - 02-26-2010, 07:49 AM
RE: ispCP & nginx - marchaos - 02-26-2010, 06:03 PM
RE: ispCP & nginx - server801 - 02-27-2010, 05:27 AM
RE: ispCP & nginx - koffu - 02-27-2010, 07:11 AM
RE: ispCP & nginx - SolarW - 02-27-2010, 07:29 AM
RE: ispCP & nginx - data-stream_ru - 02-27-2010, 09:05 AM
RE: ispCP & nginx - SolarW - 02-28-2010, 09:33 AM
RE: ispCP & nginx - marchaos - 02-27-2010, 10:14 AM
RE: ispCP & nginx - data-stream_ru - 02-27-2010, 10:56 AM
RE: ispCP & nginx - marchaos - 02-27-2010, 11:03 AM
RE: ispCP & nginx - data-stream_ru - 02-27-2010, 11:57 PM
RE: ispCP & nginx - data-stream_ru - 02-28-2010, 01:30 AM
RE: ispCP & nginx - koffu - 03-01-2010, 06:28 AM
RE: ispCP & nginx - server801 - 03-01-2010, 06:38 AM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 11:45 AM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 12:45 PM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 01:47 PM
RE: ispCP & nginx - data-stream_ru - 03-02-2010 03:01 PM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 09:49 PM
RE: ispCP & nginx - server801 - 03-03-2010, 02:32 AM
RE: ispCP & nginx - data-stream_ru - 03-03-2010, 04:44 PM
RE: ispCP & nginx - data-stream_ru - 03-04-2010, 03:18 AM
RE: ispCP & nginx - data-stream_ru - 03-04-2010, 04:59 PM
RE: ispCP & nginx - data-stream_ru - 03-04-2010, 06:27 PM
RE: ispCP & nginx - koffu - 03-11-2010, 11:01 PM
RE: ispCP & nginx - data-stream_ru - 03-12-2010, 02:11 AM
RE: ispCP & nginx - GioMac - 03-16-2010, 07:31 AM
RE: ispCP & nginx - marchaos - 03-16-2010, 07:40 AM
RE: ispCP & nginx - GioMac - 03-16-2010, 08:19 AM
RE: ispCP & nginx - koffu - 03-18-2010, 10:19 PM
RE: ispCP & nginx - GioMac - 03-19-2010, 11:55 PM
RE: ispCP & nginx - data-stream_ru - 03-19-2010, 12:26 AM
RE: ispCP & nginx - data-stream_ru - 03-20-2010, 09:38 AM
RE: ispCP & nginx - data-stream_ru - 03-20-2010, 10:45 PM
RE: ispCP & nginx - data-stream_ru - 03-26-2010, 06:06 PM
RE: ispCP & nginx - GioMac - 03-28-2010, 10:57 AM
RE: ispCP & nginx - data-stream_ru - 03-28-2010, 06:44 PM
RE: ispCP & nginx - GioMac - 03-28-2010, 07:00 PM
RE: ispCP & nginx - server801 - 03-28-2010, 09:49 PM
RE: ispCP & nginx - data-stream_ru - 03-29-2010, 12:45 AM
RE: ispCP & nginx - GioMac - 03-29-2010, 05:21 AM
RE: ispCP & nginx - mad max - 03-29-2010, 05:15 AM
RE: ispCP & nginx - data-stream_ru - 03-29-2010, 09:31 AM
RE: ispCP & nginx - TTP - 05-04-2010, 10:02 PM
RE: ispCP & nginx - server801 - 03-29-2010, 07:26 AM
RE: ispCP & nginx - GioMac - 03-29-2010, 08:51 AM
RE: ispCP & nginx - data-stream_ru - 05-01-2010, 04:02 AM
RE: ispCP & nginx - server801 - 05-01-2010, 08:13 PM
RE: ispCP & nginx - data-stream_ru - 05-04-2010, 01:27 AM
RE: ispCP & nginx - data-stream_ru - 05-06-2010, 08:35 AM
RE: ispCP & nginx - TTP - 05-06-2010, 05:45 PM
RE: ispCP & nginx - koffu - 06-03-2010, 06:42 PM
RE: ispCP & nginx - koffu - 07-28-2010, 02:46 AM
RE: ispCP & nginx - data-stream_ru - 07-28-2010, 04:07 PM
RE: ispCP & nginx - DragonZX - 08-27-2010, 07:13 AM
RE: ispCP & nginx - data-stream_ru - 08-27-2010, 07:23 PM
RE: ispCP & nginx - koffu - 07-28-2010, 05:05 PM
RE: ispCP & nginx - koffu - 08-27-2010, 11:29 PM
RE: ispCP & nginx - koffu - 08-28-2010, 01:19 AM
RE: ispCP & nginx - DragonZX - 08-28-2010, 03:49 AM
RE: ispCP & nginx - koffu - 08-29-2010, 02:01 AM
RE: ispCP & nginx - koffu - 09-03-2010, 12:42 AM
RE: ispCP & nginx - server801 - 09-03-2010, 02:17 AM
RE: ispCP & nginx - koffu - 09-07-2010, 10:15 PM
RE: ispCP & nginx - DragonZX - 09-09-2010, 06:47 PM
RE: ispCP & nginx - koffu - 09-09-2010, 10:24 PM
RE: ispCP & nginx - koffu - 09-17-2010, 11:01 PM
RE: ispCP & nginx - Enkil - 09-21-2010, 06:08 AM
RE: ispCP & nginx - koffu - 09-21-2010, 06:48 AM
RE: ispCP & nginx - Enkil - 09-21-2010, 08:06 AM
RE: ispCP & nginx - Enkil - 09-21-2010, 09:47 AM
RE: ispCP & nginx - koffu - 09-21-2010, 04:19 PM
RE: ispCP & nginx - Enkil - 09-22-2010, 08:09 AM
RE: ispCP & nginx - koffu - 09-22-2010, 08:36 AM
RE: ispCP & nginx - server801 - 09-22-2010, 06:40 PM
RE: ispCP & nginx - DragonZX - 09-22-2010, 11:55 PM
RE: ispCP & nginx - koffu - 09-23-2010, 03:37 AM
RE: ispCP & nginx - Enkil - 09-26-2010, 06:34 AM
RE: ispCP & nginx - koffu - 09-30-2010, 04:33 AM
RE: ispCP & nginx - DragonZX - 09-30-2010, 05:50 AM
RE: ispCP & nginx - alt - 10-11-2010, 05:10 PM
RE: ispCP & nginx - data-stream_ru - 09-23-2010, 09:42 AM
RE: ispCP & nginx - Enkil - 09-30-2010, 05:53 AM
RE: ispCP & nginx - koffu - 09-30-2010, 06:48 AM
RE: ispCP & nginx - DragonZX - 09-30-2010, 07:37 AM
RE: ispCP & nginx - Enkil - 09-30-2010, 06:06 PM
RE: ispCP & nginx - DragonZX - 09-30-2010, 06:34 PM
RE: ispCP & nginx - Enkil - 09-30-2010, 07:21 PM
RE: ispCP & nginx - DragonZX - 09-30-2010, 09:40 PM
RE: ispCP & nginx - Enkil - 09-30-2010, 10:45 PM
RE: ispCP & nginx - koffu - 10-09-2010, 01:14 AM
RE: ispCP & nginx - DragonZX - 10-01-2010, 12:29 AM
RE: ispCP & nginx - Enkil - 10-01-2010, 02:22 AM
RE: ispCP & nginx - DragonZX - 10-01-2010, 02:38 AM
RE: ispCP & nginx - outbackdingo - 10-01-2010, 12:20 PM
RE: ispCP & nginx - DragonZX - 10-01-2010, 04:29 PM
RE: ispCP & nginx - alt - 10-08-2010, 09:06 PM
RE: ispCP & nginx - DragonZX - 10-12-2010, 10:25 PM
RE: ispCP & nginx - server801 - 10-12-2010, 11:42 PM
RE: ispCP & nginx - DragonZX - 10-13-2010, 12:32 AM
RE: ispCP & nginx - data-stream_ru - 10-25-2010, 02:49 PM
RE: ispCP & nginx - data-stream_ru - 02-21-2011, 11:37 PM
RE: ispCP & nginx - server801 - 02-23-2011, 07:41 AM
RE: ispCP & nginx - koffu - 03-01-2011, 10:18 PM
RE: ispCP & nginx - koffu - 09-21-2011, 10:13 PM
RE: ispCP & nginx - DragonZX - 09-22-2011, 12:39 AM

Forum Jump:


User(s) browsing this thread: 62 Guest(s)