<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hey mate, <DIV><BR class="khtml-block-placeholder"></DIV><DIV>Make sure that you have not just mod_proxy but also mod_rewrite </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cheers,</DIV><DIV>____<DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Gaith Bader</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Computer Systems Officer</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">School of Computer Science and Engineering</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The University of New South Wales</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR><DIV><DIV>On 27/10/2006, at 3:44 PM, lxbing113 wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">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> <PRE><VIRTUALHOST *:80="">        ServerName <A href="http://www.lxbing.com">www.lxbing.com</A>
        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       .*  <A href="http://127.0.0.1:8081/cms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}">http://127.0.0.1:8081/cms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}</A> [P]


        ProxyPass         /opencms/             !
        RedirectPermanent /opencms/                <A href="http://www.lxbing.com">http://www.lxbing.com</A>/
        ProxyPass         /resources/           !
        ProxyPass         /export/              !
        ProxyPass         /                     <A href="http://127.0.0.1:8081/opencms/">http://127.0.0.1:8081/opencms/</A>
        ProxyPassReverse  /                     <A href="http://127.0.0.1:8081/opencms/">http://127.0.0.1:8081/opencms/</A>
</VIRTUALHOST>


# <A href="http://www.squall.com">http://www.squall.com</A>


<VIRTUALHOST *:80="">
        ServerName <A href="http://www.squall.com">www.squall.com</A>
        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       .*  <A href="http://127.0.0.1:8082/cms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}">http://127.0.0.1:8082/cms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}</A> [P]

        ProxyPass         /opencms/                 !
        RedirectPermanent /opencms/                 <A href="http://www.squall.com">http://www.squall.com</A>/
        ProxyPass         /resources/           !   
        ProxyPass         /export/              !   
        ProxyPass         /                     <A href="http://127.0.0.1:8082/opencms/">http://127.0.0.1:8082/opencms/</A>
        ProxyPassReverse  /                     <A href="http://127.0.0.1:8082/opencms/">http://127.0.0.1:8082/opencms/</A>
</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><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><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This mail is sent to you from the opencms-dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">To change your list options, or to unsubscribe from the list, please visit</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>