簡體   English   中英

我的Apache站點的配置文件中的命令'WSGIReloadMechanism'無效

[英]Invalid command 'WSGIReloadMechanism' in my Apache site's config file

我正在嘗試部署Django項目,並將Apache2與mod_wsgi結合使用。 這是我的Apache conf文件中的相關行:

WSGIScriptReloading On
WSGIDaemonProcess myprojectcom
WSGIReloadMechanism Process
WSGIProcessGroup myprojectcom
WSGIApplicationGroup myprojectcom
WSGIPassAuthorization On

WSGIScriptAlias / /home/myproject/myproject/deploy/deploy.wsgi

我在許多其他部署中使用了非常類似的conf文件,但這是我第一次遇到以下錯誤:

/etc/apache2/sites-available$ sudo /etc/init.d/apache2 restart
Syntax error on line 8 of /etc/apache2/sites-enabled/myproject.com:
Invalid command 'WSGIReloadMechanism', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
  ...fail!

我沒有看到任何語法錯誤。 我在Ubuntu上,使用libapache2-mod-wsgi軟件包。 有什么事嗎

刪除整行:

WSGIReloadMechanism Process

不再需要,該指令在mod_wsgi 3.X中已完全刪除。

您最好不要依賴舊的博客文章來了解如何設置mod_wsgi並使用mod_wsgi網站上的實際mod_wsgi文檔。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM