| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

「Linux Webサーバーの引っ越し」の版間の差分

提供: MyMemoWiki
ナビゲーションに移動 検索に移動
 
1行目: 1行目:
==Linux Webサーバーの引っ越し==
+
==[[Linux Webサーバーの引っ越し]]==
 
[[Linux]] | [[CentOS]] |  
 
[[Linux]] | [[CentOS]] |  
  
 
===引っ越すWebサーバーの httpd.conf に以下を記述===
 
===引っ越すWebサーバーの httpd.conf に以下を記述===
*引っ越したあと、元のURLへのリクエストを新サーバーへリダイレクトする設定
+
*引っ越したあと、元のU[[R]]Lへのリクエストを新サーバーへリダイレクトする設定
 
====記法====
 
====記法====
  Redirect permanent {引っ越すパス} {引っ越し先のパス}
+
  [[R]]edirect permanent {引っ越すパス} {引っ越し先のパス}
  
 
=====例=====
 
=====例=====
 
  #
 
  #
  # Redirect allows you to tell clients about documents which used to exist in
+
  # [[R]]edirect allows you to tell clients about documents which used to exist in
 
  # your server's namespace, but do not anymore. This allows you to tell the
 
  # your server's namespace, but do not anymore. This allows you to tell the
 
  # clients where to look for the relocated document.
 
  # clients where to look for the relocated document.
 
  # Example:
 
  # Example:
  # Redirect permanent /foo http://www.example.com/bar
+
  # [[R]]edirect permanent /foo http://www.example.com/bar
 
   
 
   
  Redirect permanent / http://typea.info/
+
  [[R]]edirect permanent / http://typea.info/

2020年2月16日 (日) 04:29時点における最新版

Linux Webサーバーの引っ越し

Linux | CentOS |

引っ越すWebサーバーの httpd.conf に以下を記述

  • 引っ越したあと、元のURLへのリクエストを新サーバーへリダイレクトする設定

記法

Redirect permanent {引っ越すパス} {引っ越し先のパス}
#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

Redirect permanent / http://typea.info/