Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx pop-proxy
On Wed, 25 Jan 2006 nsenkov@xxxxxxxxxxxxxxxx wrote:
Пытаюсь настроить nginx в качестве почтового прокси
Делал так:
Установка
#tar -xvzf zlib-1.2.3.tar.gz
#tar -xvzf pcre-6.3.tar.gz
#tar -xvzf nginx-0.3.22.tar.gz
-bash-2.05b# ./configure --prefix=/usr/local/nginx
--sbin-path=/usr/local/sbin
--conf-path=/usr/local/nginx/nginx.conf
--pid-path=/usr/local/nginx/nginx.pid
--with-imap --with-http_ssl_module --with-pcre=../pcre-6.3
--with-zlib=../zlib-1.2.3
вывод:
Configuration summary
+ threads are not used
+ using PCRE library: ../pcre-6.3
+ using system OpenSSL library
+ md5 library is not used
+ using zlib library: ../zlib-1.2.3
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/sbin"
nginx configuration file: "/usr/local/nginx/nginx.conf"
nginx pid file: "/usr/local/nginx/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/nginx/logs/access.log"
nginx http client request body temporary files:
"/usr/local/nginx/client_body_temp"
nginx http proxy temporary files: "/usr/local/nginx/proxy_temp"
nginx http fastcgi temporary files: "/usr/local/nginx/fastcgi_temp"
Компилируем и устанавливаем nginx:
#make
#make install
Настройка
Использование в качестве почтового прокси
Конфигурация
nginx.conf
---------------------
worker_processes 1;
events {
worker_connections 1024;
}
imap {
#auth_http unix:/path/socket:/cgi-bin/auth;
auth_http localhost:9000/cgi-bin/auth;
pop3_capabilities "TOP" "USER";
imap_capabilities "IMAP4rev1" "UIDPLUS";
server {
listen 110;
protocol pop3;
proxy on;
}
server {
listen 143;
protocol imap;
proxy on;
}
}
Запускаю
-bash-2.05b# /usr/local/sbin/nginx
Segmentation fault (core dumped)
Есть такая бага. Нужно или собрать с --without-http, или добавить такое:
http {
server { listen 127.0.0.1:8000; }
}
Игорь Сысоев
http://sysoev.ru
|