銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩兓銇曘亸銈夈伄銉°兗銉儨銉冦偗銈 銇仱銇勩仸銇俱仺銈併仸銇勩伨銇欍

閬嬪柖鑰呫伅 銇曘亸銈夈伄銉兂銈裤儷銈点兗銉 銉┿偆銉 銇т娇鐢ㄣ仐銇︺亜銇俱仚銆
銇濄伄銇熴倎銆佺壒绛嗐亴銇亼銈屻伆 銇曘亸銈夈伄銉兂銈裤儷銈点兗銉 鍏ㄣ儣銉┿兂鍏遍氥伄鍐呭銇с仚銆
銉°兗銉枹閫c伅 銇曘亸銈夈伄銉°兗銉儨銉冦偗銈 銇с倐瑷畾銉讳娇鐢ㄣ仹銇嶃伨銇欍


鐩


鐗瑰敬

鍏ㄥ叡閫氥仹娆°伄鐗瑰敬銇屻亗銈娿伨銇

  • 鏈浣庛儣銉┿兂銇с倐鐙嚜銉夈儭銈ゃ兂銉汇偟銉栥儔銉°偆銉炽倰 20 銉夈儭銈ゃ兂銇俱仹瑷畾銇с亶銇俱仚銆
  • 闆昏┍銉汇儭銉笺儷銉汇儊銉c儍銉堛伄銈点儩銉笺儓銇蹇溿仐銇︺亜銇俱仚銆

銇曘亸銈夈伄銉°兗銉儨銉冦偗銈广伅娆°伄鐗瑰敬銇屻亗銈娿伨銇欍

  • 骞 1048 鍐嗭紙梅 12 銉舵湀 鈮 鏈 87 鍐嗭級銇х嫭鑷儔銉°偆銉炽伄銉°兗銉亱鐢ㄣ亴銇с亶銇俱仚銆

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩伅鍏ㄣ儣銉┿兂鍏遍氥仺銇椼仸娆°伄鐗瑰敬銇屻亗銈娿伨銇欍

  • 鏈浣庡勾 1571 鍐嗭紙梅 12 銉舵湀 鈮 鏈 131 鍐嗭級銇 Web銉汇儭銉笺儷 銇岄亱鐢ㄣ仹銇嶃伨銇欍
  • PHP 銇蹇溿仐銆佸叡鐢ㄣ偟銉笺儛銇ㄣ仐銇︺伅鏈鏂般儛銉笺偢銉с兂銇蹇溿亴銇倓銇勩仹銇欍
  • FTPS 銇蹇溿仐銆併儠銈°偆銉虎閫併亴鏆楀彿鍖栥仌銈屻伨銇欍
  • Let’s Encrypt 銇岀櫤琛屻仹銇嶃佺嫭鑷儔銉°偆銉炽仹銈傝拷鍔犺不鐢ㄣ仾銇 SSL 銈掓湁鍔广伀銇с亶銇俱仚銆

銉椼儵銉炽亴銈广偪銉炽儉銉笺儓锛堟湀 524 鍐嗭級浠ヤ笂銇犮仺 MySQL銉籗SH銉籗FTP 銇蹇溿仐銆
鏇淬伀銉椼儸銉熴偄銉狅紙鏈 1571 鍐嗭級浠ヤ笂銇 CDN锛堛偝銉炽儐銉炽儎銉栥兗銈广儓锛夌劇鏂欐灎銇屻亗銈嬨伄銇с
鐢ㄩ斻伀蹇溿仒銇﹀箙搴冦亜閬告姙鑲€伀銇仯銇︺亜銇俱仚銆

鐙嚜銉夈儭銈ゃ兂銇 Gmail 銈掍娇銇勩仧銇勫牬鍚堛
Google Workspace 銇渶浣庛仹銈傛湀 680 鍐嗭紙锛濆勾 8160 鍐嗭級銇仾銈娿伨銇欍亴銆
閫氬父銇 Gmail 銇т换鎰忋伄銉°兗銉偟銉笺儛銈掗佸彈淇°仹銇嶃倠銇熴倎銆
銇曘亸銈夈伄銉°兗銉儨銉冦偗銈 骞 1048 鍐 銇俱仧銇
銇曘亸銈夈伄銉兂銈裤儷銈点兗銉 銉┿偆銉 骞 1571 鍐 銇т娇鐢ㄣ仹銇嶃倠銈堛亞銇仹銇嶃
銇椼亱銈 20 銉夈儭銈ゃ兂銇俱仹瀵惧繙銇с佸畨鍊ゃ仹瀹夊畾銇椼仧銉°兗銉娇鐢ㄣ亴鍙兘銇с仚銆

聽Gmail锛堛偊銈с儢銉栥儵銈︺偠锛夈倰鍒╃敤銇欍倠 | 銇曘亸銈夈伄銈点儩銉笺儓鎯呭牨


鍏紡銉婚枹閫c偟銈ゃ儓


銇曘亸銈夈伄銈点儢銉夈儭銈ゃ兂

聽銇曘亸銈夈伄銈点儢銉夈儭銈ゃ兂 | 銇曘亸銈夈伄銉兂銈裤儷銈点兗銉

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩仹銇垵鏈熴儔銉°偆銉 鈼忊棌鈼.sakura.ne.jp
鐙嚜銉夈儭銈ゃ兂浠ュ銇佸銇忋伄銈点儢銉夈儭銈ゃ兂銈掗伕鎶炪仹銇嶃伨銇欍
1 濂戠磩銇仱銇 2 銇ゃ伨銇с伄銈点儢銉夈儭銈ゃ兂銈掍娇鐢ㄣ仹銇嶃伨銇欍

2020骞12鏈堢従鍦ㄣ佹彁渚涖仌銈屻仸銇勩倠銈点儢銉夈儭銈ゃ兂銇銇ó椤炪仹銇欍

180r.com 2-d.jp achoo.jp amaretto.jp bona.jp chew.jp crap.jp daynight.jp dojin.com deko8.jp eek.jp flop.jp from.tv fubuki.info grats.jp grrr.jp gokujou.biz halfmoon.jp ivory.ne.jp jeez.jp jpn.org kirara.st kokage.cc mail-box.ne.jp matrix.jp mimoza.jp mints.ne.jp mokuren.ne.jp nazo.cc netgamers.jp noob.jp nyanta.jp opal.ne.jp o0o0.jp rash.jp razor.jp rdy.jp rgr.jp rojo.jp rossa.cc rulez.jp rusk.to sakura.tv sakuratan.com sakuraweb.com silk.to skr.jp squares.net sumomo.ne.jp saikyou.biz saloon.jp spawn.jp tank.jp thyme.jp topaz.ne.jp uh-oh.jp undo.jp xii.jp x0.com x0.to websozai.jp whoa.jp

SSL 銈備娇鐢ㄣ仹銇嶃伨銇欍傦紙鍏遍氥仹鐧鸿銇曘倢銇熻鏄庢浉銇屾帯鐢ㄣ仌銈屻伨銇欙級
Cookie 銈掍娇鐢ㄣ仚銈嬪牬鍚堛併儔銉°偆銉抽枔銇с伄銈汇偔銉ャ儶銉嗐偅銇仈娉ㄦ剰涓嬨仌銇勩


銉嶃兗銉犮偟銉笺儛

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩兓銇曘亸銈夈伄銉°兗銉儨銉冦偗銈广仹銇
鐙嚜銉夈儭銈ゃ兂銈掕ō瀹氥仚銈嬪牬鍚堛併儘銉笺儬銈点兗銉愩仺銇椼仸娆°倰瑷畾銇欍倠銈堛亞銇杓夈仌銈屻仸銇勩伨銇欍

銉嶃兗銉犮偟銉笺儛
ns1.dns.ne.jp
ns2.dns.ne.jp

銈点儢銉夈儭銈ゃ兂銇с亾銈屻倰瑷畾銇欍倠鍫村悎銇 NS 銉偝銉笺儔銇цō瀹氥仐銇俱仚銆

銈点儢銉夈儭銈ゃ兂 绋
瀵捐薄銈点儢銉夈儭銈ゃ兂鍚 NS ns1.dns.ne.jp.
瀵捐薄銈点儢銉夈儭銈ゃ兂鍚 NS ns2.dns.ne.jp.

銇撱伄鍫村悎銆佸璞°儔銉°偆銉炽倰銇俱倠銇斻仺
銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩兓銇曘亸銈夈伄銉°兗銉儨銉冦偗銈广仹閬嬬敤銇欍倠浜嬨伀銇倞銇俱仚銇屻
銉嶃兗銉犮偟銉笺儛銈掋儸銈炽兗銉夈仹瑷畾銇欍倠浜嬨仹浣跨敤绡勫洸銈掕ō瀹氥仹銇嶃伨銇欍
銇曘亸銈夈伄銉夈儭銈ゃ兂 銇х櫥閷层仐銇︺亜銇亜鍫村悎銇
澶栭儴銇儘銉笺儬銈点兗銉愩偟銉笺儞銈广倰浣跨敤銇欍倠浜嬨亴鍙兘銇с仚銆

馃巿 銉嶃兗銉犮偟銉笺儛銈点兗銉撱偣銉汇偄銉椼儶銈便兗銈枫儳銉 - 銉嶃兗銉犮偟銉笺儛 | 銇点亞銇涖倱馃巿 FU-SEN

銉涖偣銉堝悕 www鈼忊棌鈼.sakura.ne.jp 銇 IP 銈€儔銉偣 銇
銈炽兂銉堛儹銉笺儷銉戙儘銉 銈堛倞 銈点兗銉愭儏鍫 - 銈点兗銉愭儏鍫 銇у弬鐓с仹銇嶃伨銇欍

銉°兗銉伄銇裤倰浣跨敤銇欍倠

Web 銇粬銈点兗銉撱偣銈掍娇鐢ㄣ仐銆併儭銉笺儷銇伩浣跨敤銇椼仧銇勫牬鍚堛伄瑷畾銇с仚銆

銈点儢銉夈儭銈ゃ兂 绋 鍎厛搴
瀵捐薄銉夈儭銈ゃ兂鍚 MX 10 www鈼忊棌鈼.sakura.ne.jp.
瀵捐薄銉夈儭銈ゃ兂鍚 TXT “v=spf1 mx ~all” 銇俱仧銇 “v=spf1 a:www鈼忊棌鈼.sakura.ne.jp ~all”

鈥 TXT 銉偝銉笺儔銇繀瑕併伀蹇溿仒銇﹁ō瀹氥倰杩借銇椼仸涓嬨仌銇勩

銉嶃兗銉犮偟銉笺儛銈点兗銉撱偣銇倛銇c仸銆
TXT 銉偝銉笺儔銇цō瀹氥仚銈嬪ゃ伄 "锝" 鍥层伩銇屼笉瑕併仹銇欍

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩仹銇 MX 銉偝銉笺儔銇ゃ倰 銉夈儭銈ゃ兂鍚. 銇цō瀹氥仐銇︺亜銇俱仚銇屻
Web锛圓銉籄AAA 銇俱仧銇 CNAME锛夈倰浠栥偟銉笺儞銈广仹浣跨敤銇椼仸銇勩倠鍫村悎銆
銇濄伄浠栥偟銉笺儞銈广伄銈点兗銉愩仹杩斻仐銇︺仐銇俱亜銇俱仚銇仹銆佺洿鎺ャ偟銉笺儛鍚嶃倰瑷畾銇椼伨銇欍

銉°兗銉倰浣跨敤銇椼仾銇

銉°兗銉倰浣跨敤銇椼仾銇勫牬鍚堛伅銆併亗銇堛仸鏄庣ず銇椼仸鐒¢銇儭銉笺儷銇佸彈銈掗槻銇愪簨銇屻仹銇嶃伨銇欍

銈点儢銉夈儭銈ゃ兂 绋
瀵捐薄銉夈儭銈ゃ兂鍚 TXT “v=spf1 -all”

銉嶃兗銉犮偟銉笺儛銈点兗銉撱偣銇倛銇c仸銆佸ゃ伄 "锝" 鍥层伩銇屼笉瑕併仹銇欍

Web 銈掍娇鐢ㄣ仚銈

銈点儢銉夈儭銈ゃ兂銇閮ㄣ偟銉笺儞銈广倰浣跨敤銇椼仧銇勫牬鍚堛伀鏈夊姽銇с仚銆

銈点儢銉夈儭銈ゃ兂 绋
瀵捐薄銉夈儭銈ゃ兂鍚 CNAME www鈼忊棌鈼.sakura.ne.jp.

銈点儢銉夈儭銈ゃ兂銇仐銇牬鍚堛丄LIAS銉籄NAME 銇с倐鍙兘銇с仚銆

銇俱仧銇 IP 銈€儔銉偣銈掔洿鎺ユ寚瀹氥仐銇俱仚銆

銈点儢銉夈儭銈ゃ兂 绋
瀵捐薄銉夈儭銈ゃ兂鍚 A IP銈€儔銉偣 IPv4
瀵捐薄銉夈儭銈ゃ兂鍚 AAAA 鈥 IP銈€儔銉偣 IPv6

鈥 IPv6 銈掓湁鍔广伀銇欍倠鍫村悎銇杓夈仐銇俱仚銆傜渷鐣ュ彲鑳姐仹銇欍

www 銈備粯鍔犮仚銈嬨倛銇嗐伀瑷畾銇椼仸銇勩倠鍫村悎銆併亾銈屻倐瑷畾銇椼仸涓嬨仌銇勩

馃巿 Let’s Encrypt 銇櫤琛屻兓鏇存柊鏅傘伀銉夈儭銈ゃ兂瑾嶈銇ㄣ仐銇︺偟銉笺儛銈掑弬鐓с仐銇俱仚銆
銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩仹銇櫤琛屾闅庛仹
銉嶃兗銉犮偟銉笺儛銇屻仌銇忋倝銇儸銉炽偪銉偟銉笺儛銈掑弬鐓с仐銇︺亜銈嬨亱銈掔⒑瑾嶃仐銇俱仚銆

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩仹銇 A锛堛伨銇熴伅 AAAA锛夈儸銈炽兗銉夈仹瑷畾銇椼仸銇傘倞銇俱仚銇屻
CNAME 銇с倐 Let’s Encrypt 銈掑惈銈併仸姝e父銇嫊浣溿仚銈嬩簨銈掗亱鍠惰呫亴纰鸿獚銇椼仸銇勩伨銇欍


FTP

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩伅鍏ㄣ儣銉┿兂銇 FTPS 銇屼娇銇堛伨銇欍
銈广偪銉炽儉銉笺儓浠ヤ笂銇犮仺 sftp 銈備娇鐢ㄥ彲鑳姐仹銇欍
锛坰ftp 銇 ssh 銈掍娇鐢ㄣ仚銈嬨仧銈併乻sh 銉偘銈ゃ兂銇屽彲鑳姐仾銉椼儵銉炽伀鍚屻仒銇с仚锛
FTPS銉籹ftp 銇ф殫鍙峰寲銇曘倢銈嬨仧銈併佸畨鍏ㄣ伀銉曘偂銈ゃ儷杌㈤併仹銇嶃伨銇欍

銇撱亾銇х垂浠嬨仐銇︺亜銈嬫墜娈点伅銉曘偂銈ゃ儷銈掑悓鏈熴仐銇俱仚銆
銇ゃ伨銈 銉曘偂銈ゃ儷銇墛闄ゆ搷浣溿倰鍚伩銇俱仚銆
銈点兗銉愩伄鎸囧畾銉熴偣銇倛銈嬫剰鍥炽仐銇亜銉曘偂銈ゃ儷鍓婇櫎銇仈娉ㄦ剰涓嬨仌銇勩

Git FTP

聽git-ftp/git-ftp | GitHub

Git 銈掍娇鐢ㄣ仐銇︺亜銈嬪牬鍚堛丟it FTP 銇у悓鏈熴亴鍙兘銇с仚銆
ftpes: 銇цō瀹氥仐銇︿笅銇曘亜銆 ftps: 銇с伅鎺ョ稓銇с亶銇俱仜銈撱

Git 銇х鐞嗐仐銇︺亜銈嬪璞°儠銈┿儷銉锛堛儑銈c儸銈儓銉級銇ф銈掕ō瀹氥仐銇俱仚銆

git config git-ftp.url "ftpes://鈼忊棌鈼.sakura.ne.jp/www/瑷畾銉曘偐銉儉銉汇儑銈c儸銈儓銉/"
git config git-ftp.user "鈼忊棌鈼"
git config git-ftp.password "鈼忊棌鈼忊棌鈼忊棌"
git init

銇濄伄寰屻伅 git ftp push 銇у悓鏈熴仐銇俱仚銆
澶夋洿銇繙銇樸仸銈€儍銉椼儹銉笺儔銉诲墛闄ゃ亴琛屻倧銈屻伨銇欍

FTP Deploy

聽ball6847/ftp-deploy | GitHub

鎺$敤銇椼仸銇勩倠銉┿偆銉栥儵銉 Basic FTP 銇 FTPS 銇蹇溿仐銇︺亜銇俱仚銆

聽patrickjuchli/basic-ftp | GitHub

npm 銇х啊鍗樸伀銈ゃ兂銈广儓銉笺儷銇с亶銇俱仚銆

npm i -g @ball6847/ftp-deploy

銇濄伄寰 ftp-deploy 銇с偄銉冦儣銉兗銉夋搷浣溿倰琛屻亜銇俱仚銆

ftp-deploy 銉兗銈儷銇牬鎵 ftps://銉︺兗銈躲兗:銉戙偣銉兗銉堾銉︺兗銈躲兗.sakura.ne.jp/~/www/銈€儍銉椼儹銉笺儔鍏

銈堛倞瑭崇窗銇鏄庛伅娆°倰鍙傜収銇椼仸涓嬨仌銇勩俉indows 10 銇с伄 .bat 銉曘偂銈ゃ儷銇仼銇屻亗銈娿伨銇欍

馃巿 銈炽優銉炽儔銇х啊鍗樸伀銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩伕銉囥儣銉偆銇欍倠銆倈 銇点亞銇涖倱馃巿 FU-SEN


.htaccess

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩伅 Web 銈点兗銉愩伀 Apache 銈掓帯鐢ㄣ仐銇︺亜銈嬨伄銇с
.htaccess 銈掍娇鐢ㄣ仚銈嬩簨銇屻仹銇嶃伨銇欍俁ewrite 銈傛湁鍔广仹銇欍

閫氬父 RewriteEngine On.htaccess 鍐呫仹 Rewrite 闁㈤c伄瑷樿級銈掕銇嗗厛闋伀
1 琛岃杓夈仌銈屻仸銇勩倢銇拌壇銇勩仹銇欍傘仧銇犮仐瑜囨暟琛岃杓夈亴銇傘仯銇︺倐銈ㄣ儵銉笺伀銇仾銈娿伨銇涖倱銆

.htaccess 銇ō瀹氥伅涓嬪堡銉曘偐銉儉锛堛儑銈c儸銈儓銉級銇 .htaccess 銇屻仾銇勫牬鍚
銇濄伄涓嬪堡銇с倐鏈夊姽銇仾銈娿伨銇欍 銇撱倢銇 Rewrite 銇с倐鏈夊姽銇с仚銆
銇撱倢銇 Server Error 銇仼銆佸晱椤屻亴鐧虹敓銇欍倠鍫村悎銇
涓嬪堡銇 .htaccess 銈掔敓鎴愩仐銆侀枹閫c仚銈嬭ō瀹氥倰涓婃浉銇嶃仐銇俱仚銆
涓婂堡銇 Rewrite 鍕曚綔銈掋仾銇忋仚鍫村悎銆 RewriteEngine Off 銇屾湁鍔广仹銇欍

RewriteCond 銇瑕忚〃鐝俱仹銇欍 . 銇换鎰忋伄 1 鏂囧瓧銇ㄣ仾銈娿伨銇欍
銇濄伄銇熴倎 . 銇濄伄銈傘伄銇〃瑷樸伅 \.\ 銇 鍗婅锟 銇俱仧銇 鍗婅锛硷級銇ㄣ仚銇广亶銇с仚銇屻
鎮奖闊裤亴銇亜銇ㄦ濄倧銈屻倠琛ㄨ銇с伅銆併亗銇堛仸 . 銇伨銇俱伀銇椼仸銇傘倞銇俱仚銆

鈼忊棌鈼.sakura.ne.jp 灏傜敤銉曘偐銉儉銉汇儑銈c儸銈儓銉倰瑷畾銇欍倠

鍒濇湡銉夈儭銈ゃ兂 鈼忊棌鈼.sakura.ne.jp 灏傜敤銇儠銈┿儷銉锛堛儑銈c儸銈儓銉級銈 www/ 涓嬨伀瑷亼銇俱仚銆
鍚勩儔銉°偆銉炽伄銉曘偐銉儉锛堛儑銈c儸銈儓銉級銇屼笅灞ゃ伀銇亸銇倠銇熴倎銆
FTP 銇儫銉┿兗銉兂銈般偄銉冦儣銉兗銉夈倓銉囥儣銉偆鍕曚綔銇屽鏄撱伀銇倞銇俱仚銆
銇俱仺銈傘伀 鈼忊棌鈼.sakura.ne.jp 銈備娇鐢ㄣ仐銇熴亜鍫村悎銇亰銇欍仚銈併仹銇欍

www/.htaccess 銇銇唴瀹广倰鍏ャ倢銇俱仚銆
www/鈼忊棌鈼.sakura.ne.jp 銉曘偐銉儉銇у弬鐓с仹銇嶃伨銇欍
www 銈掕拷鍔犮仐銇 www.鈼忊棌鈼.sakura.ne.jp 銈掓湁鍔广伀銇椼仸銇勩倠鍫村悎銆併亾銈屻倐瀵捐薄銇с仚銆

RewriteEngine On

RewriteCond %{HTTP_HOST} 鈼忊棌鈼.sakura.ne.jp
RewriteRule ^(.*)$ /鈼忊棌鈼.sakura.ne.jp/$1 [L]

RewriteCond 銇儴鍒嗕竴鑷淬仾銇仹銆佹洿銇渷鐣ャ仹銇嶃伨銇欍

RewriteEngine On

RewriteCond %{HTTP_HOST} sakura.ne.jp
RewriteRule ^(.*)$ /鈼忊棌鈼.sakura.ne.jp/$1 [L]

銇撱倢銈掕ō瀹氥仐銇︺倐 鈼忊棌鈼.sakura.ne.jp/cms/ 銈掑弬鐓с仐銇熷牬鍚堛
www/鈼忊棌鈼.sakura.ne.jp/cms/.htaccess 銈堛倞銈 www/cms/.htaccess 銇屽劒鍏堛仌銈屻伨銇欍
銉夈儭銈ゃ兂鍚 銇с儠銈┿儷銉銉汇儑銈c儸銈儓銉倰浣滄垚銇椼仸銇勩倠鍫村悎銇壒銇晱椤屻仺銇倞銇俱仜銈撱亴銆
瑜囨暟銇儔銉°偆銉冲悕銇т娇銈忋倢銇︺亜銈嬨儠銈┿儷銉銉汇儑銈c儸銈儓銉悕銈 www/ 鐩翠笅銇т娇鐢ㄣ仐銇︺亜銈嬪牬鍚堛伅
鎰忓洺銇椼仾銇勫弬鐓с倰銇欍倠鎭愩倢銇屻亗銈娿佹敞鎰忋倰瑕併仐銇俱仚銆

鈼忊棌鈼.sakura.ne.jp 鍙傜収鏅傘伀 Not Found 銈掕繑銇

涓婅銇晱椤屻倛銈娿佺嫭鑷儔銉°偆銉冲垾銇儠銈┿儷銉锛堛儑銈c儸銈儓銉級銈掔敓鎴愩仐銇︺亜銈嬪牬鍚
灏戙仾銇忋仸銈 鈼忊棌鈼.sakura.ne.jp 銇с伅銉曘偐銉儉銈掓寚瀹氥仐銇︺伄鍙傜収銈傚彲鑳姐仹銇欍
銇濄亾銇 鈼忊棌鈼.sakura.ne.jp 銇с伄鍙傜収銇с伅 Not Found 銈掕繑銇欍倛銇嗐伀銇с亶銇俱仚銆

鐙嚜銉夈儭銈ゃ兂銈掑壊銈婂綋銇︺仸銇勩倠銉曘偐銉儉锛堛儑銈c儸銈儓銉級銇 .htaccess 銇 娆°倰鍔犮亪銇俱仚銆

RewriteEngine On

RewriteCond %{HTTP_HOST} sakura.ne.jp
RewriteRule .* - [R=404,L]

www/.htaccess 銇叆銈屻仸銆
鈼忊棌鈼.sakura.ne.jp 銇弬鐓с伅瀹屽叏銇 Not Found 銇ц繑銇欎簨銈傘仹銇嶃伨銇欍

甯告檪 SSL 銈掓湁鍔广伀銇欍倠

http: 銇у弬鐓с仐銇熸檪銇 https: 銇歌虎閫併仐銇俱仚銆
瀵捐薄銉夈儭銈ゃ兂銇儷銉笺儓銇銇 .htaccess 銈掑叆銈屻伨銇欍

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

www 銇傘倞銇弬鐓с倰 www 銇仐銇歌虎閫併仚銈

www.example.net 銇у弬鐓с仐銇熸檪銇 example.net 銇歌虎閫併仐銇俱仚銆
瀵捐薄銉夈儭銈ゃ兂銇儷銉笺儓銇銇 .htaccess 銈掑叆銈屻伨銇欍

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.example.net
RewriteRule ^(.*)$ https://example.net/$1 [R=301,L]

RewriteCond 銇厛闋亴 www. 銇牬鍚堛仹鍒ゆ柇銇欍倠銈堛亞銇仚銈嬩簨銈傘仹銇嶃伨銇欍

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www\.
RewriteRule ^(.*)$ https://example.net/$1 [R=301,L]

www 銇仐銇弬鐓с倰 www 銇傘倞銇歌虎閫併仚銈

example.net 銇у弬鐓с仐銇熸檪銇 www.example.net 銇歌虎閫併仐銇俱仚銆
瀵捐薄銉夈儭銈ゃ兂銇儷銉笺儓銇銇 .htaccess 銈掑叆銈屻伨銇欍

RewriteEngine On

RewriteCond %{HTTP_HOST} ^example.net
RewriteRule ^(.*)$ https://www.example.net/$1 [R=301,L]

RewriteCond 銇潯浠躲伅鍏堥牠銇 www. 銇с仾銇勫牬鍚堛仺銇欍倠浜嬨倐銇с亶銇俱仚銆

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.example.net/$1 [R=301,L]

蹇呫仛 index.php 銈掑嚘鐞嗐仚銈

index.php 銈掑繀銇氬疅琛屻仐銇﹀嚘鐞嗐仚銈嬨倛銇嗐伀銇椼伨銇欍
Node.js 銈 Go 銇仼銆併儣銉偘銉┿儫銉炽偘瑷瑾炪仹璧峰嫊銇椼仧銈点兗銉愩伀杩戙亜鍑︾悊銇屻仹銇嶃伨銇欍

RewriteEngine on

RewriteRule .* /index.php [L]

瑭插綋銇欍倠銉曘偂銈ゃ儷銉汇儑銈c儸銈儓銉亴銇亜鍫村悎銇 index.php 銈掑嚘鐞嗐仚銈

涓娿伄鏉′欢銇姞銇堛仸 RewriteCond 銇ф潯浠躲倰鍔犮亪銇俱仚銆

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php [L]

銇勩亸銇ゃ亱銇 CMS 銇仼銇ф帯鐢ㄣ仌銈屻仸銇勩倠瑷樿級銇с仚銇屻
涓嬪堡銉曘偐銉儉锛堛儑銈c儸銈儓銉級銇冩叜銇ч仼鐢ㄥ牬鎵銈 RewriteBase 銇у叆銈屻仧涓娿仹
RewriteRule . index.php [L] 銇ㄣ仐銇︺亜銈嬨偙銉笺偣銇屽銇勩倛銇嗐仹銇欍

.php 銇弬鐓с倰鐒″姽銇仚銈

鍏ㄣ儣銉┿兂銇 PHP 銇屽嫊浣溿仚銈嬬姸鎱嬨仹銇欍傚父銇帰銇椼仸銇勩倠鎮唱銇弬鐓с亴銇傘倠銇仹銆
PHP 銈掑嫊浣溿仌銇涖仛銆侀潤鐨勩偟銈ゃ儓銇у叕闁嬨仐銇︺亜銈嬨伄銇с亗銈屻伆銆
銇傘亪銇 .php 鍙傜収銈掔劇鍔广伀銇欍倠瑷樿級銈掑銈勩仚銇倐鑹亜銇с仐銈囥亞銆

RewriteEngine On

RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
RewriteRule .* - [R=404,L]

銇撱亾銇с伅 Apache 銉囥儠銈┿儷銉堛伄 Not Found 銉°儍銈汇兗銈稿嚭鍔涖伀銇欍倠鍓嶆彁銇с仚銆
闁茶Η绂佹 [R=403,L] 銈勩偟銉笺儛銈ㄣ儵銉 [R=500,L] 銇с倐鑹亜銇с仐銈囥亞銆

<Files ~ "\.php$">
Deny from all
</Files>

403 銇牬鍚堛伅銆佷笂銇柟娉曘倐鏈夊姽銇с仚銆

Not Found 銈掍换鎰忋伄琛ㄧず銇仚銈

404.html 銈掕〃绀恒仚銈嬪牬鍚堛伅娆°伀銇椼伨銇欍

ErrorDocument 404 /404.html

SSI 銈掓湁鍔广伀銇椼仸銇勩倠鍫村悎 404.shtml 銇仐銇 SSI 銈備娇鐢ㄣ仹銇嶃伨銇欍

404.php 銇亾銇柟娉曘仹浣跨敤銇с亶銇俱仜銈撱傦紙銇濄伄銇俱伨鍑哄姏銇曘倢銆丳HP 銇祵鐢便仌銈屻伨銇涖倱锛
聽瑭插綋銇欍倠銉曘偂銈ゃ儷銉汇儑銈c儸銈儓銉亴銇亜鍫村悎銇 index.php 銈掑嚘鐞嗐仚銈 銇柟娉曘仹
index.php 銇у嚘鐞嗐仚銈嬨亱銆侊紙馃巿 Caddy v2 銉 馃巿 PHP 銉撱儷銉堛偆銉 Web 銈点兗銉愩兗 銇叡閫氾級
404.php 銇鏇淬仐銇俱仚銆


SSI

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩伅鐝惧湪銈 SSI 銈掍娇鐢ㄣ仹銇嶃伨銇欍
绨″崢銇嫊浣溿伅鎷″嫉瀛愩倰 .shtml 銇仐銇俱仚銆
SSI 銇 Apache 銇у嚘鐞嗐亴瀹岀祼銇欍倠銇熴倎銆丳HP 銈堛倞銈傞珮閫熷嫊浣溿倰鏈熷緟銇с亶銇俱仚銆

Apache 2.4 绯汇亴鎺$敤銇曘倢銇︺亜銇俱仚銆
Apache 2.4 銇 SSI 銇竴閮ㄦ鏂囥亴澶夈倧銈娿伨銇椼仧銆

鍙ゃ亜 Apache 銇 SSI 銈掓帯鐢ㄣ仐銇︺亜銈嬪牬鍚堛
.htaccess 銇銈掑惈銈併倠浜嬨仹銆佸彜銇勬鏂囥伄 SSI 銈掑嚘鐞嗐仹銇嶃伨銇欍

SSILegacyExprParser on

Q&A

銈儸銈搞儍銉堛偒銉笺儔鎵曘亜銇с儑銉撱儍銉堛兓銉椼儶銉氥偆銉夈偒銉笺儔銇娇鐢ㄣ仹銇嶃伨銇欍亱锛

閬嬪柖鑰呫伅 銈搞儯銉戙兂銉嶃儍銉堥妧琛 銇 VISA 銉囥儞銉冦儓 銇ф敮鎵曘仯銇︺亜銇俱仚銆
灏戙仾銇忋仸銈傞妧琛岀櫤琛屻伄 銉囥儞銉冦儓銈兗銉 銇娇鐢ㄥ彲鑳斤紙銇仺銇撱倣銇屻亗銈嬶級銇ㄦ濄倧銈屻伨銇欍

銇曘亸銈夈偆銉炽偪銉笺儘銉冦儓 銇с伅鍙e骇鎸浛銈傛墜鏁版枡鐒℃枡銇с仚銇屻
銉濄偆銉炽儓閭勫厓銇屻亗銈嬨儑銉撱儍銉堛兓銉椼儶銉氥偆銉夈偒銉笺儔銈掍娇鐢ㄣ仹銇嶃
銉囥儞銉冦儓銈兗銉夈伅閵琛屽彛搴с亱銈夈儉銈ゃ儸銈儓銇紩銇嶈惤銇ㄣ仐銇曘倢銈嬨伄銇с
鍊嬩汉浜嬫キ涓汇兓娉曚汉銇仼銇彛搴с仹銉囥儞銉冦儓銈兗銉夋墪銇勩伀銇欍倠銇倐銉°儶銉冦儓銇屻亗銈娿伨銇欍

銉囥儞銉冦儓銉汇儣銉儦銈ゃ儔銈兗銉夈伅鏈堥鎵曘亜銇犮仺鎷掑惁銇曘倢銈嬪牬鍚堛亴銇傘倞銇俱仚銇屻
銇曘亸銈夈偆銉炽偪銉笺儘銉冦儓 銇с伅璜嬫眰銇欍倠鏈堥鏂欓噾銇屽畾銇俱仯銇︺亜銈嬨仧銈併
鍟忛銇亸鏀墪銇勩伀浣裤亪銈嬨倛銇嗐仹銆併仌銇忋倝銈ゃ兂銈裤兗銉嶃儍銉 鍋淬仹銇嫆鍚︺仐銇︺亜銇亜銈堛亞銇с仚銆
VISA銉籑aster銉籎CB 銉栥儵銉炽儔銇儑銉撱儍銉堛兓銉椼儶銉氥偆銉夈偒銉笺儔銇岀櫤琛屻仌銈屻仸銇勩伨銇欍亴銆
銇勩仛銈屻伄銉栥儸銉炽儔銈 銇曘亸銈夈偆銉炽偪銉笺儘銉冦儓 銇т娇鐢ㄥ彲鑳姐仹銇欍傦紙AMEX銉籇iners 銈傚蹇滐級

銈儸銈搞儍銉堛偒銉笺儔姹烘笀鏃ャ伀鍙e骇銇嬨倝寮曘亶钀姐仺銇椼仺銇倠浜嬨倰纰鸿獚銇с亶銇︺亜銇俱仚銆
銇濄伄銇熴倎閫氬父銇焙娓堟棩銇俱仹銇伅鍙e骇銇畫楂樸亴銇傘倠鐘舵厠銇仐銇︿笅銇曘亜銆

鐙嚜銉夈儭銈ゃ兂銇仼銇ó椤炪仹銈傝ō瀹氥仹銇嶃伨銇欍亱锛

鐙嚜銉夈儭銈ゃ兂銇ó椤炪伅鍒堕檺銇傘倞銇俱仜銈撱

鐙嚜銉夈儭銈ゃ兂銇屼粬绀俱偟銉笺儞銈广倰浣跨敤銇椼仸銇勩倠鍫村悎銇с倐銆
銉偝銉笺儔銇岃ō瀹氥仹銇嶃倠鍫村悎銇併偟銉栥儔銉°偆銉炽仹瑷畾銇с亶銇俱仚銆

EU.org 銈傝ō瀹氥仹銇嶃伨銇欍亱锛

聽EU.org
馃巿 EU.org | 銇点亞銇涖倱馃巿 FU-SEN

EU.org 銈傝ō瀹氥仹銇嶃倠浜嬨倰纰鸿獚銇椼仸銇勩伨銇欍傜櫥閷插墠銇嬨倝杩藉姞鍙兘銇с仚銆
閬嬪柖鑰呫伅鐧婚尣銇曘倢銈嬨伨銇т竴鏅傜殑銇拷鍔犮仐銇︺亜銈嬩簨銇屽銇勩仹銇欍

銉嶃兗銉犮偟銉笺儛銇儸銈炽兗銉夈伅瑷畾銇с亶銇俱仚銇嬶紵

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩兓銇曘亸銈夈伄銉°兗銉儨銉冦偗銈广仹銇彁渚涖仌銈屻仸銇勩伨銇涖倱銇仹銆
澶栭儴銇儘銉笺儬銈点兗銉愩偟銉笺儞銈广倰浣跨敤銇欍倠蹇呰銇屻亗銈娿伨銇欍

馃巿 銉嶃兗銉犮偟銉笺儛銈点兗銉撱偣銉汇偄銉椼儶銈便兗銈枫儳銉 - 銉嶃兗銉犮偟銉笺儛 | 銇点亞銇涖倱馃巿 FU-SEN

銇曘亸銈夈伄銉夈儭銈ゃ兂 銇с儸銈炽兗銉夎ō瀹氥亴鎻愪緵銇曘倢銇︺亜銇俱仚銆

Web 銉°兗銉伅浣跨敤銇с亶銇俱仚銇嬶紵

銈炽兂銉堛儹銉笺儷銉戙儘銉亱銈夈儹銈般偆銉炽仹銇嶃伨銇欍
銈傘仭銈嶃倱 Gmail 銈 Yahoo! 銉°兗銉仹瑷畾銇椼併儭銉笺儷閫佸彈銈傚彲鑳姐仹銇欍

Gmail 銇仱銇勩仸銇劇鏂欍伄 Gmail 銇с倛銇忋
Google Workspace锛堟棫 G Suite锛夈倰閬告姙銇欍倠蹇呰銇亗銈娿伨銇涖倱銆
Google Workspace 銈堛倞銈傚畨鍊ゃ仹鐙嚜銉夈儭銈ゃ兂銇儭銉笺儷閬嬬敤銇屽彲鑳姐仹銇欍

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉 銉┿偆銉 銇 SQL 銇娇鐢ㄣ仹銇嶃伨銇欍亱锛

MySQL 銇偣銈裤兂銉銉笺儔銉椼儵銉充互涓娿伀銇仯銇︺亜銇俱仚銇屻
SQLite 銇儵銈ゃ儓銉椼儵銉炽仹銈備娇鐢ㄥ彲鑳姐仹銇欍

FTP銉汇儭銉笺儷閫佷俊銇晱椤屻亴銇傘倞銇俱仚銆

聽銆愭柊銈炽兂銉堛儹銉笺儷銉戙儘銉戝浗澶朓P銈€儔銉偣銉曘偅銉偪 | 銈€偗銈汇偣鍒堕檺

鏃ユ湰銇檺銈夈仾銇勩偘銉兗銉愩儷銇ф彁渚涖仌銈屻仸銇勩倠銈点兗銉撱偣銇嬨倝浣跨敤銇欍倠鍫村悎銆
娴峰銇嬨倝銇帴缍氥仺銇倞銆佸浗澶朓P銈€儔銉偣銉曘偅銉偪 銇с儢銉儍銈仌銈屻伨銇欍
鍥藉IP銈€儔銉偣銉曘偅銉偪 銈掔劇鍔广伀銇椼仸瑭︺仐銇︺伩銇︿笅銇曘亜銆

Gmail 銇璞″銇仐銇︺亜銈嬨倛銇嗐仹銆佹湁鍔广伀銇椼仸銇勩仸銈傘儭銉笺儷閫佷俊銇с亶銇俱仚銆

銈€儍銉椼儹銉笺儔銇椼仧銇ㄣ亾銈嶃佹枃瀛楀寲銇戙亴鐧虹敓銇椼伨銇欍

銇曘亸銈夈伄銉兂銈裤儷銈点兗銉愩仹銇 .html 銉曘偂銈ゃ儷銈
Content-Type: text/html 銇仐銇︺亗銈娿伨銇欍
姣旇純鐨勬渶杩戝叕闁嬨仌銈屻仸銇勩倠 Web 銈点兗銉撱偣銇с伅
Content-Type: text/html; charset=utf-8 銇ㄣ仐銇俱仚銆
銇撱倢銇暦骞淬偟銉笺儛鎻愪緵銈掋仐銇︺亜銈嬨仧銈併
UTF-8 瀹氱京鍓嶃伄 HTML锛堛偡銉曘儓 JIS銉籈UC銉籎IS锛夈倰鑰冩叜銇椼仸銇勩倠銇ㄦ濄倧銈屻伨銇欍

瑙f焙銇仧銈併.html 銉曘偂銈ゃ儷銇 meta 銈裤偘銈掔敤銇勩仸鏂囧瓧銈炽兗銉夈倰鎸囧畾銇椼伨銇欍

<meta charset="utf-8">

銇俱仧銇

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

銇撱伄瑷樿級銇 <head> 銇洿寰屻倰銇娿仚銇欍倎銇椼伨銇欍傘仢銇緦銇棩鏈獮銇屽嚭銇︺亸銈嬨仧銈併仹銇欍

PHP 銈掍娇鐢ㄣ仚銈嬪牬鍚堛伅銆佸嚭鍔涖仚銈嬮牠閮ㄥ垎銇 header 銈掓寚瀹氥仐銇俱仚銆

header("Content-type: text/html; charset=utf-8");

.htaccess 銇с伨銇ㄣ倎銇︽枃瀛椼偝銉笺儔銈掓寚瀹氥仚銈嬩簨銈傘仹銇嶃伨銇欍.php 銈傝拷鍔犲彲鑳姐仹銇欍

AddType "text/html; charset=UTF-8" .html