Created
January 25, 2013 06:54
-
-
Save drawcode/4632373 to your computer and use it in GitHub Desktop.
mono config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerName drawcode.com | |
| ServerAlias drawcode.com | |
| ServerAlias www.drawcode.com | |
| ServerAdmin web-admin@drawcode.com | |
| DocumentRoot /srv/www/drawcode.com | |
| # MonoServerPath can be changed to specify which version of ASP.NET is hosted | |
| # mod-mono-server1 = ASP.NET 1.1 / mod-mono-server2 = ASP.NET 2.0 | |
| # For SUSE Linux Enterprise Mono Extension, uncomment the line below: | |
| # MonoServerPath drawcode.com "/opt/novell/mono/bin/mod-mono-server2" | |
| # For Mono on openSUSE, uncomment the line below instead: | |
| MonoServerPath drawcode.com "/usr/bin/mod-mono-server2" | |
| # To obtain line numbers in stack traces you need to do two things: | |
| # 1) Enable Debug code generation in your page by using the Debug="true" | |
| # page directive, or by setting <compilation debug="true" /> in the | |
| # application's Web.config | |
| # 2) Uncomment the MonoDebug true directive below to enable mod_mono debugging | |
| MonoDebug drawcode.com true | |
| # The MONO_IOMAP environment variable can be configured to provide platform abstraction | |
| # for file access in Linux. Valid values for MONO_IOMAP are: | |
| # case | |
| # drive | |
| # all | |
| # Uncomment the line below to alter file access behavior for the configured application | |
| MonoSetEnv drawcode.com MONO_IOMAP=all | |
| # | |
| # Additional environtment variables can be set for this server instance using | |
| # the MonoSetEnv directive. MonoSetEnv takes a string of 'name=value' pairs | |
| # separated by semicolons. For instance, to enable platform abstraction *and* | |
| # use Mono's old regular expression interpreter (which is slower, but has a | |
| # shorter setup time), uncomment the line below instead: | |
| # MonoSetEnv drawcode.com MONO_IOMAP=all;MONO_OLD_RX=1 | |
| MonoApplications drawcode.com "/:/srv/www/drawcode.com" | |
| <Location "/"> | |
| Allow from all | |
| Order allow,deny | |
| MonoSetServerAlias drawcode.com | |
| SetHandler mono | |
| SetOutputFilter DEFLATE | |
| SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary | |
| </Location> | |
| <IfModule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript | |
| </IfModule> | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment