HowTo:simias mod proxy

From iFolder

This HowTo shows you how to run simias behind mod_proxy. Then you can run simias by calling the script which is created by simias-server-setup and not through mod_mono.

This is also a workaround for the "(16*n+1)*16k-files"-bug 
(aka 16k-files bug). Link to Bugzilla (https://bugzilla.novell.com/show_bug.cgi?id=265132).

The steps were done on openSUSE 10.2 - on other distributions the locations of the files may vary.

I assume, you configured the ifolder-server to run behind apache using the "simias-server-setup" script.

First shut down your apache server. Then edit the script which was generated during simias-server-setup (here it is called iFolder_opensuse - which is the name i gave my ifolder-server). Change the Port from 80 to e.g. 82 .

Then edit /etc/sysconfig/apache2 and add "proxy" and "proxy_http" to the APACHE_MODULES.

Next step is to change the file /etc/apache2/conf.d/simias.conf to use the proxy of apache instead of mod_mono. Just comment out the original configuration and append the lines. The file looks then:

# /etc/apache2/conf.d/simias.conf
#Include /etc/apache2/mod_mono.conf

#Alias /simias10 "/home/store//simias-server-6810M//lib/simias/web"
#AddMonoApplications simias10 "/simias10:/home/store//simias-server-6810M//lib/simias/web"
#MonoSetEnv simias10 "SimiasRunAsServer=true;SimiasDataDir=/ifs/simias"
#<Location /simias10 >
#       MonoSetServerAlias simias10
#       Order allow,deny
#       Allow from all
#       SetHandler mono
#</Location>

ProxyRequests Off

<Proxy /simias10>
   Order deny,allow
   Allow from all
</Proxy>

ProxyPass /simias10 http://127.0.0.1:82/simias10
ProxyPassReverse /simias10 http://127.0.0.1:82/simias10



When done, start the simias-server with

<scriptname> --start   (in my case iFolder_opensuse --start )

and restart also the apache webserver.