]> scripts.mit.edu Git - www/raw.git/blob - faq/131.mdwn
Import from TextPattern
[www/raw.git] / faq / 131.mdwn
1 [[!meta title="How do I use ASP.Net Applications on Scripts?"]]
2 ASP.Net applications can be used on Scripts with
3 [Mono](http://www.mono-project.com/Main_Page).   
4 To use an ASP.Net application add the following to your `.htaccess`
5 file:
6
7 `DirectoryIndex index.aspx`  
8 `Options ExecCGI FollowSymLinks`  
9 `SetEnv MONO_SHARED_DIR "/tmp/$USERNAME"`  
10 `AddHandler fcgid-script .asax .ashx .asmx .aspx .axd .config .cs .dll .rem .soap`
11
12 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .asax`  
13 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .ashx`  
14 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .asmx`  
15 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .aspx`  
16 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .ascx`  
17 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .axd`  
18 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .config`  
19 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .cs`  
20 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .dll`  
21 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .rem`  
22 `FCGIWrapper "/usr/bin/fastcgi-mono-server2 /applications=/test:/mit/pweaver/web_scripts/test" .soap`
23
24 Replace /test:/mit/pweaver/web\_scripts/test with the application’s
25 name and path of you application in your web\_scripts directory.
26
27
28