回收应用程序 Mod_Mono 2.8
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够执行
/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.我们有一个进程每分钟都会尝试下载托管 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.