您现在的位置是:首页 > PHP > 泛解析*.域名 网站首页 PHP

泛解析*.域名

Tom2018-04-05 3680人围观
PHP  
简介 暂无

第一步:

  • 阿里云中配置解析

  • 主机记录即域名前缀必须填写 “ ”(星号)。

  • 记录值设置为服务器ip地址

  • 保存

第二步:

  • 修改服务器apache配置httpd.conf(地址一般/ etc/httpd/conf , /etc/Apache2/conf  或 /usr/local/etc/apache )\
  • 添加代码(去除#字符)
  • #<VirtualHost *:80>
  • #    ServerAdmin webmaster@dummy-host.example.com 
  • #    DocumentRoot /www/docs/dummy-host.example.com 
  • #    ServerName dummy-host.example.com 
  • #    ErrorLog logs/dummy-host.example.com-error_log 
  • #    CustomLog logs/dummy-host.example.com-access_log common 
  • #</VirtualHost>
  • 保存
第三步
  • 重启Apache,运行 sudo systemctl restart httpd.service

打赏本站,你说多少就多少

文章评论

image
2018-06-05 你三舅
你最帅了,博主最帅了,我要给你生猴子