如果此时, 我在wp后台填写站点为: http://a.example.com; 则css(以http://方式引入)不能正常加载; 而改成https://a.example.com; 则登陆后台说是该服务器正在将此地址的请求循环重定向。问下原因? 如何解决?
fastcgi_param HTTPS on;
listen 443;
update_option( 'siteurl', 'https://a.example.com' );
update_option( 'home', 'https://a.example.com' );
fastcgi_param HTTPS $https if_not_empty;
proxy_pass https://IPofA:8080;
我的架构的确如你说说, 非常有效啊. 我就加了一句
fastcgi_param HTTPS on;
当然此时我也在内网机器上监听了ssl端口:
listen 443;
然后更改了后台地址, 暂时登陆不上去故用functions.php
update_option( 'siteurl', 'https://a.example.com' );
update_option( 'home', 'https://a.example.com' );
然后就一切正常了, 用https://a.example.com访问主页/后台都正常了.
话说, 我看到内网机器实际上已经有了这个:
fastcgi_param HTTPS $https if_not_empty;
照理说似乎应该没有问题才是啊? 问题可能就出在第一个nginx转发https的请求却被第二个nginx误认为是http?
--
-- 来自USTC LUG
请使用gmail订阅,不要灌水。
更多信息more info:http://groups.google.com/group/ustc_lug?hl=en?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "USTC_LUG" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ustc_lug/stdn8ootM0U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ustc_lug+u...@googlegroups.com.
嗯, 大致理解了. 话说如果有好几个app都在内网, 目前看来最方便是每个app开个端口. 但如果我想反向代理到子目录, 应该怎么配置呢? 内网假设就只有一台server, 但是假设通过http://IPofA/appname可以正常访问. 然后我想pass_proxy到该子目录好像不行啊.