Ubuntu 学习笔记 (二) xsp服务

1. sudo apt-get install libapache2-mod-mono mono-apache-server2

2. vim /etc/apache2/mods-available/mod_mono.conf

AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
3. vim /etc/apache2/sites-available/default, add the following content in <VirtualHost *:80>...</VirtualHost>
        Alias /application/ "/var/www/application/"
        <Directory /var/www/application/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
                SetHandler mono
                DirectoryIndex index.aspx index.html
        </Directory>

 4. sudo /etc/init.d/apache2 restart

原文地址:https://www.cnblogs.com/zhongzf/p/1762015.html