/healthcheck.phpを除いてBasic認証を設定する # vi /etc/httpd/conf.d/allBasicAuth.conf <Location /> Satisfy Any AuthType Basic AuthName “Login” AuthUserFile /var/www/html/.htpasswd Require valid-user SetEn …
Apache ELBヘルスチェックを除いてWEB全体にBasic認証

var 優技録 = []string{ "Golang", "Vue.js", "AWS", "PHP", "DB", "IaC", "SRE"}
/healthcheck.phpを除いてBasic認証を設定する # vi /etc/httpd/conf.d/allBasicAuth.conf <Location /> Satisfy Any AuthType Basic AuthName “Login” AuthUserFile /var/www/html/.htpasswd Require valid-user SetEn …
Dispatcherを要求されたので実装 /users/detail/123にアクセスした時に /users/detail.html/123にアクセスを渡す.htaccess # index access Normalization RewriteEngine on + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCon …
Apacheに設定されているバーチャルホストの一覧がでる # httpd -S or # apachectl -S Amazonおすすめ iPad 9世代 2021年最新作 iPad 9世代出たから買い替え。安いぞ!🐱 初めてならiPad。Kindleを外で見るならiPad mini。ほとんどの人には通常のiPadをおすすめします><
Apacheにはmod_headerモジュールによって、Header情報は削除したり、追加したりすることが出来ます。 @see https://httpd.apache.org/docs/2.4/ja/mod/mod_headers.html サーバのrootパスワードをHeaderに追加して脆弱なサーバを作ってみる # vi /etc/httpd/c …
大きな違い Apache2.4系ではSSLCertificateChainFileがない。 ※クロスルート証明書を設定すると、不特定多数のユーザからのアクセスを望む場合は、ユーザのクライアント環境が古い場合にアクセスできない場合があります。 証明書の設定の違い Apache2.2系(2.2~2.4.7) SSLCertificateKeyFile – 秘密鍵 …
やりたいこと http://www.sample.net/userlist/detail/アクセスで、サーバ内部のフレームワークへhttp://app.laravel.local/userlist/detailとしてアクセスをさせる なぜやりたいのか? 一部の処理だけフレームワークで処理を行いたい http://www.sample.net/のURL, / …
時間単位 # grep “21/Jan/” example.com_access_log-20180122 | awk ‘{print $4}’ | cut -b 1-15 | sort | uniq -c 7564 [21/Jan/2018:03 11325 [21/Jan/2018:04 10546 [21/Jan/2018:05 12907 [21/Jan/2018:06 …
WEBサーバ TCP, UDPの24224番ポートを解放しておくこと。 # vi /etc/sysconfig/selinux SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted – Targeted processes are protected, # minimum …
CentOS7 ApacheでRedisをセッションストアとして利用する 寄稿しました。 WEB [centos@ip-172-31-17-156 ~]$ sudo su – [root@ip-172-31-17-156 ~]# # vi /etc/sysconfig/selinux SELINUX=disabled # SELINUXTYP …
CentOS7の場合 # vi /etc/logrotate.d/httpd /var/log/httpd/*log { missingok notifempty sharedscripts delaycompress postrotate /sbin/service httpd reload > /dev/null 2>/dev/null || true endscri …
ELB のバックエンドサーバーとして Apache または NGINX を使用するための最適な設定を教えてください https://aws.amazon.com/jp/premiumsupport/knowledge-center/apache-backend-elb/ ELBとALBどちらを使うべき? ALB ALBファーストで考えて、ELBでは対応しているがALBで …
基本的に他のパッケージでもやることは同じ。検証環境で動作するか確認してから行うこと。 既存設定ファイルコピー # rsync -arv /etc/httpd/conf/ /etc/httpd/conf_20171127/ # rsync -arv /etc/httpd/conf.d/ /etc/httpd/conf.d_20171127/ 更新 # yum upda …