http://httpd.apache.org/docs/current/ja/vhosts/examples.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const LatestPostsComponent = props => { | |
const postPreviews = renderPostPreviews(props.posts); | |
return ( | |
<section> | |
<div><h1>Latest posts</h1></div> | |
<div> | |
{ postPreviews } | |
</div> | |
</section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="shortcut icon" href="/common/images/favicon.ico"> | |
<link rel="icon" sizes="192x192" href="/common/images/android-touch-icon.png"> | |
<link rel="apple-touch-icon" sizes="180x180" href="/common/images/apple-touch-icon.png"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 作成 | |
groupadd git | |
# 追加 | |
# -a --append | |
# -G --groups | |
usermod -aG group user | |
# ユーザ作成時に追加 | |
useradd -g group user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ログインシェルを指定すればOK | |
su -s /bin/bash hoge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ふつうにsudoしてリダイレクトすると | |
# コマンドに対してしかsudoしない | |
sudo ls > ls.txt | |
# コマンドをshでラップしてshにsudoすれば全体に効く | |
# 読みにくいけど | |
sudo sh -c "ls > ls.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# メーリングリストの一覧表示 | |
list_lists | |
# メーリングリストの新規作成 | |
newlist [options] listname admin-addr admin-passwd | |
#メーリングリストの削除 | |
rmlist -a listname | |
# メーリングリストのアドレス一覧表示 |
- gitクローン
git clone https://github.com/letsencrypt/letsencrypt
- 必要なパッケージをインストール
letsencrypt-auto --help
- 証明書を発行
./letsencrypt-auto certonly --debug --webroot -w /var/www/html/hoge.jp -d hoge.jp