Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: dc8aeaf3db
Fetching contributors…

Cannot retrieve contributors at this time

279 lines (224 sloc) 12.851 kb
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>하루프레스 개인도메인 설정방법 | day-by-day</title>
<meta name="description" content="인터넷, 기술, 영화, 음악 그리고 내 이야기">
<meta name="author" content="nezz">
<meta name="keywords" content="internet,tech,dev,movie,music,story" />
<meta name="generator" content="haroopress v0.9.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="/rss.xml" rel="alternate" title="day-by-day" type="application/rss+xml">
<!-- Le styles -->
<link rel="canonical" href="http://nezz.pe.kr">
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/bootstrap-responsive.css" rel="stylesheet">
<link href="/css/font-awesome.css" rel="stylesheet">
<link href="/css/markdown.css" rel="stylesheet">
<link href="/css/haroopress.css" rel="stylesheet">
<link href="/css/theme.css" rel="stylesheet">
<link href="/css/code/default.css" rel="stylesheet">
<!-- Le fav and touch icons -->
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="72x72" href="/favicon-64.png">
<!-- Le javascript -->
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.jsonp.js"></script>
<script src="/js/mustache.js"></script>
<script src="/js/apps/github.js"></script>
<script src="/js/apps/twitter.js"></script>
</head>
<body data-spy="scroll" data-target=".subnav" data-offset="50">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="pull-right" href="/rss.xml"><img src="/img/buttons/rss.png" /></a>
<div class="nav-collapse">
<ul class="nav">
<li>
<a href="/">Home</a>
</li>
<li>
<a href="/archives">Archives</a>
</li>
<li>
<a href="/slides">Slides</a>
</li>
<li>
<a href="/node-js-note/">Node.js note</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<link href="/css/code/default.css" rel="stylesheet">
<div class="container page-archive">
<div class="row">
<div class="span3">
<div id="author" class="well">
<div>
<h3>About Author</h3>
<ul class="thumbnails">
<li>
<a class="thumbnail">
<img src="http://www.gravatar.com/avatar/d1ca68e62108265ddf2e62b347aa716e?r=pg&amp;s=128.jpg&amp;d=identicon" />
</a>
</li>
</ul>
<p>
<strong>nezz</strong><br/>
blog: <a href="undefined" target="_blank">http://nezz.pe.kr</a><br/>
twitter: <a href="http://twitter.com/undefined" target="_blank">@imtaehyun</a><br/>
github: <a href="https://github.com/undefined" target="_blank">imtaehyun</a>
</p>
<p>
<a href="https://twitter.com/imtaehyun" class="twitter-follow-button" data-show-count="true">Follow @imtaehyun</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</p>
<p>
<p>잠시나마 스티브잡스와 같은길을 걸어본 사람</p>
</p>
</div>
<div>
<h3>About this Article</h3>
<p>
<h5>Date Released:</h5>
<span>Monday, November 5 2012 10:45 PM</span>
</p>
</div>
</div>
<div class="well">
<ul class="nav nav-list">
<li class="nav-header">Categories</li>
<li class=""><a href="/category"><i class="icon-home"></i> Home</a></li>
<li><a href="/category/dev"><i class="icon-book"></i> dev</a></li>
<li><a href="/category/story"><i class="icon-book"></i> story</a></li>
<li><a href="/category/haroopress"><i class="icon-book"></i> haroopress</a></li>
</ul>
</div>
<div class="well">
<ul class="nav nav-list">
<li class="nav-header">Recent Articles</li>
<li>
<a href="/post/first-server-with-node" target="_blank">First Server with node
<span class="label">nezz</span></a>
</li>
<li>
<a href="/post/npm" target="_blank">npm
<span class="label">nezz</span></a>
</li>
<li>
<a href="/post/haroopress-on-cloud-9" target="_blank">Cloud9 IDE에 하루프레스 설치하기!
<span class="label">nezz</span></a>
</li>
<li>
<a href="/post/harupeureseu-gaeindomein-seoljeongbangbeob" target="_blank">하루프레스 개인도메인 설정방법
<span class="label">nezz</span></a>
</li>
<li>
<a href="/post/h3-conference-2012" target="_blank">H3 Conference 2012 참가 후기
<span class="label">nezz</span></a>
</li>
</ul>
</div>
</div>
<div class="span9">
<div class="row">
<div class="span9">
<div class="well bg">
<div class="page-header">
<h1>하루프레스 개인도메인 설정방법</h1>
</div>
<div class="markdown-wrapper">
<p>하루프레스를 Github에 올려놓고 쓰고 있는데 Github 페이지를 개인도메인과 연결시킬 수 있다고 해서 시도하다가 몇번 삽질도 하고 해서 기록 및 다른 사람을 위해 기록해본다.</p>
<h2 id="toc_34">하루프레스 개인도메인 설정방법 (Github Only)</h2>
<h3 id="toc_35">1. 하루프레스 <code>config.js</code> 파일 수정</h3>
<p>하루프레스 root 폴더의 config.js파일을 열어 보면 다음과 같이 <code>CNAME</code>을 설정하는곳이 있는데 여기에 자신의 도메인 주소를 입력한다.</p><pre><code class="javascript">"CNAME": "nezz.pe.kr"
</code></pre>
<h3 id="toc_36">2. 하루프레스 deploy</h3>
<p>그 후 하루프레스를 <code>make deploy</code>하면 Github Repository에 CNAME파일이 생성된다. 생성된 CNAME파일을 열어보면 1번에서 설정했던 도메인 주소가 나와야 정상이다.</p><p><img src="./@img/github_cname.png" alt="CNAME파일 내용확인"></p>
<h3 id="toc_37">3. Domain 설정</h3>
<p>나같은 경우에 도메인의 DNS를 <a href="http://kr.dnsever.com">dnsever</a>에서 관하고 있는데 다음과 같이 설정하였다.</p><p><img src="./@img/domain_a.png" alt="호스트 IP(A) 관리"></p><p><img src="./@img/domain_cname.png" alt="도메인 별명(CNAME) 관리"></p><p>Github help 문서를 보면 호스트 IP는 <code>204.232.175.78</code>로 설정하라고 안내하고 있다. 위의 그림과 같이 설정하고 terminal에서 <code>dig</code>를 이용해 도메인 정보를 살펴보면 다음과 같이 나온다.</p><p><img src="./@img/domain_terminal.png" alt="도메인 정보 조회 결과"></p><p><em class="label label-info"><strong><i class="icon-info-sign icon-white"></i> 관련링크</strong></em></p>
<ul>
<li><a href="https://help.github.com/articles/setting-up-a-custom-domain-with-pages">Setting up a custom domain with Pages</a></li>
</ul>
</div>
<hr />
<div class="row-fluid">
<div class="pull-right">
<a href="/post/npm" class="btn btn-info">npm <i class="icon-white icon-chevron-right"></i></a>
</div>
<div class="pull-left">
<a href="/post/haroopress-on-cloud-9" class="btn btn-info"><i class="icon-white icon-chevron-left"></i> Cloud9 IDE에 하루프레스 설치하기!</a>
</div>
</div>
<div class="row-fluid">
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'nezz-blog'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div>
</div>
</div>
<div class="row">
</div>
</div>
</div>
<!--<div class="row">-->
<!--<div class="offset3 span9">-->
<!--<strong>tags</strong> :-->
<!---->
<!--<a href="/tag/haroopress">haroopress</a>&nbsp;-->
<!---->
<!--<a href="/tag/blog">blog</a>&nbsp;-->
<!---->
<!--</div>-->
<!--</div>-->
</div><!-- /container -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="span12 ">
<div class="well">
<p class="pull-right"><a href="#">Back to top</a></p>
<strong>haroopress</strong> developed by <a href="http://twitter.com/rhiokim" target="_blank">@rhiokim</a>,<a href="http://twitter.com/haroopress" target="_blank">@haroopress</a> and source in <a href="https://github.com/rhiokim/haroopress" target="_blank">github</a><br/>
Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.<br />
Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
</div>
</div>
</div>
</div>
</footer>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36216394-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.