老师,二级域名怎么设置?
老师,二级域名怎么设置?谢谢
老师,二级域名怎么设置?谢谢
2017-05-21
如果是apache服务器的话,在httpd-vhosts.conf文件中加上
<VirtualHost *:80>
ServerAdmin webmaster@iwebshop.com
DocumentRoot "F:/www/test"
ServerName xxx.test.com
ErrorLog "logs/my.iwebshop.com-error.log"
CustomLog "logs/my.iwebshop.com-access.log" common
<Directory "F:\www\test">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
然后在hosts文件中最下面加上 127.0.0.1 xxx.test.com
重启apache即可
举报