脳汁portal

アメリカ在住(だった)新米エンジニアがその日学んだIT知識を書き綴るブログ

2017-03-21から1日間の記事一覧

AWSのEC2のネットワークの速度を測定する

AWS

speed-cliを使ってAWSのインスタンスのネットワーク速度の測定をします AWS 今回は以下の環境のインスタンスを作成しました Tokyoリージョン t2.micro 測定方法 install speedtest-cli sudo apt-get install python-pip sudo pip install speedtest-cli sudo…

ubuntu16.04でApacheのDirectoryIndexを変更する

vi /etc/apache2/mods-available/dir.con ### 以下を修正してapacheをrestartすればよい <IfModule mod_dir.c> DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule>

ubuntu16.04にapacheをinstallしてbasic認証をかける

1. install apache apt-get install apache2 アクセスできることを確認 2. basic auth touch /etc/apache2/sites-available/auth-basic.conf vi /etc/apache2/sites-available/auth-basic.conf ### 以下を入力して保存 <Directory /var/www/html> AuthType Basic AuthName "Basic Auth</directory>…