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.com
点x.x.x.x
不x.x.x.x/subdomain
。我不明白我在做什么错了?