我正在尝试使用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'是预期的文件:///etc/rc.d/init.d/mono-fastcgi/servers.webapp第9行,第4位。 在Mono.Xml2.XmlTextReader.Expect(期望System.String)[0x00000] in: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 在System.Xml.XmlValidatingReader.Read()[0x00000]中:0 在System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.ReadNode(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.Load(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.Load(System.String filename)[0x00000] in:0 在Mono.WebServer.ApplicationServer.AddApplicationsFromConfigFile(System.String fileName)[0x00000] in:0 [错误]致命的未处理的异常:System.Xml.XmlException:'vhost'是预期的文件:///etc/rc.d/init.d/mono-fastcgi/servers.webapp第9行,第4位。 在Mono.Xml2.XmlTextReader.Expect(期望System.String)[0x00000] in: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 在System.Xml.XmlValidatingReader.Read()[0x00000]中:0 在System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.ReadNodeCore(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.ReadNode(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.Load(System.Xml.XmlReader reader)[0x00000] in:0 在System.Xml.XmlDocument.Load(System.String filename)[0x00000] in:0 在Mono.WebServer.ApplicationServer.AddApplicationsFromConfigFile(System.String fileName)[0x00000] in:0
有人有什么想法吗?
喝彩!