LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-11-2004, 03:33 AM   #1
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
installing mod_mono with apache 1.3


Hi,

I try to play around with asp.net in Linux platform. Ok.... here is the INSTALL file....

* Step by step (everything in /usr!)
-------------------------------------
1. Install mod_mono.

tar xvfz mod_mono-X.Y.Z.tar.gz
cd mod_mono-X.Y.Z
(*) ./configure --prefix=/usr
make
make install

(*) If it complains about not finding apxs because you installed
apache in a non-common directory or the configuration summary
reports an apache version different from what you expected, use
the --with-apxs argument. Example:

./configure --prefix=/usr --with-apxs=/usr/sbin/apxs

(Apache 2 only) If you get errors while compiling due to apr.h
header not found, you'll need to use the --with-apr-config option
and provide the full path to 'apr-config':

./configure --prefix=/usr --with-apr-config=/usr/bin/apr-config

After running 'make install', the module is installed in the
proper location and the apache configuration file has been
updated to load the module. apxs automatically adds this line (or
similar) to httpd.conf if not already present:

LoadModule mono_module modules/libmod_mono.so

2. Configure apache.

We're going to configure apache so that we can browse the samples
installed by XSP under /usr/share/doc/xsp/test.

Edit your httpd.conf file, which should be in /etc/httpd,
/etc/apache, /etc/apache2...

Add the following lines:

Alias /demo "/usr/share/doc/xsp/test"
MonoApplications "/demo:/usr/share/doc/xsp/test"

so that apache redirects requests from /demo to /demo/ and looks
for everything requested as /demo/xxx under
/usr/share/doc/xsp/test/xxx.Don't forget the quotes.

For Apache 1.3 and, optionally, for Apache 2.0, add these lines:

<Directory /usr/share/doc/xsp/test>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>

If you are using Apache 2.0, you can use get the same results with
this:

<Location /demo>
SetHandler mono
</Location>

Take a look at Appendix A below for typical configuration
samples and Appendix B for detailed descriptions on available
configuration directives.

3. Restart apache.
4. Point your browser to http://127.0.0.1/demo/index.aspx

I have difficulties in step 2. In what part of httpd.conf file I have to put that lines? Where do I have to put these lines:
Alias /demo "/usr/share/doc/xsp/test"
MonoApplications "/demo:/usr/share/doc/xsp/test"
in httpd.conf file?

Where do I have to put these lines in my httpd.conf file?
<Directory /usr/share/doc/xsp/test>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>

Thanks......
 
Old 09-11-2004, 04:13 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
You can put these lines anywhere in httpd.conf, but make sure you don't put them inside a directive block.

You could put lines at the end of httpd.conf before any include directive, if there are ones.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Apache 2.0.53 dashp Linux - Newbie 5 03-06-2005 06:25 PM
compiling mod_mono krumholz Linux - Software 1 11-04-2004 08:38 PM
mod_mono, access database, and apache jcookeman Linux - Enterprise 1 09-17-2004 02:10 PM
apache mod_mono and mod_frontpage redmoustache Linux - Software 0 09-26-2003 05:51 PM
Installing Apache 1.3.26 with Thinkgeekness Linux - Software 1 03-17-2003 12:51 PM


All times are GMT -5. The time now is 11:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration