S
S
ShudryD2017-02-23 16:15:14
Django
ShudryD, 2017-02-23 16:15:14

Problem installing Django project on VPS?

When I start httpd I get this error:

AH00526: Syntax error on line 363 of /etc/httpd/conf/httpd.conf:
WSGIPythonPath cannot occur within <VirtualHost> section

Project:
~/shudry-virtual
|------Shudry_Project
| ............ |------manage.py
| ............ |------Shudry_Project
| ............................... |------settings.py
| ...............................|------wsgi.py
|------bin
| ------lib
Addition to conf/httpd.conf
<virtualhost IP_HOST:80>

ServerName domain.com
ServerAlias www.domain.com

WSGIScriptAlias / /shudry-virtual/Shudry_Project/Shudry_Project/wsgi.py
WSGIPythonPath /shudry-virtual/Shudry_Project:/shudry-virtual/lib/python2.7/site-packages
WSGIDaemonProcess Shudry_Project python-path=/shudry-virtual/Shudry_Project:/shudry-virtual/lib/python2.7/site-packages
WSGIProcessGroup Shudry_Project

<Directory /shudry-virtual/Shudry_Project/Shudry_Project>
<Files wsgi.py>
Order deny,allow
Require all granted
</Files>
</Directory>

</virtualhost>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-02-23
@ShudryD

Throw out
Apache
Nafig
https://www.google.com.ua/search?q=ubuntu+16.04+django

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question