This howto is for a Debian Linux Distribution
Install and Configure Apache
- create 2 users: using the tool adduser [addgroup] (They are friendlier front ends to the low level tools like useradd)
- install apache with apt-get install (apache2-mpm-worker)
- Activate mod_proxy and mod_rewrite:
a2enmod proxy a2enmod rewrite
- Activate proxy_http.load
ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/proxy_http.load apache2ctl configtest apache2ctl graceful
- Afterwards create vhost files in /etc/apache2/sites-enabled/, e.g. panda.getunik.net
<VirtualHost _default_:80>
DocumentRoot /var/www2/
ServerName panda.getunik.net
ServerAlias panda.getunik.*
ServerAdmin dev-core@trialox.org
ErrorLog /var/log/apache2/panda-error.log
CustomLog /var/log/apache2/panda-access.log combined
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Off
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 1
# Reverse Proxy for panda.getunik.net
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
Upload clerezza instance to the home of each user and start the platform with the port set in ProxyPass. Specify also how has permission to use the proxy in /etc/apache2/mods-enabled/proxy.conf
The default configuration of vhost is defined as follows:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Labels
(None)