Apache 服务器中如何配置虚拟主机

    Read

在apache服务器中如何建立多个网站,并且绑定不同的目录呢?

其实是非常简单的事情在服务器中找到httpd.conf,这个是apache的配置文件。SourceByrd's Weblog-https://note.t4x.org/basic/apache-config-virtualhost/

假设我的域名www.selmy.org我绑定的目录是/var/www/docs/selmys/SourceByrd's Weblog-https://note.t4x.org/basic/apache-config-virtualhost/

查找:httpd.conf

SourceByrd's Weblog-https://note.t4x.org/basic/apache-config-virtualhost/

然后编辑httpd.conf,增加如下内容:


我的另外一个网站假设是www.baidu.comSourceByrd's Weblog-https://note.t4x.org/basic/apache-config-virtualhost/

那么

SourceByrd's Weblog-https://note.t4x.org/basic/apache-config-virtualhost/

申明:转载于网络,版权归原作者所有!SourceByrd's Weblog-https://note.t4x.org/basic/apache-config-virtualhost/ SourceByrd's Weblog-https://note.t4x.org/basic/apache-config-virtualhost/

Today in History
March
10
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on March 10, 2014
  • 原文链接:https://note.t4x.org/basic/apache-config-virtualhost/
匿名

Comment

Anonymous

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: