nginx做LDAP端口转发
在nginx的配置文件/etc/nginx/nginx.conf中配置
stream {
server {
proxy_timeout 300s;
proxy_connect_timeout 300s;
listen 1234;
proxy_pass 127.0.0.1:389;
proxy_busy_buffers_size 64k;
}
}
389是ldap原来的端口,1234是用nginx转发的新端口