我想用appserv架站
我之前的做法是打開http.conf
LoadModule vhost_alias_module modules/mod_vhost_alias.so 去掉前面的井號
然後httpd-vhosts.conf
加上自己要的vh
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.x
DocumentRoot "C:/Apache2.2/docs/dummy-host.x"
ServerName dummy-host.x
ServerAlias
dummy-host.x... ErrorLog "logs/dummy-host.x-error.log"
CustomLog "logs/dummy-host.x-access.log" common
</VirtualHost>
問題1...這裡有個疑問,www要在這裡都加上去嗎etc
<VirtualHost abc.com*:80>
ServerAdmin webmaster@dummy-host.x
DocumentRoot "C:/Apache2.2/www" <<<<<<<<<<<<<<<-www-
ServerName dummy-host.x
ServerAlias
dummy-host.x... ErrorLog "logs/dummy-host.x-error.log"
CustomLog "logs/dummy-host.x-access.log" common
</VirtualHost>
問題2.我在www裝discuz cms就沒事
但有時在 www/cms 裝了之後的網頁會亂掉 沒了css的網頁
vh裡裝的網頁都會這裡
請問各位
我那沒設置
謝謝