[Mono-list] Change apache virtualhost to 2.0 profile
Mike Morano
mmorano at mikeandwan.us
Sun Aug 31 15:22:42 EDT 2008
Well, not sure what your config looks like, but below is an example what mine looks like, which is working for me:
<VirtualHost *:80>
ServerName www.example.com
ServerAlias www.example.com
ServerAdmin me at example.com
DocumentRoot "/usr/share/webapps/example.com"
MonoAutoApplication disabled
MonoDocumentRootDir www.example.com "/usr/share/webapps/example.com"
MonoApplications www.example.com "/:/usr/share/webapps/example.com"
MonoServerPath www.example.com "/usr/local/bin/mod-mono-server2"
MonoUnixSocket www.example.com "/tmp/mod_mono_server_example"
Include /etc/apache2/mod_mono.conf
# http://www.mono-project.com/ThreadPool_DeadLocks
MonoSetEnv MONO_THREADS_PER_CPU=2000
#MonoRunXSP maw false
#MonoDebug maw true
SetOutputFilter DEFLATE
ErrorLog /var/log/apache2/example_error.log
TransferLog /var/log/apache2/example_access.log
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} !^(GET|POST|HEAD)$
RewriteRule .* - [F]
</IfModule>
<Location />
MonoSetServerAlias www.example.com
AddHandler mono .aspx .ascx .asax .ashx .config .Config .cs .asmx .axd .soap .rem .config .dll
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Location>
<IfDefine INFO>
<Location /mono>
SetHandler mono-ctrl
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
</IfDefine>
</VirtualHost>
This has grown over time, and was based mostly on the man page for xsp / mod_mono, and the mono-project site.
Improvements are most welcomed =D.
-Mike
Jorge Bastos wrote:
> Yes but no luck.
> I've added:
> MonoServerPath default /usr/bin/mod-mono-server2
> But is now downloads the file instead of execute it.
> Any ideia of what can be missing?
>
>
>
>> -----Original Message-----
>> From: Mike Morano [mailto:mmorano at mikeandwan.us]
>> Sent: domingo, 31 de Agosto de 2008 19:15
>> To: Jorge Bastos
>> Cc: mono-list at lists.ximian.com
>> Subject: Re: [Mono-list] Change apache virtualhost to 2.0 profile
>>
>> Have you tried:
>>
>> http://mono-project.com/Mod_mono#ASP.NET_2_applications_do_not_work
>>
>>
>> -m
>>
>>
>> Jorge Bastos wrote:
>>> Hi,
>>>
>>> By default apache uses 1.1 profile, i want to change a virtualhost to
>>> 2.0, how?
>>>
>>>
>>>
>>> Jorge
>>>
>>>
>>> ---------------------------------------------------------------------
>> ---
>>> _______________________________________________
>>> Mono-list maillist - Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list