Dashboard > Community Wiki > ... > Deployment > Using Magnolia with Apache 2.0
Using Magnolia with Apache 2.0 Log In View a printable version of the current page.

Added by GrĂ©gory Joseph , last edited by Boris Kraft on Jun 22, 2008  (view change)
Labels: 

This seems redundant with Magnolia and Apache 2. If someone wants to volunteer and merge them, that'd be much appreciated.

If you are using Tomcat, you can use the mod_jk interface. However, with Apache 2, the mod_proxy plugin provides a more generic interface, suitable for Tomcat as well as any other application server. Use the following code snippet within your Apache2 httpd.conf file to redirect all requests ending with 'public' to your server.

<VirtualHost xxx.xxx.xxx.xxx:80>
  ServerName www.yourdomain.com
  DocumentRoot /home/yourdomain/public_html

  ProxyPass /public http://www.yourdomain.com:8081/magnoliaPublic
  ProxyPassReverse /public http://www.yourdomain.com:8081/magnoliaPublic
</VirtualHost>

Basically, this should be enough, but if you are making this on a Linux OS and SELinux is running you may experience permission problems during the redirect. In this case you'll find the following messages in the error.log of the Apache:

Permission Denied: Proxy: HTTP: Attempt to connect to http://192.168.26.128:81 failed

In this case, try to enabled script access in SELinux (Described for fedoracore):

Desktop -> System Setting -> Security level -> SElinux -> HTTPD Service --> 
Check "Allow HTTPD scripts to connect to the network"

In its previous incarnation on JspWiki, this page was last edited on Feb 9, 2007 11:00:56 AM by Magnolia
Other known authors include :

  • 218.242.188.34
  • 218.242.188.34
  • 212.155.238.1
  • 24.176.214.92
Powered by a free Atlassian Confluence Open Source Project License granted to Magnolia International. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators