我是Linux主机的新手。我们有一些托管在Windows上的ASP.NET站点。我们现在要将这些站点迁移到Apache We服务器。经过研究,我发现我们可以用“mono”来达到这个目的。为此,我在我们新的CENTOS 7 new服务器上安装了Apache &mono。输出“mono”-
Mono JIT compiler version 5.14.0.176 (tarball Fri Aug 3 08:39:03 UTC
2018) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and
Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(3.6.0svn-mono-/)
GC: sgen (concurrent by default)输出"httpd -v“-
Server version: Apache/2.4.6 (CentOS) Server built: Jun 27 2018 13:48:59我还在/etc/httpd/conf/httpd.conf文件中添加了以下行-
Include conf.modules.d/*.conf
Include /etc/httpd/conf.d/mod_mono.conf
LoadModule mono_module /usr/lib64/httpd/modules/mod_mono.so
<IfModule dir_module>
DirectoryIndex index.html Default.aspx </IfModule>
AddType text/html .shtml
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
AddOutputFilter INCLUDES .shtml我的Apache服务器能够承载和显示普通的HTML页面。但是当尝试运行index.aspx页面时,它显示的是
503服务不可用
谁能让我知道我在这里错过了什么吗?
发布于 2018-08-05 05:40:43
你忘了启动mono服务器。
https://serverfault.com/questions/924970
复制相似问题