Your vhost config could look something like this:<br>
<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">NameVirtualHost *:80<br>
  <br>
<VirtualHost *:80><br>
        ServerName <a href="http://www.company.de">www.company.de</a><br>
        DocumentRoot e:/Tomcat/tomcat4.1.24/webapps/opencms/<br>
  <br>
       
ProxyPass              
/resources/     ! # Served by apache<br>
       
ProxyPass              
/export/        ! # Served by apache<br>
        <br>
       
ProxyPass              
/opencms/          
           
<a href="http://localhost:8080/opencms/">http://localhost:8080/opencms/</a> #Your Tomcat Server<br>
       
ProxyPassReverse       
/opencms/           
           
        <a href="http://localhost:8080/opencms/">http://localhost:8080/opencms/</a><br>
  <br>
       
RedirectPermanent      
/          
       
<a href="http://www.company.de/opencms/opencms/de/">http://www.company.de/opencms/opencms/de/</a><br>
  <br>
</VirtualHost><br>
<VirtualHost *:80><br>
        ServerName <a href="http://www.company.com">www.company.com</a><br>
        DocumentRoot e:/Tomcat/tomcat4.1.24/webapps/opencms/<br>
  <br>
       
ProxyPass              
/resources/     ! # Served by apache<br>
       
ProxyPass              
/export/        ! # Served by apache<br>
        <br>
       
ProxyPass              
/opencms/          
           
<a href="http://localhost:8080/opencms/">http://localhost:8080/opencms/</a> #Your Tomcat Server<br>
       
ProxyPassReverse       
/opencms/           
           
        <a href="http://localhost:8080/opencms/">http://localhost:8080/opencms/</a><br>
  <br>
       
RedirectPermanent      
/          
       
<a href="http://www.company.de/opencms/opencms/en/">http://www.company.de/opencms/opencms/en/</a><br>
  <br>
</VirtualHost><br>
</blockquote>
<br><div><span class="gmail_quote">2005/10/27, Christoph Kukulies <<a href="mailto:kuku@physik.rwth-aachen.de">kuku@physik.rwth-aachen.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I have a www-server that resolves to <a href="http://www.company.de">www.company.de</a> and an alias (CNAME)<br>that is <a href="http://www.company.com">www.company.com</a>.<br><br>At present a javascript redirection in /index.html
<br>acts like this<br><br><html><br><head><br><script language="JavaScript"><br><!--<br>function gotoPage()<br>{<br>    var dns1 = <a href="http://company.com">company.com</a>"<br>    var dns2 = "
<a href="http://company.de">company.de</a>"<br>    var urlloc = location.href<br>    var loc = urlloc.toLowerCase()<br><br>    if (loc.indexOf(dns1) != -1)<br>        location.href="<a href="http://www.company.de/opencms/opencms/en/index.htm">
http://www.company.de/opencms/opencms/en/index.htm</a>"<br><br>    if (loc.indexOf(dns2) != -1)<br>        location.href="<a href="http://www.company.de/opencms/opencms/de/index.htm">http://www.company.de/opencms/opencms/de/index.htm
</a>"<br><br>}<br>//--><br><br></head><br><br><BODY onLoad="gotoPage()"><br></body><br></html><br><br>This doesn't seem very robot friendly in the sense that my site is traversed<br>
nicely.<br><br>I want to replace this by some Virtualhost mechanism in Apache.<br>But I can't figure out how.<br>I tried with a ReWriteRule ^/.* /opencms/opencms/*<br><br>but this ends up in /opencms/opencms not found or something.
<br>My DocumentRoot is e:/APache/Apache2/htdocs<br><br>and<br><br>opencms is in<br><br>e:/Tomcat/tomcat4.1.24/webapps/opencms/export ...<br><br><br>I want to keep the DocumentRoot the same since the existing<br>opencms (4.x
) installation relies on it.<br><br>I'd greatly appreciate any advice.<br><br><br>--<br>Chris Christoph P. U. Kukulies kukulies (at) <a href="http://rwth-aachen.de">rwth-aachen.de</a><br><br><br><br>_______________________________________________
<br>This mail is send to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev
</a><br></blockquote></div><br>