Hi all,I installed Alfresco-5.0.a on Centos 6.4 64 bit (Tomcat web service), everything work fine, my users can access to alfresco by typing http://192.168.0.8:8080/alfresco or http://192.168.0.8:8080/share192.168.0.8 is my internal ip address .Now I want to do redirect by Apache mod_jk so :http://alfresco.mydomain.com will be redirected to http://192.168.0.8:8080/sharehttp://alfresco.mydomain.com/alfresco will be redirected to http://192.168.0.8:8080/alfrescoI followed this article: https://wiki.alfresco.com/wiki/Deploying_To_ServerThis is my confifguration:
cat /opt/alfresco-5.0.a/tomcat/conf/Catalina/localhost/root.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="" docBase="share.war">
</Context>
cat /etc/httpd/conf.d/mod_jk.conf
LoadModule jk_module modules/mod_jk.so
<IfModule jk_module>
# —- Where to find workers.properties
JkWorkersFile conf.d/workers.properties
# —- Where to put jk logs
JkLogFile logs/mod_jk.log
# —- Set the jk log level [debug/error/info]
JkLogLevel info
# —- Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %R %T"
# —- Send everything for context /examples to worker named worker1 (ajp13)
JkMountFileReload "0"
</IfModule>
cat /etc/httpd/conf.d/workers.properties
worker.list=tomcat
worker.tomcat.port=8009
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
worker.tomcat.lbfactor=1
cat /etc/httpd/conf.d/alfresco.conf
<VirtualHost *:80>
ServerName alfresco.mydomain.com
ProxyRequests Off
JkMount /* tomcat
</VirtualHost>
My server redirect request from 80 to 8080 successfully , but it don't append "/share" to URL when my users type http://alfresco.mydomain.com or http://192.168.0.8:8080 on web browser, they must use absolute pathThis is log when startup alfresco:
INFO: Deploying configuration descriptor /opt/alfresco-5.0.a/tomcat/conf/Catalina/localhost/root.xml
Oct 03, 2014 2:57:33 PM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase /opt/alfresco-5.0.a/tomcat/webapps/share.war inside the host appBase has been specified, and will be ignored
Oct 03, 2014 2:57:33 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /opt/alfresco-5.0.a/tomcat/webapps/root does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5089)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5269)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
…
Oct 03, 2014 2:57:33 PM org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Error deploying configuration descriptor /opt/alfresco-5.0.a/tomcat/conf/Catalina/localhost/root.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/root]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Hope you can help, please let me know if you need more information.Thank in advance.