当前位置: 技术问答>java相关
我连接apache和tomcat之后为什么apache不能启动?
来源: 互联网 发布时间:2015-06-30
本文导语: tomcat连apache的问题 tomcat:4.0.3 apache:1.3.2.2 配置完tomcat,默认配置 启动tomcat一切正常,8080和8008端口都开启 配置apache,步骤如下 修改 httped.conf 最后三排加入 LoadModule webapp_module libexec/mod_webapp.so ...
tomcat连apache的问题
tomcat:4.0.3
apache:1.3.2.2
配置完tomcat,默认配置
启动tomcat一切正常,8080和8008端口都开启
配置apache,步骤如下
修改 httped.conf
最后三排加入
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
启动apache
报错
如下:[Fri Jun 28 08:48:14 2002] 15335 (wa_main.c:81) Initializing APR
[Fri Jun 28 08:48:14 2002] 15335 (pr_info.c:66) INFO provider initialized
[Fri Jun 28 08:48:14 2002] 15335 (pr_warp.c:62) WARP provider initialized
[Fri Jun 28 08:48:14 2002] 15335 (wa_main.c:101) WebApp Library initialized
[Fri Jun 28 08:48:14 2002] 15335 (wa_config.c:167) Created connection "warpConnection" (Prov: "warp"
008")
Syntax error on line 994 of /usr/local/apache/conf/httpd.conf:
Invalid virtual host name
./apachectl start: httpd could not be started
[oracle@LinuxServer1 bin]$
tomcat:4.0.3
apache:1.3.2.2
配置完tomcat,默认配置
启动tomcat一切正常,8080和8008端口都开启
配置apache,步骤如下
修改 httped.conf
最后三排加入
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
启动apache
报错
如下:[Fri Jun 28 08:48:14 2002] 15335 (wa_main.c:81) Initializing APR
[Fri Jun 28 08:48:14 2002] 15335 (pr_info.c:66) INFO provider initialized
[Fri Jun 28 08:48:14 2002] 15335 (pr_warp.c:62) WARP provider initialized
[Fri Jun 28 08:48:14 2002] 15335 (wa_main.c:101) WebApp Library initialized
[Fri Jun 28 08:48:14 2002] 15335 (wa_config.c:167) Created connection "warpConnection" (Prov: "warp"
008")
Syntax error on line 994 of /usr/local/apache/conf/httpd.conf:
Invalid virtual host name
./apachectl start: httpd could not be started
[oracle@LinuxServer1 bin]$
|
Invalid virtual host name
|
是不是ip端口与tomcat相同?