博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Ubuntu下的Apache上建立新的website,以及enable mono
阅读量:4464 次
发布时间:2019-06-08

本文共 1096 字,大约阅读时间需要 3 分钟。

1. 在Apache下建立新的web site

    a. $>cd /etc/apache2/

    b. $>vi ports.conf

        填加Listen 8090(注意不要打开8080,因为Tomcat使用了这个端口)

    c. $>cd sites-availabel

    d. $>cp default mysite

    e. $>vi mysite

          <VirtualHost *:8090>        

                     DocumentRoot /home/sdikerdong/www/

            <Directory /home/sdikerdong/www/>                

          Options Indexes FollowSymLinks MultiViews                

          AllowOverride All                

          Order allow,deny                

          allow from all                

          SetHandler mono                

          DirectoryIndex index.aspx index.html        

      </Directory>

    </VirtualHost>

     f. ln -s /etc/apache2/site-available/mysite /etc/apache2/site-enable/mysite

     g. /etc/init.d/apache2 restart

 

     经过以上步骤就可以访问  (当然,你要在/home/sdikerdong/www下面建好index.html)

 

2. 使mono在Apache下面有效

    should install mono runtime before following steps

      $> apt-get install mono (或都mono-devel)

     a. If Apache is running it must be stopped before installing mod_mono: /etc/init.d/apache2 stop

     b. $>sudo apt-get install libapache2-mod-mono

     c. $>sudo apt-get install mono-apache-server2

     e. $>sudo a2enmod mod_mono

     f. Restart Apache: /etc/init.d/apache2 restart

 

参考

转载于:https://www.cnblogs.com/sdikerdong/p/3589704.html

你可能感兴趣的文章
Python-aiohttp百万并发
查看>>
leetcode--Permutation Sequence
查看>>
[转载] 腾讯开源的rapidjson
查看>>
关于Oracle数据库字符集
查看>>
Cookie Session 与Token
查看>>
[POJ1655]Balancing Act
查看>>
存储过程
查看>>
搭建mongodb注意事项
查看>>
按ECS退出全屏模式
查看>>
5.4下午数学
查看>>
【软工】第 一 次作业 (阅读作业)
查看>>
素材网
查看>>
django
查看>>
mysql双1设置
查看>>
视觉差滚动--展示图片
查看>>
网页自动添加qq好友
查看>>
Myeclipse 如何解决反应慢的问题
查看>>
HDU POJ 1015 Jury Compromise(陪审团的人选,DP)
查看>>
Bubble Sort冒泡排序
查看>>
hadoop基础学习---数据管理策略
查看>>