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
。我不明白我在做什麼錯了?