小编Spa*_*rky的帖子

在端口 443 上添加多个 VirtualHost 时发出警告 - “_default_ VirtualHost 在端口 443 上重叠,第一个优先”

我正在运行 Ubuntu 12.10 并且我有以下 4 个 VirtualHost 条目 /etc/apache2/apache2.conf

4级虚拟主机的条目是用于两个分开的点,test.example.com并且test2.example.com,为每一个条目HTTP,一个用于HTTPS。

<VirtualHost *:443>
   DocumentRoot /var/www/test
   ServerName test.example.com
   # Other settings goes here
</VirtualHost>


<VirtualHost *:80>
   DocumentRoot /var/www/test
   ServerName test.example.com
   # Other settings goes here
</VirtualHost>

<VirtualHost *:443>
   DocumentRoot /var/www/test2
   ServerName test2.example.com
   # Other settings goes here
</VirtualHost>


<VirtualHost *:80>
   DocumentRoot /var/www/test2
   ServerName test2.example.com
   # Other settings goes here
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

我的问题 当我保存并重新启动 apache 时,我收到此警告:-

* 重新启动 web 服务器 apache2
[Sun Feb 17 18:30:09 2013] [warn] _default_ VirtualHost 在端口 …

ubuntu virtualhost apache-2.2

7
推荐指数
1
解决办法
2万
查看次数

更改绑定地址后,MySQL 服务器将无法运行

为了允许来自外部的连接,我编辑将默认值/etc/mysql/my.cnf更改为. 但是更改后,mysql 服务将无法启动。当我检查 mysql 错误日志时,它有这个:-bind-address127.0.0.154.200.xx.xx

131030 12:27:53 [Note] Server hostname (bind-address): '54.200.xx.xx'; port: 3306
131030 12:27:53 [Note]   - '54.200.xx.xx' resolves to '54.200.xx.xx';
131030 12:27:53 [Note] Server socket created on IP: '54.200.xx.xx'.
131030 12:27:53 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
131030 12:27:53 [ERROR] Do you already have another mysqld server running on port: 3306 ?
131030 12:27:53 [ERROR] Aborting
Run Code Online (Sandbox Code Playgroud)

服务器位于 Amazon EC2 上,运行 Ubuntu 12.04 LTS。知道问题是什么吗?

ubuntu@ip-172-31-xx-xxx:~$ ifconfig
eth0      Link …
Run Code Online (Sandbox Code Playgroud)

mysql

0
推荐指数
1
解决办法
2万
查看次数

标签 统计

apache-2.2 ×1

mysql ×1

ubuntu ×1

virtualhost ×1