webサーバ ヴァーチャルドメイン用に変更

Serverman@VPS Entry (490円/月)
http://dream.jp/vps/

CentOS 5.7 運用中

今後、複数ドメインを管理出来るようにフォルダを変更してみた。

web用
/virtual/アカウント/public_html/ドメイン/ウェブフォルダ

※アカウントはユーザ登録で作成したもの。
※フォルダは作成

・ftp(vsftp)設定変更

設定ファイル( /etc/vsftpd/vsftpd.conf )に
ユーザーごとに設定ファイルを有効にする下記の一文を追記。

user_config_dir=/etc/vsftpd/vsftpd_user_conf

設定ファイルを設置するディレクトリを作成

# mkdir /etc/vsftpd/vsftpd_user_conf

ユーザごとの設定ファイルを作成

# vi /etc/vsftpd/vsftpd_user_conf/アカウント

以下を記入

local_root=/virtual/アカウント/public_html/ドメイン/

※上記ディレクトリは作成する。
※public_htmlのフォルダのグループとオーナーはアカウントのものに変更

vsftpd再起動

# /etc/init.d/vsftpd restart

・Apache webサーバ 設定変更

Apacheの下記設定ファイルのDocumentRootの変更

/etc/httpd/conf/httpd.conf

httpd再起動

# /etc/rc.d/init.d/httpd restart

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

認証(CAPTCHA) * Time limit is exhausted. Please reload CAPTCHA.