Permalink
Browse files

Site updated at 2013-02-21 15:07:14 UTC

  • Loading branch information...
1 parent 88d4803 commit afecbe7f53723972dacb429fb6882c0154b17a6e @wongyouth committed Feb 21, 2013
Showing with 1,002 additions and 248 deletions.
  1. +46 −14 atom.xml
  2. +6 −5 blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/index.html
  3. +6 −5 blog/2012/04/21/install-ruby-environment-on-ubuntu/index.html
  4. +6 −5 blog/2012/04/26/git-branch/index.html
  5. +6 −5 blog/2012/04/26/git-tagging/index.html
  6. +6 −5 blog/2012/06/18/tmall-za-jin-dan/index.html
  7. +6 −5 blog/2012/06/20/setup-new-ubuntu-environment/index.html
  8. +6 −5 blog/2012/06/25/use-postgresql-with-rails/index.html
  9. +6 −5 blog/2012/06/30/use-mongoid-with-rails/index.html
  10. +6 −5 blog/2012/07/05/rails-development-oriented-vimfiles/index.html
  11. +6 −5 blog/2012/10/25/return-to-old-revision-on-git-repo/index.html
  12. +6 −5 blog/2012/11/05/make-a-git-repo-mirror-for-redmine/index.html
  13. +6 −5 blog/2012/12/20/migrate-data-from-mysql-to-postgresql-or-vice-versa/index.html
  14. +35 −21 blog/2013/01/05/make-your-site-ssl-enabled/index.html
  15. +312 −0 blog/2013/01/30/use-lvm-with-your-server/index.html
  16. +23 −8 blog/archives/index.html
  17. +1 −1 blog/categories/database/atom.xml
  18. +6 −5 blog/categories/database/index.html
  19. +1 −1 blog/categories/git/atom.xml
  20. +6 −5 blog/categories/git/index.html
  21. +1 −1 blog/categories/github/atom.xml
  22. +6 −5 blog/categories/github/index.html
  23. +36 −0 blog/categories/lvm/atom.xml
  24. +221 −0 blog/categories/lvm/index.html
  25. +1 −1 blog/categories/mongodb/atom.xml
  26. +6 −5 blog/categories/mongodb/index.html
  27. +1 −1 blog/categories/octopress/atom.xml
  28. +6 −5 blog/categories/octopress/index.html
  29. +1 −1 blog/categories/postgresql/atom.xml
  30. +6 −5 blog/categories/postgresql/index.html
  31. +1 −1 blog/categories/rails/atom.xml
  32. +6 −5 blog/categories/rails/index.html
  33. +1 −1 blog/categories/redmine/atom.xml
  34. +6 −5 blog/categories/redmine/index.html
  35. +1 −1 blog/categories/ruby/atom.xml
  36. +6 −5 blog/categories/ruby/index.html
  37. +21 −14 blog/categories/server/atom.xml
  38. +6 −5 blog/categories/server/index.html
  39. +21 −1 blog/categories/ubuntu/atom.xml
  40. +23 −5 blog/categories/ubuntu/index.html
  41. +1 −1 blog/categories/vim/atom.xml
  42. +6 −5 blog/categories/vim/index.html
  43. +49 −5 blog/page/2/index.html
  44. +60 −52 index.html
  45. +7 −3 sitemap.xml
View
@@ -4,7 +4,7 @@
<title><![CDATA[Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2013-01-10T23:02:16+08:00</updated>
+ <updated>2013-02-21T23:06:23+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
@@ -14,22 +14,44 @@
<entry>
+ <title type="html"><![CDATA[use lvm with your server]]></title>
+ <link href="http://wongyouth.github.com/blog/2013/01/30/use-lvm-with-your-server/"/>
+ <updated>2013-01-30T11:22:00+08:00</updated>
+ <id>http://wongyouth.github.com/blog/2013/01/30/use-lvm-with-your-server</id>
+ <content type="html"><![CDATA[<p>based on:
+ * a disk /dev/xvdd more than 50G
+ * ubuntu 12.04 LTS</p>
+
+<p>sudo apt-get install lvm2
+sudo pvcreate /dev/xvdd
+sudo vgcreate yun /dev/xvdd
+sudo lvcreate -L 50G -n pg yun</p>
+
+<p>sudo mkfs.ext4 /dev/mapper/yun-pg</p>
+
+<p>sudo mount /dev/mapper/yun-pg /mnt</p>
+]]></content>
+ </entry>
+
+ <entry>
<title type="html"><![CDATA[让你的网站支持SSL]]></title>
<link href="http://wongyouth.github.com/blog/2013/01/05/make-your-site-ssl-enabled/"/>
<updated>2013-01-05T20:46:00+08:00</updated>
<id>http://wongyouth.github.com/blog/2013/01/05/make-your-site-ssl-enabled</id>
- <content type="html"><![CDATA[<p>ssl是什么,就是你在网址里面看到的https,区别的http,如果是ssl的,那么他所传输的数据是保密的,
-别人无法根据监听网络偷取你的信用卡数据,登录密码。现在国内的网站基本上都支持ssl了。
-用apache可以简单的配置一个网站,但是ssl一直没有支持,原因是ssl的CA一把都是收费的。
-现在终于好了,startssl.com支持免费的单域名。</p>
+ <content type="html"><![CDATA[<p>ssl是什么,ssl就是你在网址里面看到的https。区别于http,如果是ssl的,那么他所传输的数据是保密的,
+别人无法根据监听网络偷取你的信用卡数据,登录密码。现在国内的银行等大型网站基本上都支持ssl了。</p>
+
+<p>我们在用apache作为web服务器来配置一个网站的时候,往往自动忽略掉配置ssl,原因是ssl的CA一把都是收费的。
+而且费用也都不低。现在终于好了,startssl.com支持免费的单域名了。</p>
<!-- more -->
<p>startssl.com支持class1级别的ssl服务,如果你的网站没有多个子域名,那就完全可以使用了。
-如果的你的网站有多个子域名,那么就无法支持全站的ssl了。
-当然有个折中的方案就是只让登录的处理支持ssl,别的页面不需要ssl,
-下面就是我这个折中方案的步骤。</p>
+如果的你的网站有多个子域名,那么就无法支持全站的ssl。</p>
+
+<p>当然有个折中的方案就是只让登录的处理支持ssl,别的页面不需要ssl,
+下面就是我这个折中方案的做法步骤。</p>
<ul>
<li>首先需要到startssl.com注册</li>
@@ -47,7 +69,7 @@ cat domain.csr # 把输出整个复制到startssl.com生成ssl的输入框内
<ul>
<li>a2enmod ssl</li>
<li>a2enmod rewrite</li>
-<li>修改virtual host配置,当login处理是跳转到ssl,当其他处理时从ssl跳回到普通的http</li>
+<li>修改virtual host配置,当login处理是跳转到ssl,当其他处理时从https跳回到普通的http</li>
</ul>
</li>
</ul>
@@ -86,15 +108,20 @@ cat domain.csr # 把输出整个复制到startssl.com生成ssl的输入框内
<span class='line-number'>31</span>
<span class='line-number'>32</span>
<span class='line-number'>33</span>
+<span class='line-number'>34</span>
+<span class='line-number'>35</span>
+<span class='line-number'>36</span>
+<span class='line-number'>37</span>
+<span class='line-number'>38</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>&lt;VirtualHost _default_:80&gt;
</span><span class='line'> ServerName example.com
</span><span class='line'> ServerAlias *.example.com
</span><span class='line'> DocumentRoot /home/httpd/private
-</span><span class='line'> SSLEngine on
-</span><span class='line'> SSLCertificateFile /usr/local/apache/conf/domain.crt
-</span><span class='line'> SSLCertificateKeyFile /usr/local/apache/conf/domain.key
-</span><span class='line'> SSLCertificateChainFile /usr/local/apache/conf/sub.class1.server.ca.pem
-</span><span class='line'> SSLCACertificateFile /usr/local/apache/conf/ca.pem
+</span><span class='line'>
+</span><span class='line'> ErrorLog /var/log/apache2/example_errors.log
+</span><span class='line'> LogLevel warn
+</span><span class='line'> CustomLog /var/log/apache2/example_ssl_access.log combined
+</span><span class='line'>
</span><span class='line'> RewriteEngine On
</span><span class='line'> RewriteCond %{HTTP:X-Forwarded-Proto} !=https
</span><span class='line'> RewriteCond %{REQUEST_URI} ^/login
@@ -105,6 +132,11 @@ cat domain.csr # 把输出整个复制到startssl.com生成ssl的输入框内
</span><span class='line'> ServerName example.com
</span><span class='line'> ServerAlias *.example.com
</span><span class='line'> DocumentRoot /home/httpd/private
+</span><span class='line'>
+</span><span class='line'> ErrorLog /var/log/apache2/example_errors.log
+</span><span class='line'> LogLevel warn
+</span><span class='line'> CustomLog /var/log/apache2/example_ssl_access.log combined
+</span><span class='line'>
</span><span class='line'> SSLEngine on
</span><span class='line'> SSLCertificateFile /usr/local/apache/conf/ssl.crt
</span><span class='line'> SSLCertificateKeyFile /usr/local/apache/conf/ssl.key
@@ -36,6 +36,7 @@
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script src="/javascripts/jiathis.js" type="text/javascript"></script>
<meta property="wb:webmaster" content="7f133defa7956d35" />
+<meta property="qc:admins" content="544531077671754067140526375" />
<script type="text/javascript">
@@ -311,6 +312,10 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2013/01/30/use-lvm-with-your-server/">use lvm with your server</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2013/01/05/make-your-site-ssl-enabled/">让你的网站支持SSL</a>
</li>
@@ -326,15 +331,11 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
<a href="/blog/2012/10/25/return-to-old-revision-on-git-repo/">Git中如何退回到旧版本</a>
</li>
- <li class="post">
- <a href="/blog/2012/07/05/rails-development-oriented-vimfiles/">rails开发用 vimfiles 配置</a>
- </li>
-
</ul>
</section>
<section>
<h1>分类</h1>
- <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (3)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
+ <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/lvm'>lvm (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (4)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
</section>
<section>
<h1>近期评论</h1>
@@ -31,6 +31,7 @@
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script src="/javascripts/jiathis.js" type="text/javascript"></script>
<meta property="wb:webmaster" content="7f133defa7956d35" />
+<meta property="qc:admins" content="544531077671754067140526375" />
<script type="text/javascript">
@@ -286,6 +287,10 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2013/01/30/use-lvm-with-your-server/">use lvm with your server</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2013/01/05/make-your-site-ssl-enabled/">让你的网站支持SSL</a>
</li>
@@ -301,15 +306,11 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
<a href="/blog/2012/10/25/return-to-old-revision-on-git-repo/">Git中如何退回到旧版本</a>
</li>
- <li class="post">
- <a href="/blog/2012/07/05/rails-development-oriented-vimfiles/">rails开发用 vimfiles 配置</a>
- </li>
-
</ul>
</section>
<section>
<h1>分类</h1>
- <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (3)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
+ <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/lvm'>lvm (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (4)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
</section>
<section>
<h1>近期评论</h1>
@@ -30,6 +30,7 @@
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script src="/javascripts/jiathis.js" type="text/javascript"></script>
<meta property="wb:webmaster" content="7f133defa7956d35" />
+<meta property="qc:admins" content="544531077671754067140526375" />
<script type="text/javascript">
@@ -246,6 +247,10 @@ <h1 class="entry-title">Git分支常用操作</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2013/01/30/use-lvm-with-your-server/">use lvm with your server</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2013/01/05/make-your-site-ssl-enabled/">让你的网站支持SSL</a>
</li>
@@ -261,15 +266,11 @@ <h1 class="entry-title">Git分支常用操作</h1>
<a href="/blog/2012/10/25/return-to-old-revision-on-git-repo/">Git中如何退回到旧版本</a>
</li>
- <li class="post">
- <a href="/blog/2012/07/05/rails-development-oriented-vimfiles/">rails开发用 vimfiles 配置</a>
- </li>
-
</ul>
</section>
<section>
<h1>分类</h1>
- <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (3)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
+ <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/lvm'>lvm (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (4)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
</section>
<section>
<h1>近期评论</h1>
@@ -34,6 +34,7 @@
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script src="/javascripts/jiathis.js" type="text/javascript"></script>
<meta property="wb:webmaster" content="7f133defa7956d35" />
+<meta property="qc:admins" content="544531077671754067140526375" />
<script type="text/javascript">
@@ -287,6 +288,10 @@ <h1 class="entry-title">Git标签常用操作</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2013/01/30/use-lvm-with-your-server/">use lvm with your server</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2013/01/05/make-your-site-ssl-enabled/">让你的网站支持SSL</a>
</li>
@@ -302,15 +307,11 @@ <h1 class="entry-title">Git标签常用操作</h1>
<a href="/blog/2012/10/25/return-to-old-revision-on-git-repo/">Git中如何退回到旧版本</a>
</li>
- <li class="post">
- <a href="/blog/2012/07/05/rails-development-oriented-vimfiles/">rails开发用 vimfiles 配置</a>
- </li>
-
</ul>
</section>
<section>
<h1>分类</h1>
- <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (3)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
+ <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/lvm'>lvm (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (4)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
</section>
<section>
<h1>近期评论</h1>
@@ -33,6 +33,7 @@
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script src="/javascripts/jiathis.js" type="text/javascript"></script>
<meta property="wb:webmaster" content="7f133defa7956d35" />
+<meta property="qc:admins" content="544531077671754067140526375" />
<script type="text/javascript">
@@ -336,6 +337,10 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/blog/2013/01/30/use-lvm-with-your-server/">use lvm with your server</a>
+ </li>
+
+ <li class="post">
<a href="/blog/2013/01/05/make-your-site-ssl-enabled/">让你的网站支持SSL</a>
</li>
@@ -351,15 +356,11 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<a href="/blog/2012/10/25/return-to-old-revision-on-git-repo/">Git中如何退回到旧版本</a>
</li>
- <li class="post">
- <a href="/blog/2012/07/05/rails-development-oriented-vimfiles/">rails开发用 vimfiles 配置</a>
- </li>
-
</ul>
</section>
<section>
<h1>分类</h1>
- <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (3)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
+ <ul id="category-list"><li><a href='/blog/categories/database'>database (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/lvm'>lvm (1)</a></li><li><a href='/blog/categories/mongodb'>mongodb (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>postgresql (1)</a></li><li><a href='/blog/categories/rails'>rails (4)</a></li><li><a href='/blog/categories/redmine'>redmine (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/server'>server (1)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (4)</a></li><li><a href='/blog/categories/vim'>vim (1)</a></li></ul>
</section>
<section>
<h1>近期评论</h1>
Oops, something went wrong.

0 comments on commit afecbe7

Please sign in to comment.