<pre>
<VirtualHost 127.0.0.1:8080>
DocumentRoot "/home/www/example"
ServerName example.org
ServerAlias www.example.org
<Location />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
Require all granted
DirectoryIndex index.html index.htm index.php
</Location>
# ...
</VirtualHost>
</pre>
<ul>
<li><a href="http://httpd.apache.org/docs/current/mod/core.html#virtualhost" target="_blank" rel="nofollow noreferrer noopener"><VirtualHost></a></li>
<li><a href="http://httpd.apache.org/docs/current/mod/core.html#directory" target="_blank" rel="nofollow noreferrer noopener"><Directory></a></li>
<li><a href="http://httpd.apache.org/docs/current/mod/core.html#location" target="_blank" rel="nofollow noreferrer noopener"><Location></a></li>
<li><a href="http://httpd.apache.org/docs/current/mod/core.html#files" target="_blank" rel="nofollow noreferrer noopener"><Files></a></li>
<li><a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html" target="_blank" rel="nofollow noreferrer noopener">mod_rewrite</a></li>
<li><a href="http://httpd.apache.org/docs/current/mod/mod_auth_basic.html" target="_blank" rel="nofollow noreferrer noopener">mod_auth_basic</a></li>
<li><a href="http://httpd.apache.org/docs/current/mod/" target="_blank" rel="nofollow noreferrer noopener">All modules</a></li>
<li><a href="http://httpd.apache.org/docs/current/" target="_blank" rel="nofollow noreferrer noopener">Documentation</a></li>
</ul>
<h3>Mono</h3>
<table class="table">
<thead>
<tr>
<th>Directive</th>
<th>Context</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>MonoApplications</td>
<td>VirtualHost</td>
<td>
Adds applications from a comma separated list of virtual and physical directory pairs.<br />
For example: <code>MonoApplications example.org "/:/home/example/www"</code>.
</td>
</tr>
<tr>
<td>MonoServerPath</td>
<td>VirtualHost</td>
<td>
Path to mono server.<br />
For example: <code>MonoServerPath example.org "/usr/bin/mod-mono-server4"</code>
</td>
</tr>
<tr>
<td>MonoSetServerAlias</td>
<td>Directory, Location</td>
<td>
Tells <strong>mod_mono</strong> which instance of mod-mono-server will be used to process the requests for this <code>Location</code> or <code>Directory</code>.<br />
For example:<br />
<pre>MonoApplications testing "/test:/home/example/test"
<Location /test>
MonoSetServerAlias testing
</Location>
MonoApplications personal "/personal:/home/example/personal"
<Location /personal>
MonoSetServerAlias personal
</Location></pre>
</td>
</tr>
<tr>
<td>MonoSetEnv</td>
<td>VirtualHost</td>
<td>
Allows specify the mono server settings.<br />
For example: <code>MonoSetEnv example.org MONO_IOMAP=all</code>.
</td>
</tr>
</tbody>
</table>
<h3>mono-ctrl</h3>
<p>
<strong>mod_mono</strong> 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 code:
</p>
<pre>
<Location /mono>
SetHandler mono-ctrl
AllowOverride All
Order Allow,Deny
Allow from all
Require all granted
</Location>
</pre>
|