the2ndface 发表于 2016-6-3 13:36:30

【已搞定】apache2一鸡多站怎么配

本帖最后由 the2ndface 于 2016-6-4 08:20 编辑

ubuntu +apache2

虚拟服务器里配置了不行
单文件不行 比如 a.confb.conf 只能解析一个
都写到一个文件里也不行   

非一键包,都是手动配的。。我看LNMP的可以随便弄,直接新建填上就行了。。。

求讲解



      ServerAdmin webmaster@localhost
      ServerName www.baidu.com
      DocumentRoot /var/www/wordpress



      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined






      ServerAdmin webmaster@localhost
      ServerName www.baidu2222.com
      DocumentRoot /var/www/wordpress222



      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined


tomcb 发表于 2016-6-3 13:38:06

新建虚拟主机

zhou0911 发表于 2016-6-3 13:48:28

用个面板吧,amh啥的很好弄,不用面板自己改配置的都是大牛

the2ndface 发表于 2016-6-3 13:58:51


zhou0911 发表于 2016-6-3 13:48

用个面板吧,amh啥的很好弄,不用面板自己改配置的都是大牛
有时候嫌装面板费劲,有的小鸡太烂,面板装不上

左手写爱 发表于 2016-6-3 13:48:00

是打算买还是自己用的

Ruclinux 发表于 2016-6-4 06:47:17

vi /etc/httpd/conf/httpd.conf

要修改好几个地方.

the2ndface 发表于 2016-6-4 06:58:13


Ruclinux 发表于 2016-6-4 06:58

vi /etc/httpd/conf/httpd.conf

要修改好几个地方.
大便系列和RH系列配置不一样。。
不过已经搞定了。。
页: [1]
查看完整版本: 【已搞定】apache2一鸡多站怎么配