You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Be...@peopleware.be on 2005/07/04 12:38:27 UTC

[users@httpd] SetHandler not working ?

Hi, all, 

I'm running Apache 2 on SuSE Linux 9.0 and I'm trying to make mod_mono 
work. 
I have already had succes with it on SuSE 9.3 without virtual host. 

However, somehow on the 9.0 the handler seems to be bypassed. 
When I request a page index.aspx, I get the content of the file, not the 
result of the processed code. 

Here are the (I think) relevant pieces of the configuration. 

I am also running a zope web server on port 8080, maybe that is of 
interest to you. 

Any clues anyone ? 



LoadModule access_module /usr/lib/apache2-prefork/mod_access.so 
LoadModule actions_module /usr/lib/apache2-prefork/mod_actions.so 
LoadModule alias_module /usr/lib/apache2-prefork/mod_alias.so 
LoadModule auth_module /usr/lib/apache2-prefork/mod_auth.so 
LoadModule auth_dbm_module /usr/lib/apache2-prefork/mod_auth_dbm.so 
LoadModule autoindex_module /usr/lib/apache2-prefork/mod_autoindex.so 
LoadModule cgi_module /usr/lib/apache2-prefork/mod_cgi.so 
LoadModule dir_module /usr/lib/apache2-prefork/mod_dir.so 
LoadModule env_module /usr/lib/apache2-prefork/mod_env.so 
LoadModule expires_module /usr/lib/apache2-prefork/mod_expires.so 
LoadModule include_module /usr/lib/apache2-prefork/mod_include.so 
LoadModule ldap_module /usr/lib/apache2-prefork/mod_ldap.so 
LoadModule auth_ldap_module /usr/lib/apache2-prefork/mod_auth_ldap.so 
LoadModule log_config_module /usr/lib/apache2-prefork/mod_log_config.so 
LoadModule mime_module /usr/lib/apache2-prefork/mod_mime.so 
LoadModule negotiation_module /usr/lib/apache2-prefork/mod_negotiation.so 
LoadModule rewrite_module /usr/lib/apache2-prefork/mod_rewrite.so 
LoadModule setenvif_module /usr/lib/apache2-prefork/mod_setenvif.so 
LoadModule ssl_module /usr/lib/apache2-prefork/mod_ssl.so 
LoadModule suexec_module /usr/lib/apache2-prefork/mod_suexec.so 
LoadModule userdir_module /usr/lib/apache2-prefork/mod_userdir.so 
LoadModule php4_module /usr/lib/apache2-prefork/libphp4.so 
LoadModule mono_module /usr/lib/apache2/mod_mono.so 

NameVirtualHost * 

<virtualhost *> 
  ServerName asp.my.domain 

  Alias /aspnet "/usr/share/doc/xsp/test" 
  MonoApplications "/aspnet:/usr/share/doc/xsp/test" 
  <Directory /usr/share/doc/xsp/test> 
    SetHandler mono 
    DirectoryIndex index.aspx 

    Order allow,deny 
    Allow from all 

  </Directory> 

  ErrorLog /var/log/apache2/error-asp.log 
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 

  TransferLog /var/log/apache2/transfer-asp.log 
</virtualhost> 


Any help greatly appreciated 





Kind regards,

Bert De Ridder

PeopleWare NV - Head Office
Cdt.Weynsstraat 85 
B-2660 Hoboken 
Tel: +32 3 448.33.38 
Fax: +32 3 448.32.66 

PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25

u r lame if u insist on trying 2 b l337 by abbrev evythng u type when 
asking ppl 4 hlp. kiddie speak is teh sux. ppl. plz stop teh kiddie speak. 
thx.
hint: aol kiddie speak is not cool, it just makes people not want to read 
your post.


[users@httpd] Re: SetHandler not working ?

Posted by Be...@peopleware.be.
Hi, 

I appreciate the input, however, that document is valid for an older 
version of mod_mono (libmod_mono.so). 
MonoApplication (singular) is no longer recognised by the module
MonoApplications is recognised. 

It is not that mod_mono does not get loaded, I can even see the mono 
processes

16757 ?        S      0:00 /usr/sbin/httpd2-prefork -f 
/etc/apache2/httpd.conf
16758 ?        S      0:00 /usr/sbin/httpd2-prefork -f 
/etc/apache2/httpd.conf
16761 ?        S      0:00 /usr/sbin/httpd2-prefork -f 
/etc/apache2/httpd.conf
16762 ?        S      0:00 /usr/sbin/httpd2-prefork -f 
/etc/apache2/httpd.conf
16763 ?        S      0:00 /usr/sbin/httpd2-prefork -f 
/etc/apache2/httpd.conf
16765 ?        S      0:00 /usr/sbin/httpd2-prefork -f 
/etc/apache2/httpd.conf
16768 ?        S      0:00 /usr/bin/mono 
/usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server 
--applications
16779 ?        S      0:00 /usr/bin/mono 
/usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server 
--applications
16780 ?        S      0:00 /usr/bin/mono 
/usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server 
--applications
16783 ?        S      0:00 /usr/bin/mono 
/usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server 
--applications
16789 ?        S      0:00 /usr/bin/mono 
/usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server 
--applications

it is just that the content of the aspx files is returned, in stead of 
handled by the server and then the result sent to the client. 




Regards,

Bert De Ridder

PeopleWare NV - Head Office
Cdt.Weynsstraat 85 
B-2660 Hoboken 
Tel: +32 3 448.33.38 
Fax: +32 3 448.32.66 

PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25

http://www.peopleware.be 
http://www.mobileware.be 
u r lame if u insist on trying 2 b l337 by abbrev evythng u type when 
asking ppl 4 hlp. kiddie speak is teh sux. ppl. plz stop teh kiddie speak. 
thx.
hint: aol kiddie speak is not cool, it just makes people not want to read 
your post.





"Joost de Heer" <sa...@xs4all.nl> 
05/07/2005 12:15
Please respond to
sanguis@xs4all.nl


To
Bert_De_Ridder@peopleware.be
cc
users@httpd.apache.org
Subject
Re: SetHandler not working ?






>   MonoApplications "/aspnet:/usr/share/doc/xsp/test"

>From the documentation (http://www.apacheworld.org/modmono/INSTALL):
---
MonoApplication /mono /home/user/mono/install/xsp/server/test

The MonoApplication directive takes two arguments. The first one is the
virtual path, which is part
of the URL used to access your application. The second one is the physical
path, the directory
where the application resides. In this case is the directory containing
the XSP test pages.
Only one MonoApplication directive is currently allowed.
---

So your MonoApplications line seems to be wrong.

Joost



[users@httpd] Re: SetHandler not working ?

Posted by Joost de Heer <sa...@xs4all.nl>.
>   MonoApplications "/aspnet:/usr/share/doc/xsp/test"

>From the documentation (http://www.apacheworld.org/modmono/INSTALL):
---
MonoApplication /mono /home/user/mono/install/xsp/server/test

The MonoApplication directive takes two arguments. The first one is the
virtual path, which is part
of the URL used to access your application. The second one is the physical
path, the directory
where the application resides. In this case is the directory containing
the XSP test pages.
Only one MonoApplication directive is currently allowed.
---

So your MonoApplications line seems to be wrong.

Joost


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org