Created
July 19, 2017 12:50
-
-
Save ryuchan00/fa401dccb84087466116e0ecc4d74b60 to your computer and use it in GitHub Desktop.
【超初心者向け】AWSでたてたnginxサーバーにドメインを設定する ref: http://qiita.com/yamakawa00/items/3e172fbfd1044e093c52
This file contains 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
[user|~]$ cd /etc/nginx/conf.d/ | |
[user|conf.d]$ sudo vi xxx.conf #xxxは自分のアプリケーション名でファイル名変更 |
This file contains 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
[user|~]$ sudo service nginx restart |
This file contains 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
server_name www.hello-ruby.net;(#アプリの固定ドメインに変更してください) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment