Install Apache Proxy
The Apache Proxy is used to provide access for users to edu-sharing and let you control which parts of alfresco you want to be public accessible.
It's strongly recommended that you block any direct access to tomcat server ports and only allow access to the apache ports (80/443)
- Install apache via apt-get:
apt-get install apache2 - Install the ajp and proxy module to enable the proxy-passing to tomcat:
a2enmod enable proxy
a2enmod enable proxy_ajp
a2enmod enable proxy_http Edit your VirtualHost (located at /etc/apache2/sites-enabled)
ProxyVia On # Pass edu-sharing ProxyPass /edu-sharing ajp://localhost:8009/edu-sharing # Pass alfresco (optional) ProxyPass /alfresco ajp://localhost:8009/alfresco # Pass alfresco share (optional) ProxyPass /share ajp://localhost:8009/share
Restart Apache:
/etc/init.d/apache2 restart- After Apache started, you should be able to access edu-sharing via <your-domain>/edu-sharing
Troubleshooting
Apache2 is not starting after changes
Run apache2ctl -t to see possible configuration errors