LoginSignup
4
5

More than 5 years have passed since last update.

Amazon Web ServiceにShiny Serverを設置して、User/passwordを設定(リンクとメモ)

Last updated at Posted at 2016-06-02

がんばって下の4つの記事を全部やりとげた。

  1. AWSに登録してRをインストールする
  2. Shiny Serverをインストールする
  3. httpsにする
  4. ユーザー・パスワードを設定

困ったところ

SSHでサーバーにアクセス

1番でウェブ上で自分のUbuntuインスタンスを作成した後に、自分のPCからSSHを介してアクセスするところ。PUTTYを用いる方法が色々書いてあったのだけど、なかなかうまくいかなかった。
自分はパソコンのOSもUbuntuで、結局コンソールから下記のコマンドで入れた。

ssh -i <作成したpemファイル名> ubuntu@<Public DNS>

Apache 設定ファイルの編集

3番で、/etc/apache2/sites-enabled/000-default.conf ファイルを編集するところで、記事をそのままコピーしたところ、Apacheを再起動した時にエラーがでた(SSLCertificateKeyFile takes only one argumentのような)。
よく見ると "ProxyPreserveHost" の前の改行が抜けていた。
次のように書き換えたら解決した。

<VirtualHost *:*>
 SSLEngine on
 SSLCertificateFile /etc/ssl/certs/apache.crt
 SSLCertificateKeyFile /etc/ssl/private/apache.key
 ProxyPreserveHost On
 ProxyPass / http://0.0.0.0:3838/
 ProxyPassReverse / http://0.0.0.0:3838/
 ServerName localhost
</VirtualHost>
4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5