WebjxCom提示:我就是不晓得如何让两个域名对应同一个IP
,然后能识别出不同的网站?NameVirtualHost12.34.56.78#youripaddressVirtualHost12.34.56.78ServerNameyourname1DocumentRootyourpath1/VirtualHostVirtualHost12.34.56.78ServerNameyourname2DocumentRoot
我就是不晓得如何让两个域名对应同一个IP
,然后能识别出不同的网站?
NameVirtualHost12.34.56.78#youripaddress
<VirtualHost12.34.56.78>
ServerNameyourname1
DocumentRootyourpath1
</VirtualHost>
<VirtualHost12.34.56.78>
ServerNameyourname2
DocumentRootyourpath2
</VirtualHost>
Ifyouwanttouse443
NameVirtualHost12.34.56.78:80#youripaddress
NameVirtualHost12.34.56.78:443#youripaddress
<VirtualHost12.34.56.78:80>
ServerNameyourname1
DocumentRootyourpath1
</VirtualHost>
<VirtualHost12.34.56.78:443>
ServerNameyourname1
DocumentRootyourpath1
</VirtualHost>