<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[Nginx 400 Bad Request The plain HTTP request was sent to HTTPS port]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sun, 12 Aug 2018 15:47:53 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：ssl on打开后直接访问Http，出现400错，想能通过Http访问到，得注释掉ssl on;即可。<br/>Problem<br/>When viewing any of my sites using port 80, the following error appeared on non-SSL websites:<br/><br/>Nginx 400 Bad Request The plain HTTP request was sent to HTTPS port<br/>Original server block:<br/><br/>server &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;listen 80;<br/>&nbsp;&nbsp;&nbsp;&nbsp;listen 443;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;ssl on;<br/>&nbsp;&nbsp;&nbsp;&nbsp;ssl_certificate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /path/to/cert/example.pem;<br/>&nbsp;&nbsp;&nbsp;&nbsp;ssl_certificate_key&nbsp;&nbsp;&nbsp;&nbsp; /path/to/cert/example.private.key;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;root /path/to/wordpress;<br/>&nbsp;&nbsp;&nbsp;&nbsp;index index.php;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;# Website URL<br/>&nbsp;&nbsp;&nbsp;&nbsp;server_name blog.duaneleem.com;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;# etc...<br/>&#125;<br/> <br/><br/>Solution<br/>After reading NGINX documentation, the solution to this was to place the SSL directive on “listen.” Here’s a sample server block that demonstrates this:<br/><br/>server &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;listen 80;<br/>&nbsp;&nbsp;&nbsp;&nbsp;listen 443 ssl;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;ssl_certificate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /path/to/cert/example.pem;<br/>&nbsp;&nbsp;&nbsp;&nbsp;ssl_certificate_key&nbsp;&nbsp;&nbsp;&nbsp; /path/to/cert/example.private.key;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;root /path/to/wordpress;<br/>&nbsp;&nbsp;&nbsp;&nbsp;index index.php;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;# Website URL<br/>&nbsp;&nbsp;&nbsp;&nbsp;server_name blog.duaneleem.com;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;# etc...<br/>&#125;<br/>By adding “ssl” to the listen directive to all my server blocks, everything started working again.<br/><br/><br/>From： https://blog.duaneleem.com/nginx-ssl-on/
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Nginx 400 Bad Request The plain HTTP request was sent to HTTPS port]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>