Update 'Quick Guide to publishing websites on hal.elte.hu with Python3 backend'

master
baskayj 4 years ago
parent
commit
a6aac52ce2
  1. 10
      Quick-Guide-to-publishing-websites-on-hal.elte.hu-with-Python3-backend.md

10
Quick-Guide-to-publishing-websites-on-hal.elte.hu-with-Python3-backend.md

@ -30,12 +30,12 @@ This file contains the paths to all the important Files needed for Apache2 to ru
```
<VirtualHost *:80>
ServerAdmin username
DocumentRoot /var/www/html/your_app
DocumentRoot /var/www/html/your_app # **All data for your site “should” be at /var/www/html/**
WSGIDaemonProcess your_app python-home=/var/www/html/your_app/your_app/venv python-path=/var/www/html/your_app/your_app:/var/www/html/your_app/your_app/venv/local/lib/python3.9/site-packages threads=5
WSGIScriptAlias /your_app /var/www/html/your_app/your_app.wsgi
WSGIDaemonProcess your_app python-home=/var/www/html/your_app/your_app/venv python-path=/var/www/html/your_app/your_app:/var/www/html/your_app/your_app/venv/local/lib/python3.9/site-packages threads=5 # **Location of your Python3 virtualenv**
WSGIScriptAlias /your_app /var/www/html/your_app/your_app.wsgi # **Your site will be available at hal.elte.hu/your_app**
WSGIApplicationGroup %{GLOBAL}
<Directory /var/www/html/your_app/your_app/>
<Directory /var/www/html/your_app/your_app/> # **Location of your Python scripts**
WSGIProcessGroup your_app
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
@ -46,7 +46,7 @@ This file contains the paths to all the important Files needed for Apache2 to ru
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
ErrorLog ${APACHE_LOG_DIR}/error.log # **Logging**
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Loading…
Cancel
Save