cancel
Showing results for 
Search instead for 
Did you mean: 

Tried to set share.war as the ROOT webapp

srosenfeld
Champ in-the-making
Champ in-the-making
I am currently running Alfresco 4.0.c Community on RHE 6.2x64

So I was looking on how to remove the /share from the URL of alfresco, and after reading some documentation ended up breaking my share webapp.  The last thing done that seems to have broken it, was to rename the share.war file to ROOT.war and restart Alfresco.  This did not work either, so I had renamed ROOT.war back to share.war and restarted Alfresco again.  Upon doing so I now get this page for /share

A problem has occurred.
This page could not be rendered:
slingshot-login
Please notify your system administrator.

and in the tomcat logs, I see issues with page.url.args.theme!theme being undefined in org/alfresco/include/alfresco-template.ftl and I know we use a custom theme as well. 

Does anyone have any ideas on how to fix this?  I can paste the logs if needed.

Thank you
4 REPLIES 4

srosenfeld
Champ in-the-making
Champ in-the-making
The reason I was doing this was to have our Apache Tomcat Connector url (curren't just share.domain.com) load the /share webapp as the root.  I have tried to change the ROOT.xml to load the share.war file but this was unsuccessful.  is there a way to have the Apache Tomcat Connector connect to /share but load back to the default share.domain.com?

Essentially I want to type in share.domain.com but have it actually load share.domain.com/share

Does anyone know how to do this?

afaust
Legendary Innovator
Legendary Innovator
Hello,

this is the typical use case for using an Apache HTTPd as a proxy server. Your Tomcat setup will be standard while the Apache HTTPd transparently exposes the application under a specific URL / domain. There are plenty of examples on the net on how to setup Alfresco + Apache HTTPd proxy, as well as using Apache HTTPd proxy to mask the actual URLs.

Regards
Axel

srosenfeld
Champ in-the-making
Champ in-the-making
I have tried searching for what I want to accomplish but I cannot find it.  I have successfully setup Apache with the connect which works great and removes the :8080/:8443 from the URL I type. I am looking for a way also to set up the url to remove the /share when typing to.  I essentially want https://share.domain.com to actually load https://share.domain.com/share and have this be a persistent change.  IE https://share.domain.com/page/site/mysite will load https://share.domain.com/share/page/mysite instead of just forwarding/rewriting  https://share.domain.com to https://share.domain.com/share

Does that make more sense?

afaust
Legendary Innovator
Legendary Innovator
Hello,

as far as I see it, the following directive (combined with the ProxyPassReverse directive and related configuration) should achieve what you want to.


ProxyPass / http://tomcat.domain.com/share/

When the Apache HTTPd is accesible as host share.domain.com, the "/" proxy mount transparently redirects to Share on the tomcat host. In such a scenario, you usually terminate HTTPS on the Apache HTTPd server and connect either via HTTP or AJP to Tomcat.

Regards
Axel