[opencms-dev] mod_proxy and other tomcat application

R. Jonyo richjo2000 at gmail.com
Fri Oct 16 14:54:49 CEST 2009


Hi

Am facing the same problem. I need to access my other Tomcat apps. For now
am accessing them via Tomcat's port e.g http://mysite.com:8081/myotherapp/
I need to access them like this: http://mysite.com/myotherapp/ 


Richard



Alessandro La Rocca wrote:
> 
> Hi,
> 
> I followed the instructions to setup OpenCMS, Tomcat and the Apache 
> webserver with mod_proxy. All work fine.
> 
> Now, users are not able to access other Tomcat webapps. The httpd 
> configuration is like the following:
> 
> <VirtualHost *:80>
>     <Directory "/opt/jakarta-tomcat-5.0.28/webapps/ROOT/">
>         Order allow,deny
>         Allow from all
>     </Directory>
>     ServerName webcms
>     ServerAdmin alessandro.larocca at gmail.com
>     DocumentRoot "/opt/jakarta-tomcat-5.0.28/webapps/ROOT/"
>     ErrorLog logs/webcms-error.log
> 
>     # Log only non-redirect requests in normal log file
>     SetEnvIf Request_URI "\/opencms\/*" redirect
>     CustomLog logs/webcms-redirect.log common env=redirect
>     CustomLog logs/webcms-access.log common env=!redirect
> 
>     ProxyPass            /opencms/        !
>     RedirectPermanent        /opencms/        http://webcms/
> 
>     ProxyPass            /resources/        !
>     ProxyPass            /export/        !
> 
>     ProxyPass            /            http://127.0.0.1:8080/opencms/
>     ProxyPassReverse        /            http://127.0.0.1:8080/opencms/
> 
>     ProxyPass            /yazd/        !
>     #ProxyPass            /yazd/            http://127.0.0.1:8080/yazd/
>     #ProxyPassReverse        /yazd/            http://127.0.0.1:8080/yazd/
> </VirtualHost>
> 
> 
> As you can see, yazd is the sample webapp I would reach. I made a lot of 
> test, even a symlink to the \webapps\yazd folder within \webapps\ROOT 
> without success. If I try to get "http:/webcms/yazd/" the server return 
> a 404 error code reporting that "The requested resource "/opencms/yazd" 
> was not found on the server"
> 
> Have you any hint?
> 
> Best Regards,
> Alessandro
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/mod_proxy-and-other-tomcat-application-tp3649874p25924989.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list