2011-12-14 103 views
0

我爲我的subdomain.example.com創建了一個A記錄,這個記錄指向x.x.x.x。 所以我的子域指向x.x.x.x的IP地址。虛擬主機文檔根目錄不起作用

另外我想我的子域指向一個子目錄。因此,在x.x.x.x上,我將這些行添加到httpd.vhosts.conf。這臺機器在xampp上運行。

<VirtualHost *:80> 
DocumentRoot /opt/lampp/htdocs/subdomain 
ServerName subdomain.example.com 
<Directory /opt/lampp/htdocs/subdomain> 
allow from all 
Options +Indexes 
</Directory> 
</VirtualHost> 

subdomain.example.comx.x.x.xx.x.x.x/subdomain。我不明白我在做什麼錯了?

回答

相關問題