全球主机交流论坛

标题: 【已搞定】apache2一鸡多站怎么配 [打印本页]

作者: the2ndface    时间: 2016-6-3 13:36
标题: 【已搞定】apache2一鸡多站怎么配
本帖最后由 the2ndface 于 2016-6-4 08:20 编辑

ubuntu +apache2

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

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

求讲解
<VirtualHost *:80>


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



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


</VirtualHost>
<VirtualHost *:80>


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



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


</VirtualHost>

作者: tomcb    时间: 2016-6-3 13:38
新建虚拟主机
作者: zhou0911    时间: 2016-6-3 13:48
用个面板吧,amh啥的很好弄,不用面板自己改配置的都是大牛
作者: the2ndface    时间: 2016-6-3 13:58
zhou0911 发表于 2016-6-3 13:48
用个面板吧,amh啥的很好弄,不用面板自己改配置的都是大牛

有时候嫌装面板费劲,有的小鸡太烂,面板装不上
作者: 左手写爱    时间: 2016-6-4 06:47
是打算买还是自己用的
作者: Ruclinux    时间: 2016-6-4 06:58
vi /etc/httpd/conf/httpd.conf

要修改好几个地方.
作者: the2ndface    时间: 2016-6-4 08:18
Ruclinux 发表于 2016-6-4 06:58
vi /etc/httpd/conf/httpd.conf

要修改好几个地方.

大便系列和RH系列配置不一样。。
不过已经搞定了。。




欢迎光临 全球主机交流论坛 (https://loc.888543.xyz/) Powered by Discuz! X3.4