Blogengine.net 作为我网站的子目录?
我的服务器上已经有一个网站正在运行,现在我想安装 Blogengine.net 并将其作为我网站的子目录运行。 我需要它作为一个子目录,以便我可以检查授权并使用我的网站中已运行的其他内容。
如果我没有为我的博客创建虚拟目录,我会收到此错误:
“在应用程序级别之外使用注册为allowDefinition ='MachineToApplication'的部分是错误的。此错误可能是由于未将虚拟目录配置为应用程序而导致的在 IIS 中。”
如何让 BE 作为子目录运行而不使其成为虚拟目录? 我如何使用已经运行的网站中的会话、母版页等内容?
希望你明白我在说什么,我的英语不是最好的。 对不起! :-)
谢谢!
I already have a website running on my server and now I wanted to install Blogengine.net and have it running as a subdirectory to my website. I need it to be a subdirectory so I can check for authorization and use other stuff from my website that is already running.
I get this error if I not create a virtual directory for my blog:
"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
How can I have BE running as a subdirectory without making it a virtual directory? How can I use the stuff like sessions, masterpages from my already running website?
Hope you understand what I'm talking about, my english is not the best. Sorry! :-)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需转到“内容”>“IIS 设置”,然后将映射到子域的文件夹标记为虚拟目录。
希望这可以帮助
Just go to Contents>IIS Settings then mark the folder that is mapped to your subdomain as virtual directory.
Hope this helps
我也做过类似的事情,但我是通过我的托管公司 (GoDaddy.com) 作为“共享托管”解决方案来完成的。
基本上,我有一个主域 (scottmarlowe.com),并且在该主站点的子文件夹中,另一个站点 (itscodingtime.com) 拥有自己的域,但作为 scottmarlowe.com 根目录下的子文件夹存在。
所以我有:
其中“itscodingtime”是另一个 BlogEngine.NET 博客。
我不知道这是否回答了你的问题,但我就是这么做的。
I've done something similar, but I did it via my hosting company (GoDaddy.com) as a "shared hosting" solution.
Basically, I have a primary domain (scottmarlowe.com) and, in a sub-folder off that main site, another site (itscodingtime.com) with its own domain but which exists as a sub-folder beneath the scottmarlowe.com root.
So, I have:
where "itscodingtime" is a whole other BlogEngine.NET blog.
I don't know if that answers your question or not, but it's how I did it.