回收应用程序 Mod_Mono 2.8

发布于 2024-10-07 16:21:36 字数 346 浏览 0 评论 0原文

我有一个 CentOS 5.x 服务器,运行 Mono 2.8.1 和 mod_mono 2.8 以及 apache2。

每次我通过 ftp 将站点从 Visual Studio 2010 部署到我的服务器并导航到该站点时,都会收到 404 未找到错误页面。

其他子域(虚拟主机)中的站点不受影响。

使用 /etc/init.d/httpd restart 重新启动 httpd 可以解决问题,并且我可以再次查看我的 ASP 站点。显然,重新启动整个 httpd 进程是不够的。

我的猜测是,这类似于 IIS 中的应用程序域。有没有办法在 mod_mono 中“回收”和应用程序域?我可以将其设置为在部署时发生吗?

I have a CentOS 5.x server running Mono 2.8.1 and mod_mono 2.8 with apache2.

Every time I deploy a site from visual studio 2010 to my server by ftp, and navigate to the site, I get a 404 not found error page.

Sites in other subdomains (virtual hosts) are not affected.

Performing a restart of httpd using /etc/init.d/httpd restart fixes the problem, and I can view my ASP site again. Obviously restarting the entire httpd process is less than adequate.

My guess is that this is similar to application domains in IIS. Is there a way to 'recycle' and app domain in mod_mono? Can I set this to happen on deployment?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

苍白女子 2024-10-14 16:21:36

您应该能够执行 /etc/init.d/httpd reload 来强制 Apache 从 /etc/apache 重新读取其文件,而无需重新启动。

You should be able to do /etc/init.d/httpd reload to force Apache to re-read its files from /etc/apache without it having to restart.

菩提树下叶撕阳。 2024-10-14 16:21:36

我们有一个进程每分钟都会尝试下载托管 URL,如果它返回 404,我们就会终止 -9 mod_mono。这应该足够了,您不需要接触 Apache。

We have a process that attempts to download a hosted URL every minute, and if it returns 404, we kill -9 mod_mono. That should be enough, you shouldn't need to touch Apache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文