トップ 差分 一覧 ping ソース 検索 ヘルプ PDF RSS ログイン

Linux Webサーバーの引っ越し



目次



記事一覧

キーワード

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/



YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto

Copyright© 矢木 浩人 All Rights Reserved.