开发者

how to restart single apache site on a ubuntu vps rather than all sites

开发者 https://www.devze.com 2023-02-06 20:15 出处:网络
I\'ve got a ubuntu vps and apache mod wsgi installed and serving my django sites. however i have to restart all of apache rather than the site i have amended and its going to be a bit shonky if i tel

I've got a ubuntu vps and apache mod wsgi installed and serving my django sites.

however i have to restart all of apache rather than the site i have amended and its going to be a bit shonky if i tell cli开发者_JS百科ents that i have restarted their site cos i updated another site.

is there a tutorial somewhere to teach me how to configure this? i couldnt find one in googles keywords soup.

I'm already using virtualenvs if it helps.


Assuming you use mod_wsgi in daemon mode on UNIX/Apache 2.X system to run Django and have shell access to your machine all you need to do is touch the wsgi configuration for your project.

touch your_project.wsgi

See mod_wsgi documentation on Reloading Source Code and Django - mod_wsgi wiki for more references.

0

精彩评论

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