【发布时间】:2015-10-14 19:50:52
【问题描述】:
我尝试在 APACHE 服务器中配置基于端口的虚拟主机,但出现以下错误
[root@ram conf]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for ram
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Wed Oct 14 15:11:37 2015] [warn] VirtualHost 192.168.2.3:80 overlaps with VirtualHost 192.168.2.3:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Oct 14 15:11:37 2015] [warn] NameVirtualHost 192.168.2.3:2233 has no VirtualHosts
(13)Permission denied: make_sock: could not bind to address [::]:2233
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:2233
no listening sockets available, shutting down
Unable to open logs
[FAILED]
[root@ram 配置]# 在这种情况下,我的配置文件是
<VirtualHost 192.168.2.3:80>
ServerAdmin root@lopcalhost
DocumentRoot "/opt/sample"
DirectoryIndex "welcome.html"
ServerName "host.admin.com"
Listen 2233
NameVirtualHost 192.168.2.3:2233
<VirtualHost 192.168.2.3:80>
ServerAdmin root@lopcalhost
DocumentRoot "/opt/web1"
DirectoryIndex "123.html"
ServerName "host1.admin.com"
【问题讨论】:
标签: apache