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