This is the last few entries in my httpd access log which seems to confirm what I thought about the ROOT.war not unpacking the sites directory structure. Anyone have any ideas? I'd rather not have to make 30 lines in my httpd.conf for each site that I need to rewrite. This mod_proxy tutorial from alkacon is the way I'm trying to do this.<br>
<br>######################################################################<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:13:10:07 -0400] "GET /index.jsp HTTP/1.1" 404 1006<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:13:10:07 -0400] "GET /favicon.ico HTTP/1.1" 404 1012<br>
xxx.xxx.xxx.xxx - - [02/Jun/2008:13:17:06 -0400] "GET /index.jsp HTTP/1.1" 404 1006<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:13:17:12 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:13:17:28 -0400] "GET /ROOT/index.jsp HTTP/1.1" 404 1021<br>
xxx.xxx.xxx.xxx - - [02/Jun/2008:13:20:02 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:13:20:23 -0400] "GET /ROOT/index.jsp HTTP/1.1" 404 1021<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:13:46:48 -0400] "GET /sites/default HTTP/1.1" 404 1018<br>
xxx.xxx.xxx.xxx - - [02/Jun/2008:13:49:08 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:14:03:56 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:14:44:28 -0400] "GET /ROOT/sites/default HTTP/1.1" 404 1033<br>
xxx.xxx.xxx.xxx - - [02/Jun/2008:14:44:36 -0400] "GET /sites/default HTTP/1.1" 404 1018<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:14:44:43 -0400] "GET /sites/default HTTP/1.1" 404 1018<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:15:22:44 -0400] "GET / HTTP/1.1" 404 979<br>
xxx.xxx.xxx.xxx - - [02/Jun/2008:15:22:51 -0400] "GET /sites/default HTTP/1.1" 404 1018<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:15:23:03 -0400] "GET /ROOT/sites/default HTTP/1.1" 404 1033<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:15:23:09 -0400] "GET /ROOT/sites/default HTTP/1.1" 404 1033<br>
xxx.xxx.xxx.xxx - - [02/Jun/2008:15:36:49 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [02/Jun/2008:15:39:19 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [03/Jun/2008:10:51:34 -0400] "GET / HTTP/1.1" 404 979<br>
xxx.xxx.xxx.xxx - - [03/Jun/2008:10:59:25 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [03/Jun/2008:10:59:28 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [03/Jun/2008:10:59:56 -0400] "GET / HTTP/1.1" 404 979<br>
xxx.xxx.xxx.xxx - - [03/Jun/2008:11:00:59 -0400] "GET / HTTP/1.1" 404 979<br>xxx.xxx.xxx.xxx - - [03/Jun/2008:11:02:10 -0400] "GET / HTTP/1.1" 404 979<br>#############################################################<br>
<br>-brad<br><br><br><br><br><div class="gmail_quote">2008/6/2 Brad Clemmons Jr <<a href="mailto:brad.clemmons@gmail.com">brad.clemmons@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well, here's an interesting tidbit. When I did the original setup (before the mod_proxy stuff and using opencms.war as opposed to ROOT.war) it created the sites/default directories under jsp/online and offline like it's supposed to:<br>
drwxr-xr-x tomcat/tomcat 0 2008-05-30 12:28:09 usr/local/tomcat/webapps/opencms/WEB-INF/jsp/online/sites/default/<br><br>But when I wiped it, started over and used the ROOT.war as part of the instructions for "Using mod_proxy" it didn't create this directory structure. The only thing under tomcat_home/webapps/ROOT/WEB_INF/jsp/online is a handler directory. It never created the "sites" directory structure. Could something I could have missed running the web browser based setup cause this failure?<br>
<font color="#888888">
<br>-brad</font><div><div></div><div class="Wj3C7c"><br><br><br><br><br><div class="gmail_quote">On Mon, Jun 2, 2008 at 3:18 PM, Shi Yusen <<a href="mailto:shiys@langhua.cn" target="_blank">shiys@langhua.cn</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you use Apache 2.2.x, you can try the new ajp in mod_proxy.<br>
<a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy.html" target="_blank">http://httpd.apache.org/docs/2.2/mod/mod_proxy.html</a><br>
<br>
Here is a sample config of <a href="http://www.langhua.cn" target="_blank">www.langhua.cn</a>, the logic behind is quite<br>
simple:<br>
If a uri should be proxied, then proxy it. If not, use apache.<br>
If a uri should be prefixed with /opencms/opencms/, then add it.<br>
If a uri should be handled by OpenCms 404 handler, then use it.<br>
...<br>
<br>
NameVirtualHost *:80<br>
<br>
<VirtualHost *:80><br>
ServerAdmin <a href="mailto:shijh@langhua.cn" target="_blank">shijh@langhua.cn</a><br>
DocumentRoot /usr/share/tomcat5/webapps/opencms<br>
ServerName <a href="http://www.langhua.cn" target="_blank">www.langhua.cn</a><br>
<br>
RewriteEngine on<br>
<br>
# The URIs don't need to proxy<br>
RewriteCond %{REQUEST_URI} !^/opencms/resources/.*$<br>
RewriteCond %{REQUEST_URI} !^/export/.*$<br>
RewriteCond %{REQUEST_URI} !^/forum/.*$<br>
RewriteRule !^/opencms/opencms/.*$ /opencms/opencms<br>
%{REQUEST_URI} [PT]<br>
<br>
# Keep OpenCms handle404 function work in the integration<br>
RewriteCond %{REQUEST_URI} ^/export/.*$<br>
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f<br>
RewriteCond<br>
"%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f<br>
RewriteRule .* /opencms/opencms/handle404?exporturi=<br>
%{REQUEST_URI}&%{QUERY_STRING} [R]<br>
<br>
# If the request starts with /${WEBAPP_NAME}/resources, delete<br>
the /${WEBAPP_NAME} prefix<br>
RewriteCond %{REQUEST_URI} ^/opencms/resources/.*$<br>
RewriteRule ^/opencms/(.*)$ /$1 [PT]<br>
<br>
ProxyRequests Off<br>
ProxyPreserveHost On<br>
ProxyPass /opencms/opencms balancer://cluster/<br>
stickysession=jsessionid<br>
<Proxy balancer://cluster/><br>
BalancerMember ajp://<a href="http://127.0.0.1:8009/opencms/opencms" target="_blank">127.0.0.1:8009/opencms/opencms</a><br>
</Proxy><br>
<br>
# Multiple proxies<br>
ProxyPass /forum balancer://forumcluster/<br>
stickysession=jsessionid<br>
<Proxy balancer://forumcluster/><br>
BalancerMember ajp://<a href="http://127.0.0.1:8009/forum" target="_blank">127.0.0.1:8009/forum</a><br>
</Proxy><br>
<br>
</VirtualHost><br>
<br>
You can also add Location and other configs in the VirtualHost.<br>
<br>
Tomcat server.xml config:<br>
<Connector port="8009" emptySessionPath="true" URIEncoding="UTF-8"<br>
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /><br>
<br>
OpenCms opencms-importexport.xml config:<br>
<rfs-prefix>/export</rfs-prefix><br>
<vfs-prefix></vfs-prefix><br>
<br>
Regards,<br>
<br>
Shi Yusen/Beijing Langhua Ltd.<br>
<br>
<br>
$B:_(B 2008-06-02$B0lE*(B 13:43 -0400$B!$(BBrad Clemmons Jr$B<LF;!'(B<br>
<div><div></div><div>> Hi all,<br>
> I'm having a few problems on a quasi-new install. I already have one<br>
> system running Opencms 5 and I had the current system running<br>
> opencms7.0.4 basically in standalone mode. The problems started when<br>
> I tried to setup for mod_proxy.<br>
><br>
> I tried setting up via mod_proxy via the instructions for using<br>
> mod_proxy in the 7.0.4 documentation module. I already had a working<br>
> Opencms install so I wasn't real happy about the instructions provided<br>
> under "using mod_proxy" regarding removing /ROOT and making sure there<br>
> were no opencms installs already under webapps. But I digress.<br>
><br>
> This is what my tomcat_home/webapps looks like after removing the<br>
> original /ROOT and /opencms directories, renaming the original<br>
> opencms.war to ROOT.war and dumping the ROOT.war in there and letting<br>
> tomcat extract it.<br>
> drwxr-xr-x 10 tomcat tomcat 4096 Jun 2 11:31 .<br>
> drwxr-xr-x 11 tomcat tomcat 4096 Jan 28 13:41 ..<br>
> drwxr-xr-x 5 tomcat tomcat 4096 Jan 28 13:38 balancer<br>
> drwxr-xr-x 21 tomcat tomcat 4096 Jan 28 13:38 jsp-examples<br>
> drwxr-xr-x 3 tomcat tomcat 4096 Jun 2 11:31 opencms<br>
> -rw-r--r-- 1 tomcat tomcat 0 Jun 2 11:31 opencms_init.log<br>
> drwxr-xr-x 7 tomcat tomcat 4096 Jun 2 12:20 ROOT<br>
> -rw-r--r-- 1 root root 46442274 Mar 3 16:23 ROOT.war<br>
> drwxr-xr-x 4 tomcat tomcat 4096 Jan 28 13:38 servlets-examples<br>
> drwxr-xr-x 12 tomcat tomcat 4096 Jan 28 13:39 tomcat-docs<br>
> drwxr-xr-x 3 tomcat tomcat 4096 Jan 28 13:38 webdav<br>
><br>
><br>
> I followed the instructions for "Using mod_proxy" for Opencms 7.0.4<br>
><br>
> This is the error after setup successfully completes and it tries to<br>
> load the default page:<br>
> # HTTP Status 404 - /opencms/index.jsp<br>
> # type Status report<br>
> # message /opencms/index.jsp<br>
> # description The requested resource (/opencms/index.jsp) is not available.<br>
> # Apache Tomcat/5.5.26<br>
><br>
> Restarting tomcat had no affect.<br>
><br>
> I continued on through Step 4(Using mod_proxy) anyway and when<br>
> attempting to access the site at <a href="http://server.mydomain.com/" target="_blank">http://server.mydomain.com/</a> I get<br>
> this error:<br>
> # HTTP Status 404 - /opencms/<br>
> # type Status report<br>
> # message /opencms/<br>
> # description The requested resource (/opencms/) is not available.<br>
> # Apache Tomcat/5.5.26<br>
><br>
> If I try to manually type in the index page which I would figure would<br>
> be <a href="http://servername.mydomain.com/ROOT/index.jsp" target="_blank">servername.mydomain.com/ROOT/index.jsp</a> I get a similar error<br>
> basically not finding the page.<br>
><br>
> What am I missing here? I made backups of my working install before<br>
> mucking with this mod_proxy stuff so worst comes to worst I can say to<br>
> **** with it and roll back. I'd like to get this working though for a<br>
> number of reasons.<br>
><br>
> What the server is running on:<br>
> CentOS 5<br>
> Apache2.2<br>
> Tomcat5.5<br>
> Java SDK 6update6<br>
> Opencms7.0.4<br>
><br>
><br>
> Thanks,<br>
><br>
> -Brad<br>
><br>
><br>
><br>
><br>
<br>
<br>
</div></div>_______________________________________________<br>
This mail is sent 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://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></blockquote></div><br><br clear="all"><br></div></div></blockquote></div><br>