<div> </div><div> Hello:<br> yes, I'am sure, the proxy mode is defined, in my gentoo linux system, it located in /etc/apache2/httpd.conf:<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">
<pre>#
# Proxy Modules
#
# The following modules are only needed if you are running
# Apache as a Forward or Reverse Proxy.
#
# WARNING: Enabling these modules can be dangerous!
# READ THE DOCUMENTATION FIRST:
# http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
<IfDefine PROXY>
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
</IfDefine> <br> <br>the bellow: config file is just a part,not the whole file!<br><br>Now apache can run! :) my conpanion move the define outside of <IfDefine PROXY> node !<br><br> LoadModule proxy_module modules/mod_proxy.so<br> LoadModule proxy_connect_module modules/mod_proxy_connect.so<br> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so<br> LoadModule proxy_http_module modules/mod_proxy_http.so<br><br>But my domain name (www.lxbing.com) can't effect! mybe some problem in server.xml of tomcat?<br>Any adviser appriciate!<br>lxbing<br></pre><br></div><div> </div><div> </div><div id="spnSign"></div><div> </div><div> </div><div> </div><blockquote style="border-left: 2px solid rgb(160, 198, 229); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><hr color="#a0c6e5" size="1"><br>-----原始邮件-----<br>发件人:"" <zemanp@oksystem.cz><br>发送时间:2006-10-27 13:53:03<br>收件人:"" <opencms-dev@opencms.org><br>抄送:(无)<br>主题:RE: [opencms-dev] problem of "Tomcat and the Apache webser ver with mod_prox"<br><br><br>From: "" <zemanp@oksystem.cz><br>To: "" <opencms-dev@opencms.org><br>Date: Fri, 27 Oct 2006 13:53:03 +0800 (CST)<br>Subject: RE: [opencms-dev] problem of "Tomcat and the Apache webser ver with mod_prox"<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="MSHTML 6.00.2900.2963" name="GENERATOR">
</opencms-dev@opencms.org></zemanp@oksystem.cz><div dir="ltr" align="left"><span class="078365005-27102006"><font color="#0000ff" face="Arial" size="2">Hi,</font></span></div>
<div dir="ltr" align="left"><span class="078365005-27102006"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="078365005-27102006"><font color="#0000ff" face="Arial" size="2">is it complete apache configuration? Look at line 113 at
your alex.conf file :). So I think that the mod_proxy you are trying to use is
not loaded.</font></span></div>
<div dir="ltr" align="left"><span class="078365005-27102006"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="078365005-27102006"><font color="#0000ff" face="Arial" size="2">Petr</font></span></div><br>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <b>On Behalf Of
</b>lxbing113<br><b>Sent:</b> Friday, October 27, 2006 7:45 AM<br><b>To:</b>
opencms-dev@opencms.org<br><b>Subject:</b> [opencms-dev] problem of "Tomcat and
the Apache webser ver with mod_prox"<br><b>Importance:</b>
High<br></font><br></div>
<div></div>Hello list:<br> I config opencms multi-websit
following document "Integrating OpenCms, Tomcat and the Apache webserver with
mod_proxy", inopencms 6.2 documents. After I config httpd of apache, and restart
apache ,I get the error :<br><br><b><font color="#ff0066">* Apache2 has detected a
syntax error in your configuration files:<br>Syntax error on line 113 of
/etc/apache2/vhosts.d/alex.conf:<br>Invalid command 'ProxyPass', perhaps
mis-spelled or defined by a module not included in the server
configuration</font></b><br>
<div> </div>
<div> I don't know why! I config it following the document.and my config
for apache is bellow:<br><br>
<meta content="Kate, the KDE Advanced Text Editor" name="Generator"><pre><VirtualHost *:80>
ServerName www.lxbing.com
ServerAdmin webmaster@opencms
DocumentRoot "/var/lib/tomcat-5.5/webapps/ROOT/"
<Directory "/var/lib/tomcat-5.5/webapps/ROOT/">
Order allow,deny
Allow from all
</Directory>
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "/opencms/*" redirect
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/export/(.*) [NC]
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f
RewriteRule .* http://127.0.0.1:8081/cms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
ProxyPass /opencms/ !
RedirectPermanent /opencms/ http://www.lxbing.com/
ProxyPass /resources/ !
ProxyPass /export/ !
ProxyPass / http://127.0.0.1:8081/opencms/
ProxyPassReverse / http://127.0.0.1:8081/opencms/
</VirtualHost>
# http://www.squall.com
<VirtualHost *:80>
ServerName www.squall.com
ServerAdmin webmaster@new
DocumentRoot "/var/lib/tomcat-5.5/webapps/ROOT/"
<Directory "/var/lib/tomcat-5.5/webapps/ROOT/">
Order allow,deny
Allow from all
</Directory>
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "/opencms/*" redirect
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/export/(.*) [NC]
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f
RewriteRule .* http://127.0.0.1:8082/cms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
ProxyPass /opencms/ !
RedirectPermanent /opencms/ http://www.squall.com/
ProxyPass /resources/ !
ProxyPass /export/ !
ProxyPass / http://127.0.0.1:8082/opencms/
ProxyPassReverse / http://127.0.0.1:8082/opencms/
</VirtualHost></pre>please give me some idear how to do it !what problem I
make in the configuration.<br>Any adviser appreciate !<br></div>
<div> </div>
<div> </div>
<div id="spnSign"></div><br><!-- footer --><br><br><br><br><br>
<div style="border-bottom: 1px solid rgb(153, 153, 153);"></div><br><font style="font-size: 14px;" color="black">3G 时 代 来 临 了,坚 决 对 传 统 邮 箱 说 不 !</font>
<br><a style="font-size: 13px; color: blue; line-height: 160%;" href="http://www.126.com/" target="_blank">新 一 代 极 速 3G 邮 箱 闪 亮 登 场 ,280 兆 网 盘 免 费
送 ! 点 击 此 处 注 册 </a></blockquote><br><!-- footer --><br><br><br><br><br><div style="border-bottom:1px solid #999"></div><br>
<font color="black" style="font-size:14.8px">3G 时 代 来 临 了,坚 决 对 传 统 邮 箱 说 不 !</font>
<br>
<a href="http://www.126.com/" target="_blank" style="font-size:13px;line-height:160%;color:blue">新 一 代 极 速 3G 邮 箱 闪 亮 登 场 ,280 兆 网 盘 免 费 送 ! 点 击 此 处 注 册
</a>