Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTPS proxy


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: HTTPS proxy
  • From: <ewgenow@xxxxxxxxx>
  • Date: Wed, 8 Sep 2010 16:22:27 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=KobUBmSJyUbVxAgVQiLakkJSF+XUgY5Tk5qxRHM56t0=; b=mpOuFwB19W66nNYJ4MaEzIfRMO+rCBluDcRayr+TLkskNPz174EtRrPM1iOFfOeaeS k+g7wjxGYV85dh8f3EEwZrZd/SQjca+RuJtPHxDy0TjXwwHXC1rsoHbsvXlJ9AxH7GQN pXjFnHzvmk4x8nfbDDRwy5Cz8V33bv0MJGJNI=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hbTPVIq9mfZA3ipMWjHu2wW8Ih/+M1sh7wQiD48drEfqfG5hrNKUi893EYOmbrW+bn j6fl9+E14DjYwcvgTGCdiPnEJBy4ZsJy0lkr5LdqXfbS9LJHrq3dbIKulapRZEK+gRRe nHph1fzxzYY7AcUaL+i9lQSsszXggGmodFKhw=
  • In-reply-to: <AANLkTi=-n3+vvrBq5ESO=0a6XbJOxYS5PLaU05FrK_c2@xxxxxxxxxxxxxx>
  • References: <AANLkTikBRdkuag7jG2kRzY8=HR92kXE7Vf0UiQdJ8B-F@xxxxxxxxxxxxxx> <AANLkTi=-n3+vvrBq5ESO=0a6XbJOxYS5PLaU05FrK_c2@xxxxxxxxxxxxxx>

. , nginx , 192.168.1.200 ( Śmail.site.com). - ?
/etc/nginx/mail.conf ( . ), 443 nginx.conf ( http , ɚlocation), ӣ ,proxy_pass , .

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/mail.access.log main;
sendfile on;
keepalive_timeout 65;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
server {
listen 2345;
server_name mail.site.com;
ssl on;
ssl_prefer_server_ciphers off;
ssl_certificate /usr/local/nginx/conf/server.crt;
ssl_certificate_key /usr/local/nginx/conf/server.key;

access_log /var/log/nginx/mail.access.log main;

location /somemail {
#proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}



_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.