Comment system for Hugo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.2 KiB

This is an example server config for Apache Webserver with mod_wsgi. If you wish to use pipenv, then please take also a look at the WSGIPythonHome directive.

<VirtualHost *:80>
    Redirect permanent /

<VirtualHost *:443>

    WSGIDaemonProcess laberflask user=user group=group threads=2
    WSGIScriptAlias / /var/www/html/labertasche/server.wsgi

    SSLCertificateFile /etc/letsencrypt/live/
    SSLCertificateKeyFile /etc/letsencrypt/live/
    Include /etc/letsencrypt/options-ssl-apache.conf

    <Directory "/var/www/html/labertasche">
            WSGIProcessGroup laberflask
            WSGIApplicationGroup %{GLOBAL}
            Options -Indexes
            AllowOverride None
            Require all granted
    ErrorLog ${APACHE_LOG_DIR}/laberflask.error.log
    CustomLog /dev/null common