Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
proxy https to http
- To: nginx-ru@xxxxxxxxx
- Subject: proxy https to http
- From: "Dmitry Veselov" <nginx-forum@xxxxxxxx>
- Date: Wed, 28 Apr 2010 07:50:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=efCJgiyY6fAHzlai8UqyHyfnPxBGEeHIRBItMlSkQpI=; b=MuvAUz28kxljGUDP8fZy87rxAYK/mHF5GlvDR6xvhHQ+Nle/8RabZfQjPsNw0u8KTb/IvNbhV6AKwzsRS9agS1faolwDyxWEvH1uCXKF2sUHFwhdhQXcfCC+EdeoqDK/;
nginx version: nginx/0.7.65
конфиг по-умолчанию
[code]
# cat sfjd.tst.ssl.conf
server {
listen sjfd.tst:443;
server_name sjfd.tst www.sjfd.tst;
ssl on;
ssl_certificate /path/to/www.sjfd.tst.crt;
ssl_certificate_key /path/to/www.sjfd.tst.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
location / {
sub_filter http:// https://;
sub_filter_once off;
sub_filter_types text/xml text/css text/javascript;
proxy_pass http://192.168.0.2;
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;
proxy_set_header Accept-Encoding "";
}
}
[/code]
работает только заглавная страница, при переходе на другие адрес меняется на
http://... и выскакивает 404 страница nginx'a
что нужно сделать чтобы заработал sub_filter модуль?
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,80238,80238#msg-80238
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|