poundでバックエンドへ接続出来ない時に表示されるエラーページを指定する
pound -c
starting… Config file /etc/pound.cfg is OK
service pound reload
こうすることで「The service is not available」のシンプルな表示からオリジナルページへ変更可能です。
starting… Config file /etc/pound.cfg is OK
こうすることで「The service is not available」のシンプルな表示からオリジナルページへ変更可能です。
[root@]# chkconfig pound on [root@]# chkconfig list pound 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@]# cd /etc/ [root@]# cp -p pound.cfg pound.cfg.org [root@]# service pound start Pound を起動中: starting…
[root@]# ps aux |grep pound pound 22720 0.0 0.0 44136 988 ? Ss 16:14 0:00 pound pound 22722 0.0 0.1 77936 2056 ? Sl 16:14 0:00 pound root 22854 0.0 0.0 107452 912 pts/0 S+ 16:14 0:00 grep pound
Service HeadRequire "Host: .www.(hoge.com|hogesite.jp)." URL "^/s/" BackEnd Address 123.456.789.101 Port 80 End Session Type IP TTL 300 End End
End
ListenHTTPS Address 123.456.789.100 Port 443 Cert "/etc/pound/www.hogehoge.com.pem" Ciphers "ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL" xHTTP 0 Err500 "/etc/pound/error/noavailable.html" Err503 "/etc/pound/error/noavailable.html"
Service HeadRequire "Host: .www.(hoge.com|hogesite.jp)." BackEnd Address 123.456.789.101 Port 80 End End
Service Backend Address 123.456.789.103 Port80 End End
End