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

前端 未结 4 1253
生来不讨喜
生来不讨喜 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条回答
  •  自闭症患者
    2021-02-05 07:33

    I just encountered the very same issue on openSUSE 12.2, with apache 2.2.

    Even if wsgi is installed, it is a good idea to check if it has been activated. What I mean is this:

    #outputs a list of registered modules
    /usr/sbin/httpd2 -M
    

    If wsgi_module (shared) does not appear, add wsgi to the variable APACHE_MODULES, inside the file /etc/sysconfig/apache2

    This way I could avoid altogether the line LoadModule from httpd.conf.

提交回复
热议问题