开发者

Recycle Application Mod_Mono 2.8

开发者 https://www.devze.com 2023-01-31 01:23 出处:网络
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 er

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 ap开发者_如何学Pythonp domain in mod_mono? Can I set this to happen on deployment?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消