|
-
May 27th, 2008, 01:15 PM
#1
[RESOLVED] mod_mono with apache
Hello there,
I am currently trying to use mono on my linux machine....
....before anyone says anything, I know that mono doesn't have a very good reputation around here, I have already spoken at length with wossname about the good and bad points about it, but at the end of the day, I am using it.
I have converted one of the Microsoft Starter Kits to work on my linux machine (which uses ClarkConnect) and the initial testing that I have done using mono's XSP standalone server (using version 2 which supports .Net Framework 2.0) has worked really well. I can access my web pages with something like http://my.domain:8080, or whatever port I start xsp with.
All that aside, I have then tried to set up the mod_mono module to serve the pages under apache using the following configuration:
Code:
Alias /gep13 "/var/www/virtual/my.domain"
MonoApplications "/gep13:/var/www/virtual/my.domain"
MonoServerPath /usr/bin/mod-mono-server2
<Location /gep13>
SetHandler mono
</Location>
And this also works well and I can get access to my pages using http://my.domain/gep13.
However, ideally, I would like to configure a Virtual Host under apache and use mod_mono and access my pages using http://my.domain.
I have tried to do this using the following configuration:
Code:
<VirtualHost *:80>
ServerName my.domain
ServerAlias *.my.domain
DocumentRoot /var/www/virtual/my.domain
ErrorLog /var/log/httpd/my.domain_error_log
CustomLog /var/log/httpd/my.domain_access_log combined
HostnameLookups Off
UseCanonicalName On
MonoAutoApplication disabled
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
MonoApplications gep13 "my.domain:/:/var/www/virtual/my.domain"
MonoExecutablePath gep13 /usr/bin/mono
MonoServerPath gep13 /usr/bin/mod-mono-server2
<Directory "/var/www/virtual/my.domain">
MonoSetServerAlias gep13
SetHandler mono
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I have taken this configuration from a known working set up on this website, however, I can not get it to work!! Apache restarts without any errors in the log files, however, as soon as I try to access the home page, I get the following error message in the apache log:
[error] Failed to connect to mod-mono-server after several attempts to spawn the process
And in the browser I get a Service Temporarily Unavailable error message.
Can anyone shed any light on why this would be? If you need any further information about my setup, please do hesitate to post back.
Thanks
Gary
-
May 29th, 2008, 09:51 AM
#2
Re: mod_mono with apache
Hey,
From anyone who is interested, I have now got this to work, thanks to DaRocker22 who is part of the mono community. Here is my configuration:
Code:
<VirtualHost *:80>
DocumentRoot /var/www/virtual/my.domain/
ServerName my.domain
ServerAlias *.my.domain
ErrorLog /var/log/httpd/my.domain_error_log
CustomLog /var/log/httpd/my.domain_access_log combined
HostnameLookups Off
UseCanonicalName On
MonoPath default "/usr/bin/mono/2.0"
MonoServerPath default /usr/bin/mod-mono-server2
AddMonoApplications default "/:/var/www/virtual/my.domain"
<location />
MonoSetServerAlias default
SetHandler mono
</location>
<Directory /var/www/virtual/my.domain/>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I am not sure exactly what changes that have been made cause it to work, and to be honest, I am not that concerned, all I know is, it works!!
Woot Woot!!
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|