1 頁 (共 1 頁)

[問題]關於apache的網站發布設定

發表於 : 2004-12-24 07:36
chine322
#NameVirtualHost 220.1x4.7x.24

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost 220.1x4.7x.24>
# ServerAdmin xxx@tahoo.com
# DocumentRoot C:\AppServ\www\linda
# ServerName xx.idv.tw
# ServerAlias linda.xx.idv.tw
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

#<VirtualHost 220.1x4.7x.24>
# ServerAdmin xxx@yahoo.com
# DocumentRoot C:\AppServ\www\hebe
# ServerName xx.idv.tw
# ServerAlias hebe.xx.idv.tw
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>


設定之後~外部都連不近來,內部也要用localhost才能觀看php論壇
不知小弟有哪邊設定錯誤~~~

發表於 : 2004-12-24 07:40
神川小羽
這個是阿帕器的 Virtual Host 虛擬主機設定耶
一般來說 如果你的主機只架設一個站台的話是不需要設定這個的
開頭如果是# 也表示這個是沒有作用的
# 在C語言中 是單行註解的意思

發表於 : 2004-12-24 07:54
hollowaysxp
神川小羽 寫:這個是阿帕器的 Virtual Host 虛擬主機設定耶
一般來說 如果你的主機只架設一個站台的話是不需要設定這個的
開頭如果是# 也表示這個是沒有作用的
# 在C語言中 是單行註解的意思
不對吧!#的確是在設定檔中代表註解!但是C語言內的注解並不是#
有些Linux設定檔才是真正用C語言的注解。

C語言註解單行 // 或 多行/* .......*/
#應該代表前置處理,包括#include還有#define PI 3.14159
#define AREA(r) ((r)*(r)*(PI))
#define MAX(a, b) ((a > b) ? a : b)

等等吧!

發表於 : 2004-12-24 08:15
chine322
沒錯~"~我就是同時架設很多論壇~~但是都發佈不了~~
那我該設定哪裏呢??或者哪需要改的?? ;-)

發表於 : 2004-12-24 09:01
神川小羽
Linux本來就是C語言的阿@@"
//或是# 或是/* .... */ 都是忽略阿@@"
在PHP中 #也是註解嚕 可以試試看

[建議]先把#刪除吧~^^

發表於 : 2004-12-24 12:58
randyweng
chine322 寫:沒錯~"~我就是同時架設很多論壇~~但是都發佈不了~~
那我該設定哪裏呢??或者哪需要改的?? ;-)
前面幾位版友的意思應該是\r
你把前面的註解符號"#"去掉
然後重新啟動apache
這樣應該就可以了 :lol: