Alias /mono "/usr/lib/xsp/test"
AddMonoApplications default "/mono:/usr/lib/xsp/test"
<Directory /usr/lib/xsp/test>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>
This one using <Location>:
Alias /demo "/usr/lib/xsp/test"
AddMonoApplications default "/demo:/usr/lib/xsp/test"
<Location /demo>
SetHandler mono
</Location>
If you prefer to .webapp configuration file(s) (see manual page of xsp), you can change MonoApplications in the above samples by:
replacing the path to the file with yours.
MonoApplicationsConfigFile default "/var/www/applications.webapp"
If you want to use several .webapp files, use this instead:
and all the .webapp files found in the directory /var/www/webapp will be loaded.
MonoApplicationsConfigDir default "/var/www/webapp"
Refer to monodoc documentation on configuring mod_mono for more examples.
mod_mono provides a simple web-based control panel for restarting the mod-mono-server, which is useful when assemblies need to be reloaded from disk after they have been changed. To activate the control panel, place the following in your httpd.conf:
<Location /mono>
SetHandler mono-ctrl
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
The control panel is then accessible at http://yourdomain.com/mono. Clicking the link to restart mod-mono-server will immediately restart it.
The Order/Deny/Allow access controls above restrict access to the control panel to the computer with IP address 127.0.0.1. Replace this (or add more Allow lines) with the IP address of your own computer so that you can access the control panel. You can also use Apache's htaccess features to password protect it, too.
It may modify MONO_PATH, PATH and MONO_SHARED_DIR when starting mod-mono-server.
The MOD_MONO_CCV variable may be used to select which component will do client certificate validity (CCV) checks. By default both Apache and Mono will verify the client certificates. This can be changed to either "apache" or "mono" to limit the validity check to either environment. This variable can be set using MonoSetEnv to allow different vhost to use separate validation techniques.
The MOD_MONO_LOCKING_MECHANISM variable may be used to choose the APR locking mechanism for the dashboard. The currently defined mechanism names are: DEFAULT, FCNT, FLOCK, SYSVSEM, PROC_PTHREAD, POSIXSEM. Note that not every mechanism may be available for your platform. In such case, mod_mono will fallback to using the DEFAULT value which lets the APR decide which locking mechanism to use. DEFAULT is also the default value for the option if the environment variable is not set or its value is unknown. This value MUST NOT be set using MonoSetEnv - it MUST be present in the Apache environment before the module is initialized and its configuration parsed.
httpd.conf
mod_mono was started by Daniel Ridruejo (daniel rawbyte com). Currently, Marek Habersack (mhabersack@novell.com) is the maintainer.
See http://mail.ximian.com/mailman/mono-list for details.
Visit http://mono-project.com/Mod_mono for details.
28 Jan 2009 | mod_mono 3.8 |