1

我正在尝试使用 webapp 文件启动我的 fastcgi-mono-server4,

这是位于 /etc/rc.d/init.d/mono-fastcgi/servers.webapp 的文件

<apps>
<web-application>
    <name>api</name>
    <vhost>abc.com/vhost>
    <vport>80</vport>
    <vpath>/</vpath>
    <path>/var/www/abc.com/html</path>
</web-application>
<web-application>
    <name>www</name>
    <vhost>def.com</vhost>
    <vport>80</vport>
    <vpath>/</vpath>
    <path>/var/www/def.com/html</path>
</web-application>
</apps>

当我跑

fastcgi-mono-server4 --appconfigdir=/etc/rc.d/init.d/mono-fastcgi /socket=tcp:127.0.0.1:9000 /printlog=true &

这是我运行时遇到的异常

未处理的异常:System.Xml.XmlException: 'vhost' is expected file:///etc/rc.d/init.d/mono-fastcgi/servers.webapp 第 9 行,位置 4。在 Mono.Xml2.XmlTextReader.Expect (System.String 预期)[0x00000] 在:0 在 Mono.Xml2.XmlTextReader.ReadEndTag () [0x00000] 在:0 在 Mono.Xml2.XmlTextReader.ReadContent () [0x00000] 在:0 在 Mono.Xml2.XmlTextReader .Read () [0x00000] in :0 at System.Xml.XmlTextReader.Read () [0x00000] in :0 at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] in :0 at Mono.Xml.Schema.XsdValidatingReader .Read () [0x00000] in :0 at System.Xml.XmlValidatingReader.Read () [0x00000] in :0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in :0 at System .Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader 阅读器)[0x00000] 在 System.Xml.XmlDocument 的 0 中。ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in :0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in :0 at System.Xml.XmlDocument.ReadNode (System.Xml. XmlReader reader) [0x00000] in :0 at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x00000] in :0 at System.Xml.XmlDocument.Load (System.String filename) [0x00000] in: 0 在 Mono.WebServer.ApplicationServer.AddApplicationsFromConfigFile (System.String fileName) [0x00000] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.Xml.XmlException: 'vhost' is expected file:///etc/rc.d/ init.d/mono-fastcgi/servers.webapp 第 9 行,位置 4。在 Mono.Xml2.XmlTextReader.Expect(需要 System.String)[0x00000] 在:0 在 Mono.Xml2.XmlTextReader.ReadEndTag () [0x00000]在:0 在 Mono.Xml2.XmlTextReader.ReadContent () [0x00000] 中:0 在 Mono.Xml2.XmlTextReader.Read () [0x00000] 在:0 在 System.Xml.XmlTextReader.Read () [0x00000] 在:0 在 Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] 在:0 在Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] in :0 at System.Xml.XmlValidatingReader.Read () [0x00000] in :0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [ 0x00000] 在 System.Xml.XmlDocument.ReadNodeCore 的 0 处(System.Xml.XmlReader 阅读器)[0x00000] 在 System.Xml.XmlDocument.ReadNodeCore 的 0 处(System.Xml.XmlReader 阅读器)[0x00000] 在 0 的System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader 阅读器)[0x00000] 在 System.Xml.XmlDocument.ReadNode 的 0 处(System.Xml.XmlReader 阅读器)[0x00000] 在 System.Xml.XmlDocument 的 0 处。加载(System.Xml.XmlReader reader)[0x00000] in :0 at System.Xml.XmlDocument.Load(System.XmlDocument.Load)字符串文件名)[0x00000] 在:0 在 Mono.WebServer.ApplicationServer.AddApplicationsFromConfigFile(System.String 文件名)[0x00000] 在:0

有人有想法么?

干杯!

4

0 回答 0