查講義drupal_2013-0805.pdf
一、原http://localhost/drupal現在想要連http://localhost就直接開啟drupal的網站,要
(一)
改http.conf,重啟 apach,就可以用http://localhost直接開啟drupal的網站
原設定
DocumentRoot "D:/xampp/htdocs"
<Directory "D:/xampp/htdocs">
現改設定為
DocumentRoot "D:/xampp/htdocs/drupal"
<Directory "D:/xampp/htdocs/drupal">
(二)、呈上,現在想要連本校官網http://www.lhes.tp.edu.tw,就直接開啟drupal網站,只要在設定中設 www.lhes.tp.edu.tw 到127.0.0.1(localhost)即可
1.建另一多網站,用本校官網URL www.lhes.tp.edu.tw為資料夾
2.參setting.php多網站sites的相關設定,若在本機用www.lhes.tp.edu.tw,它會優先找到D:/xampp/htdocs/drupal/sites/www.lhes.tp.edu.tw資料夾...
3. 找example.sites.php改名sites.php,加一行
$sites['localhost'] = 'www.lhes.tp.edu.tw';
三、 以系管身份進windos\system32\driver\etc修改host檔(可用notepad++), 加
127.0.0.1 www.lhes.tp.edu.tw
這樣瀏覽器,如果用www.lhes.tp.edu.tw連就會指到多網站的資料夾www.lhes.tp.edu.tw,讓你安裝多網站(要設個資料庫來安裝...)
四,不要開放大家來註冊,這兩天預定架1.首頁輪播 2.最新公告、3.活動相簿、4.網頁連結(可輸播)