toaster-manual: update apache configuration file
Changed access control instructions to work with Apache 2.4 according to https://httpd.apache.org/docs/current/upgrading.html. Added 'Require all granted' for wsgi.py according to https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/. Changed python module path for WSGIDaemonProcess as python version changed and modules are installed to the different path. (From yocto-docs rev: 503b6c3c250936e889ce146bfcd301ed55e638d2) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c3e076f555
commit
3d24037b76
|
@ -399,16 +399,26 @@
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
Alias /static /var/www/toaster/static_files
|
Alias /static /var/www/toaster/static_files
|
||||||
<Directory /var/www/toaster/static_files>
|
<Directory /var/www/toaster/static_files>
|
||||||
Order allow,deny
|
<IfModule mod_access_compat.c>
|
||||||
Allow from all
|
Order allow,deny
|
||||||
Require all granted
|
Allow from all
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !mod_access_compat.c>
|
||||||
|
Require all granted
|
||||||
|
</IfModule>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
WSGIDaemonProcess toaster_wsgi python-path=/var/www/toaster/poky/bitbake/lib/toaster:/var/www/toaster/venv/lib/python2.7/site-packages
|
<Directory /var/www/toaster/poky/bitbake/lib/toaster/toastermain>
|
||||||
|
<Files "wsgi.py">
|
||||||
|
Require all granted
|
||||||
|
</Files>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
WSGIDaemonProcess toaster_wsgi python-path=/var/www/toaster/poky/bitbake/lib/toaster:/var/www/toaster/.local/lib/python3.4/site-packages
|
||||||
|
|
||||||
WSGIScriptAlias / "/var/www/toaster/poky/bitbake/lib/toaster/toastermain/wsgi.py"
|
WSGIScriptAlias / "/var/www/toaster/poky/bitbake/lib/toaster/toastermain/wsgi.py"
|
||||||
<Location />
|
<Location />
|
||||||
WSGIProcessGroup toastern_wsgi
|
WSGIProcessGroup toaster_wsgi
|
||||||
</Location>
|
</Location>
|
||||||
</literallayout>
|
</literallayout>
|
||||||
If you are using Ubuntu or Debian,
|
If you are using Ubuntu or Debian,
|
||||||
|
|
Loading…
Reference in New Issue