1
我正在使我自己的域名使用SSL/https(https://example.com),并显示没有Tumblr URL(example.tumblr.com)的我的Tumblr博客。我如何使用HttpSubsModule纠正Nginx的Tumblr反向代理
HttpSubsModule(技术渭滨姚明)已经被添加到Nginx的,和/ etc/nginx的/网站可用/反向代理下列要求:发生
server
{
listen 443;
server_name example.com;
ssl on;
ssl_certificate /root/example_com.crt;
ssl_certificate_key /root/example.key;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP;
location/{
subs_filter_types text/html text/css text/xml;
subs_filter example.tumblr.com example.com g;
proxy_redirect http://example.tumblr.com/ /;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host "example.tumblr.com";
proxy_set_header Accept-Encoding "";
proxy_pass http://example.tumblr.com;
}
}
server
{
listen 80;
server_name example.com;
rewrite ^(.*) https://example.com/$1 permanent;
}
2问题: ①登录Chrome浏览器混合加载时检测到的内容https://example.com, ②单击任何图像时404未找到。
任何想法我在这里做错了吗?非常感谢。
通过使用dotdeb.org的nginx与nginx-full。 – Yin 2014-10-31 08:01:00