作者godman362 (Shizuru)
看板NUU_CSIE
标题Re: [ㄅㄍ] 脑包喔..
时间Sun May 3 19:32:47 2009
我刚刚拿家里主机测试一下,系统是CentOS-5.2
架virtual host没有问题欸
而且我刚刚看了一下你刚刚上面打的架法
我有点小问题,就是说为什麽会将网页导向/home/forum去勒?
这样不就代表说必须要有一个叫forum的user存在吗?
蛮不直觉的作法啦,虽然看起来好像可以作(这边存疑)
提供一个刚刚看到的作法,在/var/www底下放自己的资料
原本html那个,就是放sa的资料,如果要放论坛什麽鬼的
再新建一个资料夹给史提芬周就好,就mkdir一个nschou给他就可以了
然後把资料全部丢去进,再重新改一下virtual host的设定档
NameVirtualHost *:80
<Directory "
/var/www/html">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "
/var/www/nschou">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerName sa.csie.nuu.edu.tw
DocumentRoot
/var/www/html
CustomLog /var/log/http/sa.access_log combine
#记得先touch一个档案出来纪录
</VirtualHost>
<VirtualHost *:80>
ServerName forum.csie.nuu.edu.tw
DocumentRoot
/var/www/nschou
CustomLog /var/log/httpd/forum.access_log combined
#一样,先touch一下
</VirtualHost>
上面的方式测试正常
不会乱连结
至於virtual host乱跑的原因,我猜可能是dns吧~"~
--
ˍˍ
如果我手中有酒,希望与你共饮。 ▕羽人▏
如果我手上有刀,希望与你一同抗敌。▕非獍▏
 ̄ ̄
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.118.54.31
1F:推 rkcity:不用一个forum的user呀.. 用alias就可以了.. 05/04 01:05
2F:→ godman362:不解,请萧大师赐教 05/04 09:52