之外的另一個目錄我有一個多站點的Drupal設置http://mysite.com這是在/ home/Drupal的Drupal的符號鏈接的Drupal
我想要的路徑http://mysite.com/iphone/指向一個目錄的Drupal外面對我的服務器的/ home /蘋果手機。
這是在虛擬主機文件中的條目:
<VirtualHost 192.168.100.244:80>
ServerAdmin [email protected]
DocumentRoot /home/drupal
ServerName mysite.com
ServerAlias mysite.com www.mysite.com www.mysite.com mysite.com
ErrorLog /var/log/httpd/mysite5_err_log
CustomLog /var/log/httpd/mysite5_log special
<Directory /home/drupal>
Options FollowSymLinks +Includes ExecCGI
AllowOverride All
DirectoryIndex index.html index.htm index.php
</Directory>
</VirtualHost>
這是一個符號鏈接或在虛擬主機文件或Apache設置做了什麼? 這怎麼辦?
感謝
你能舉個例子說明我會寫什麼請爲每個選項。它會是: DocumentRoot /首頁/ iphone 服務器名稱mysite.com/iphone – EricP 2011-02-24 16:21:00
轉到/ home/drupal並創建一個符號鏈接:「ln -s ../iphone iphone」 – soju 2011-02-24 16:25:39
這有效,但我該如何創建個別網站。這是爲我的所有Drupal站點/ iphone創建一個sym鏈接。如果我只需要mysite.com而不是myothersite.com呢? 我有/home/drupal/sites/mysite.com /home/drupal/sites/myothersite.com等... – EricP 2011-02-24 16:48:36