ãã¯ãã«ã«ãªãããã¯ã«ãªãã¾ãã
ãµã¤ãã®ã¡ã¤ã³ããã³ã¹ãªã©ã§ä¸æçã«ãªãã©ã¤ã³ã«ããªããã°ãªããªãããããæ°æéã«åã³ã¢ã¯ã»ã¹ä¸è½ãªç¶æ ãç¶ããã¨ã¯ã訪åè ã«ã¨ã£ã¦ã¯ãã¡ããã®ãã¨ãµã¼ãã¨ã³ã¸ã³ã«ã¨ã£ã¦ãã好ã¾ãããã¨ã§ã¯ããã¾ããã
ãµã¤ãã«ã¢ã¯ã»ã¹ã§ããªãç¶æ ãé·ãç¶ãã¨ãã©ã³ãã³ã°ã«æªå½±é¿ãã§ããã¨ãèãããã¾ãã
訪åè ã«ã¯ããä¸æã¡ã³ããã³ã¹ä¸ããè¿·æãããããã¾ãããã¨ã§ãéç¥ãã¼ã¸ãä½ã£ã¦ããã°ç解ãã¦ããããã§ãããã
ã§ããµã¼ãã¨ã³ã¸ã³ããã®ãã¼ã¸ãè¦ã¦ãããã¯ããåããã¾ãããã¾ãããããã¦è¨ªåãã¾ãããã¨ã¯ãªãã¾ããã
ãµã¼ãã¨ã³ã¸ã³ã«ã¯ããµã¼ãã¹ãä¸æçã«éè² è·ãã¡ã³ããã³ã¹ã§ä½¿ç¨ä¸å¯è½ã«ãªã£ã¦ãããã¨ã表ãã503: Service Unavailableãã¨ããHTTPã¹ãã¼ã¿ã¹ã³ã¼ãã§ç¤ºããªããã°ãªãã¾ããã
503ãè¿ãã¨ããµã¼ãã¨ã³ã¸ã³ã®ããããã¯ãµã¤ããä¸æçã«ãã¦ã³ãã¦ããã ãã§ããã°ããããã°å¾©æ§ããã¨èªèãã¦ããã¾ãã
ãµã¤ãã¡ã³ããã³ã¹æã¯ãã»ã£ããããã«ãã¦404ã¨ã©ã¼ãè¿ãã®ã§ã¯ãªãã503ã¨ã©ã¼ãè¿ãããã«æºåãã¦ããã¾ãããã
ã§ã¯å ·ä½çã«ã©ããã£ã¦503ã¨ã©ã¼ãè¿ãè¨å®ããããã§ããã»ã»ã»ãåããã¾ãããï¼çï¼
ãããåãããªãã¯ãªãã®ã§ããã¹ãã¼ããªæ¹æ³ãè¦ã¤ãããªãã®ã§ãã
ErrorDocument 503 "Sorry. We're under maintenance."
RedirectMatch 503 .*
.htaccessã«ããè¨è¿°ãã¦ãã°ãããããã«ã¯503ãè¿ããã¦ã¼ã¶ã¼ã«ã¯ãSorry. We’re under maintenance.ãã¨ããã¡ãã»ã¼ã¸ã表示ãã¾ãã
ãã ãèªåã§ã«ã¹ã¿ãã¤ãºããã¨ã©ã¼ãã¼ã¸ã表示ã§ãã¾ããã
ã¾ããæ¥æ¬èªã§ã¯æåã³ã¼ããåãããªãã¨æååããã¾ãã
ç¾ãããªãã§ããã
Redirect 503 /abc
ErrorDocument 503 /503.html
ããããã¨ãabcãã£ã¬ã¯ããªé
ä¸ã®ã¢ã¯ã»ã¹ã«ã¯503ãè¿ãã503.htmlã表示ããããã¨ãã§ãã¾ãã
503.htmlã¯èªåã§èªç±ã«ä½ãã¾ãã
ä¸è¦ãããããªã®ã§ãããã«ã¼ããã£ã¬ã¯ããªï¼â/âç´ä¸ï¼ã®ä¸ã«ãããã¼ã¸ã¸ã®ã¢ã¯ã»ã¹ã«ã¯é©ç¨ããã¾ããã
abcã®ä¸ã ãã§ãã
Redirect 503 /
ErrorDocument 503 /503.html
ããããã¨ããµã¤ãå
ã®ãã¹ã¦ã®ã¢ã¯ã»ã¹ã«503ãè¿ãã¾ããã503.htmlã表示ã§ããªããªãã¾ãã
ã«ã¼ããã£ã¬ã¯ããªã«æ ¼ç´ããã¦ãã503.htmlã«ã表示ãããã¨ããã¨ãã«ãã503ã¨ã©ã¼ãè¿ããã¦ãã¾ãããã§ãã
503.htmlãå¥ãµã¤ãã«ç½®ãã°åé¿ã§ãã¾ãããæ°åçã«ã¤ã¤ã§ãã
RewriteCondã使ã£ã¦æ¡ä»¶è¨å®ããã°ããã¨ãããã¨ã§ããããªè¨è¿°ãã§ããããã§ããã試ããã¨ãããã¾ãããã¾ããã§ããã
RewriteEngine on
RewriteCond %{REQUEST_URI} !/503\.html$
RewriteRule ^(.*)$ /503.html [R=503,L]
RewriteEngine on
RewriteCond %{REQUEST_URI} !/503\.html$
RewriteRule ^(.*)$ /503.html [R=503,L]
mod_rewriteã¯ãããã¨ä½¿ããã®ãããªãã¨ããmod_asisã使ãã°ããã¨ããããããã®ãè¦ã¤ããã¾ããããåã®æã«ã¯è² ãã¾ããã
ITãã¬ã¼ãããã£ã¦ããã®ã§ãããUNIXãLINUXã®Apacheãªäººã§ã¯ãªããWindowsã®IISãªäººã ã£ãã®ã§ã.htaccessã¯è©³ãããªãã®ã§ãã
ã©ãªããããµã¤ãå ¨ä½ã§503ã¹ãã¼ã¿ã¹ã³ã¼ããè¿ãããã¤ãµã¤ãå ã«ããã«ã¹ã¿ãã¤ãºããã¨ã©ã¼ãã¼ã¸ã表示ããããã¹ãã¼ãã§é£ãããªãæ¹æ³ãæãã¦ãã ããã
ãUPDATEã
503ã®è¨å®ã«ã¤ãã¦ã¯ãã¡ãã®ãã¼ã¸ãé常ã«å½¹ç«ã¡ã¾ãã
ã¡ã³ããã³ã¹ä¸ç»é¢ãåºãæ£ããä½æ³ã¨.htaccessã®æ¸ãæ¹ – Webæ
å½è
Forum