www:一般公開用サイト
dev:テスト用サイト
blog:開発用ブログ
とします。
root@onering:~# cd /var/www/
root@onering:/v
It works!
root@onering:/v- Reloading web server config apache2
...done.
root@onering:~# su - ysakaki
ysakaki@onering:~$ mkdir dev.footfu
n.jp ysakaki@onering:~$ mkdir blog.footf un.jp ysakaki@onering:~$ mkdir blog.footf un.jp/www ysakaki@onering:~$ mkdir blog.footf un.jp/log ysakaki@onering:~$ mkdir dev.footfu n.jp/www ysakaki@onering:~$ mkdir dev.footfu n.jp/log ysakaki@onering:~$ exit logout root@onering:~# cd /etc/apach e2/sites-a vailable/ root@onering:/e tc/apache2 /sites-ava ilable# ls default default-ss l footfun.jp root@onering:/e tc/apache2 /sites-ava ilable# cp footfun.jp dev.footfu n.jp root@onering:/e tc/apache2 /sites-ava ilable# cp footfun.jp blog.footf un.jp root@onering:/e tc/apache2 /sites-ava ilable# nano dev.footfu n.jp root@onering:/e tc/apache2 /sites-ava ilable# nano blog.footf un.jp root@onering:/e tc/apache2 /sites-ava ilable# a2ensite dev.footfu n.jp Enabling site dev.footfu n.jp. Run '/etc/init. d/apache2 reload' to activate new configurat ion! root@onering:/e tc/apache2 /sites-ava ilable# a2ensite blog.footf un.jp Enabling site blog.footf un.jp. Run '/etc/init. d/apache2 reload' to activate new configurat ion! root@onering:/e tc/apache2 /sites-ava ilable# /etc/init. d/apache2 reload - Reloading web server config apache2 ...done.
posted by
ysakaki
on Sun 14 Dec 2008
at 02:19