cancel
Showing results for 
Search instead for 
Did you mean: 

Community Edition Share - anyone have it working?

tctim
Champ in-the-making
Champ in-the-making
I have posted several questions without any real solutions and have begun to wonder if anyone has the community edition of Share working or is all just POC stuff going directly to Tomcat and not through Apache?

My Share related questions…
http://forums.alfresco.com/en/viewtopic.php?f=47&t=23975
http://forums.alfresco.com/en/viewtopic.php?f=8&t=23836&p=77982#p77982

I have gotten pricing for the Enterprise edition and it's too much for our small company so I was hoping to be able to use the Community edition.
6 REPLIES 6

gronfelt
Champ in-the-making
Champ in-the-making
The Community Edition of Share works just fine, even behind an Apache proxy.

How have you set up Apache? There are several approaches to using Apache in front of Alfresco, in my experience the mod_jk connector works fine and is pretty straightforward to set up.

tctim
Champ in-the-making
Champ in-the-making
Thanks for the reply…

I have mod_jk working - that's the weird thing.

I have mydomain.com/alfresco working fine but mydomain.com/share doesn't work.  For the life of me I can't figure out why.

Also - localhost:8080/alfresco works and localhost:8080/share works….

All I can figure out is that somehow Apache isn't able to traverse the directory structure in /share like the app needs since Share works fine when you go directly to Tomcat.

Any suggestions would be greatly appreciated.

Happy New Year!

Tim

gronfelt
Champ in-the-making
Champ in-the-making
Could you post the relevant parts of your Apache configuration?

tctim
Champ in-the-making
Champ in-the-making
Here's my workers.properties


# ————————
# First JBoss server
# ————————
#worker.JBoss1.port=9007
#worker.JBoss1.host=127.0.0.1
#worker.JBoss1.type=ajp13
worker.list=ajp13
worker.ajp13.port=8013
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# Specify the size of the open connection cache.
#worker.JBoss1.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  —-> lbfactor must be > 0
#  —-> Low lbfactor means less work done by the worker.
#worker.JBoss1.lbfactor=100


# ————————
# Second JBoss server
# ————————
#worker.JBoss2.port=9008
#worker.JBoss2.host=localhost
#worker.JBoss2.type=ajp13

# Specify the size of the open connection cache.
#worker.JBoss2.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  —-> lbfactor must be > 0
#  —-> Low lbfactor means less work done by the worker.
#worker.JBoss2.lbfactor=100


# ————————
# Load Balancer worker
# ————————

#
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#  —-> If a worker dies, the load balancer will check its state
#        once in a while. Until then all work is redirected to peer
#        worker.
#worker.loadbalancer.type=lb
#worker.loadbalancer.balanced_workers=JBoss1, JBoss2

# ————————
# Blojsom worker
# ————————
#
# Worker created specifically for Blojsom.
worker.blojsomworker.port=1279
worker.blojsomworker.host=127.0.0.1
worker.blojsomworker.type=ajp13
worker.blojsomworker.lbfactor=100
#
# END workers.properties
#


My site config

<VirtualHost *:443>
   ServerName epiphany.usrbs.net:443
        ServerAdmin admin@usrbs.net
        DocumentRoot "/Library/WebServer/Documents"
        DirectoryIndex "index.jsp" "index.html" "index.php"
        CustomLog '|/usr/sbin/rotatelogs "/var/log/apache2/access_log" 604800 -300' "%h %l %u %t \"%r\" %>s %b"
        ErrorDocument 404 /error.html
        <IfModule mod_ssl.c>
                SSLEngine On
                SSLCipherSuite "ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM"
                SSLProtocol -ALL +SSLv3 +TLSv1
                SSLProxyProtocol -ALL +SSLv3 +TLSv1
                SSLCertificateFile "/etc/certificates/usrbs.net……"
                SSLCertificateKeyFile "/etc/certificates/usrbs.net……"
                SSLCertificateChainFile "/etc/certificates/usrbs.net……"
        </IfModule>
        <IfModule mod_dav.c>
                DAVLockDB "/var/run/davlocks/.davlock100"
                DAVMinTimeout 600
        </IfModule>
        <IfModule mod_mem_cache.c>
                CacheEnable mem /
                MCacheSize 4096
        </IfModule>
        <Directory "/Library/WebServer/Documents">
                Options All -Includes -ExecCGI -Indexes +MultiViews
                AllowOverride None
                <IfModule mod_dav.c>
                        DAV Off
                </IfModule>
        </Directory>
        <IfModule mod_proxy_balancer.c>
#               ProxyPass  balancer://balancer-group stickysession=JSESSIONID
#               ProxyPassReverse  balancer://balancer-group
                <Proxy "balancer://balancer-group">
                </Proxy>
        </IfModule>
        <IfModule mod_alias.c>
                Alias "/collaboration" "/usr/share/collaboration"
                Alias "/icons/" "/usr/share/httpd/icons/"
                Alias "/error/" "/usr/share/httpd/error/"
                Alias "/webMathematica" "/Library/Tomcat/webapps/webMathematica"
                Alias "/alfresco/" "/Library/Tomcat/webapps/alfresco/"
                Alias "/share/" "/Library/Tomcat/webapps/share/"
                Alias "/mobile/" "/Library/Tomcat/webapps/mobile/"
        </IfModule>
        Include /etc/apache2/httpd_users.conf
        Include /etc/apache2/httpd_groups.conf
        Include /etc/apache2/httpd_webcalendar.conf
#       Include /etc/apache2/httpd_pwdchange_required.conf
#       Include /etc/apache2/httpd_emailrules_required.conf
        Include /etc/apache2/httpd_teams_required.conf
        Include "/etc/apache2/httpd_squirrelmail.conf"
        LogLevel warn
        ProxyPass /webcal http://127.0.0.1:8008/webcal retry=5
        ProxyPass /calendars http://127.0.0.1:8008/calendars retry=5
        ProxyPass /principals http://127.0.0.1:8008/principals retry=5
        ProxyPass /timezones http://127.0.0.1:8008/timezones retry=5
#       ProxyPass /EMAILRULES http://127.0.0.1:8089/RPC2 retry=5
#       ProxyPass /emailrules-config http://127.0.0.1:8089/config retry=5
        JKMount /*.jsp ajp13
        ProxyPassReverse /webcal http://127.0.0.1:8008/webcal
        ProxyPassReverse /calendars http://127.0.0.1:8008/calendars
        ProxyPassReverse /principals http://127.0.0.1:8008/principals
        ProxyPassReverse /timezones http://127.0.0.1:8008/timezones       
#       ProxyPassReverse /emailrules-config http://127.0.0.1:8089/config
        ErrorLog '|/usr/sbin/rotatelogs "/var/log/apache2/error_log" 604800 -300'
</VirtualHost>

gronfelt
Champ in-the-making
Champ in-the-making
I've only had a quick look at your config, so I might be missing out on something, but here are a few quick comments.

First of all, why the aliases for /share /alfresco? I don't see why you want Apache to access the Tomcat directories directly, that's what you use mod_jk for. I'd comment out those lines, if they're not there for a specific reason I don't see directly.

Second, you're catching requests to .jsp files and redirecting them with mod_jk, but Share adresses don't contain any jsp-files, so they won't be forwarded. Instead you would need something looking like this:


JkMount /share/* ajp13
JkMount /alfresco/* ajp13

tctim
Champ in-the-making
Champ in-the-making
You are fantastic!!!!! It works perfectly!!!!

Thank you so much for taking time out to help me.  Happy New Year!

Tim