haproxy
の編集
http://sek-net.no-ip.info/wikiZ+/index.php?haproxy
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
AlmaLinux
BracketName
ComicList 検索の DB化
DB 複製
F660A
FTPサーバー
FormattingRules
FrontPage
Get Started with Best Local Dating Website For Quick Sex
Get Started with Online Casual Dating Apps No Cost
Guide To Best Casual Encounters Website Usa
Help
InterWiki
InterWikiName
InterWikiSandBox
L2TP/IPSec
Lara 7→8
Lara Apacheで見れるように
Laravel
Laraインストール
Laraインストール2
Laraサンプルを作る
Laraララ帳要点メモ
MenuBar
MySQL
N54l BIOS UPDATE
NIS
PHP
PukiWiki
PukiWiki/1.4
PukiWiki/1.4/Manual
PukiWiki/1.4/Manual/Plugin
PukiWiki/1.4/Manual/Plugin/A-D
PukiWiki/1.4/Manual/Plugin/E-G
PukiWiki/1.4/Manual/Plugin/H-K
PukiWiki/1.4/Manual/Plugin/L-N
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
PukiWiki/1.4/Manual/Plugin/V-Z
RP4 Centos stream 9
Raspberry Pi 4
Raspberry Pi Zero(W)
RecentDeleted
SEK
SandBox
SoftEther
Strongswan
Tips
UUID
VirtualBox
WEBカメラ
WEBサーバー
WEBページの設置
WikiEngines
WikiName
WikiWikiWeb
YukiWiki
centos7
centos8
centos9 stream
comic
cron
css
date
dd
defgbrtgert
domain
down.sh
firewalld
format
fstab
fstab の話
gid uid
guide
haproxy
history
html
httpd
httpd.service
httpサーバー
ilfa
install から設定まで
ldap
linux(other)
lyon
mami
mami Dnsmasq
mami FTP Server
mami File Server
mami Mail Server
mami MariaDB 10.2
mami NextCloud
mami PHP 7
mami WEB Server
mami phpMyAdmin
mami subversion
mami update計画
mami 基本設定
mami3インストール
mamiインストール
mami旧インストール
multi
mydns
mysql
mysql 入力
network
nmcli
noip
noip_dcu
php
php file (RPZW)
phpMyAdmin
pound
repo
rpm作成
rsync
samba
serio
ssh
standby
virtual host
wikiZ+ の移行
write-protected
yum upgrade
その他
アセンブラ
カメラを動かす (RPZW)
キャッシュの回避
サーバーTips
データベース
ネガの補正
ピアノ教室
ファイルサーバー
マシン
メモ帳
作業状況
傾向
共通関数
内容
写真をRAMに保存 (RPZW)
初めに (RPZW)
初めに (Raspberry Pi Zero W)
初期設定 (RPZW)
基本情報技術者試験
基本設定
定点カメラ
新生lyon
新生mami
毎日の処理
画像を保存 (RPZW)
画像を転送 (RPZW)
画像変換
発表会ポスター
知恵袋
計画 (RPZW)
課題 (RPZW)
[[AlmaLinux]] # dnf -y install haproxy # vi /etc/haproxy/haproxy.cfg # cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.org # vi /etc/haproxy/haproxy.cfg global log /dev/log local0 maxconn 2048 user haproxy group haproxy daemon defaults mode http log global option httplog timeout connect 5s timeout client 50s timeout server 50s # HTTP用フロントエンド frontend http-in bind 192.168.0.9:80 default_backend web_backends # HTTPS用フロントエンド(証明書設定) frontend https-in bind 192.168.0.9:443 ssl crt /etc/pki/tls/certs/pound.pem default_backend web_backends # バックエンドサーバー(2台構成) backend web_backends balance roundrobin server web1 192.168.0.10:80 check server web2 192.168.0.8:80 check # openssl x509 -in server.crt -text # ls /etc/pki/tls/certs/ # cd /etc/pki/tls/certs/ # openssl req -newkey rsa:2048 -nodes -keyout server.key -out server.csr # openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 365 # cat server.key server.crt > pound.pem # chmod 600 pound.pem # chown root:root pound.pem # cp pound.pem /etc/pki/tls/certs/pound.pem # pwd # openssl x509 -in server.crt -text -noout # openssl s_client -connect localhost:443 # systemctl enable --now haproxy # systemctl status haproxy.service *** 443 がvpnserver と競合するため [#b958575a] bind 192.168.0.9:8443 ssl crt /etc/pki/tls/certs/pound.pem に変更し、ルーターの性的マスカレードで 443(https) が来たら 192.168.0.9:8443 に転送させる
タイムスタンプを変更しない
[[AlmaLinux]] # dnf -y install haproxy # vi /etc/haproxy/haproxy.cfg # cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.org # vi /etc/haproxy/haproxy.cfg global log /dev/log local0 maxconn 2048 user haproxy group haproxy daemon defaults mode http log global option httplog timeout connect 5s timeout client 50s timeout server 50s # HTTP用フロントエンド frontend http-in bind 192.168.0.9:80 default_backend web_backends # HTTPS用フロントエンド(証明書設定) frontend https-in bind 192.168.0.9:443 ssl crt /etc/pki/tls/certs/pound.pem default_backend web_backends # バックエンドサーバー(2台構成) backend web_backends balance roundrobin server web1 192.168.0.10:80 check server web2 192.168.0.8:80 check # openssl x509 -in server.crt -text # ls /etc/pki/tls/certs/ # cd /etc/pki/tls/certs/ # openssl req -newkey rsa:2048 -nodes -keyout server.key -out server.csr # openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 365 # cat server.key server.crt > pound.pem # chmod 600 pound.pem # chown root:root pound.pem # cp pound.pem /etc/pki/tls/certs/pound.pem # pwd # openssl x509 -in server.crt -text -noout # openssl s_client -connect localhost:443 # systemctl enable --now haproxy # systemctl status haproxy.service *** 443 がvpnserver と競合するため [#b958575a] bind 192.168.0.9:8443 ssl crt /etc/pki/tls/certs/pound.pem に変更し、ルーターの性的マスカレードで 443(https) が来たら 192.168.0.9:8443 に転送させる
テキスト整形のルールを表示する