2011-12-14 44 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。我不明白我在做什么错了?

回答

相关问题