I am getting “Invalid command 'WSGIScriptAlias' ” error while starting Apache

前端 未结 4 1262
生来不讨喜
生来不讨喜 2021-02-05 07:05

I want to deploy my Django project to EC2 server. I installed mod_wsgi.

And made configuration like in the tutorial of django.

I am getting the following:

4条回答
  •  萌比男神i
    2021-02-05 07:52

    The problem is that mod_wsgi is not installed properly.

    Solution (using Apache 2):

    1. install Apache:

      $ sudo apt-get install apache2
      
    2. install libapache2-mod-wsgi:

      $ sudo apt-get install libapache2-mod-wsgi
      

    And this should work fine.

提交回复
热议问题