Toggle navigation
Hamamura Design
Home
Works
Service
Tech
About
Contact
開始行:
UbuntuのWebサーバでサブドメインを設定する方法
#contents
*参考サイト [#nbedd665]
- ubuntu にて apacheのバーチャルドメイン設定
http://gurizuri0505.halfmoon.jp/20080924/3437
- Ubuntu/apache2
http://tobysoft.net/wiki/index.php?Ubuntu%2Fapache2
*バーチャルドメイン設定 [#l90f8437]
-UbuntuのWebサーバ
-Apacheの設定ファイル
設定ファイルの場所
/etc/apache2/sites-available/
に移動する。
独自の設定ファイルを作っていれば、それをvimで開いて編集す...
<VirtualHost *>
DocumentRoot /var/www/sub
ServerName sub.domain.com
</VirtualHost>
上記のようにバーチャルホストの設定を追記する。
設定ファイルを再読込みして、変更内容を有効にする。
/etc/init.d/apache2 force-reload
Apacheの再起動
/etc/init.d/apache2 restart
終了行:
UbuntuのWebサーバでサブドメインを設定する方法
#contents
*参考サイト [#nbedd665]
- ubuntu にて apacheのバーチャルドメイン設定
http://gurizuri0505.halfmoon.jp/20080924/3437
- Ubuntu/apache2
http://tobysoft.net/wiki/index.php?Ubuntu%2Fapache2
*バーチャルドメイン設定 [#l90f8437]
-UbuntuのWebサーバ
-Apacheの設定ファイル
設定ファイルの場所
/etc/apache2/sites-available/
に移動する。
独自の設定ファイルを作っていれば、それをvimで開いて編集す...
<VirtualHost *>
DocumentRoot /var/www/sub
ServerName sub.domain.com
</VirtualHost>
上記のようにバーチャルホストの設定を追記する。
設定ファイルを再読込みして、変更内容を有効にする。
/etc/init.d/apache2 force-reload
Apacheの再起動
/etc/init.d/apache2 restart
ページ名:
.