diff --git a/src/etc/alternc/templates/apache2/wsgi-both.conf b/src/etc/alternc/templates/apache2/wsgi-both.conf
index 4bf829d..fb6bbb3 100644
--- a/src/etc/alternc/templates/apache2/wsgi-both.conf
+++ b/src/etc/alternc/templates/apache2/wsgi-both.conf
@@ -10,12 +10,12 @@
%%CHAINLINE%%
- WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/%%APP_SUBDIR%%/ socket-user=#%%UID%%
+ WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/ socket-user=#%%UID%%
WSGIProcessGroup %%fqdn%%
WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
-
+
AllowOverride All
@@ -35,12 +35,12 @@
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
- WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/%%APP_SUBDIR%%/ socket-user=#%%UID%%
+ WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/ socket-user=#%%UID%%
WSGIProcessGroup %%fqdn%%
WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
-
+
AllowOverride All
diff --git a/src/etc/alternc/templates/apache2/wsgi-http.conf b/src/etc/alternc/templates/apache2/wsgi-http.conf
index 35dff3a..7eba0b1 100644
--- a/src/etc/alternc/templates/apache2/wsgi-http.conf
+++ b/src/etc/alternc/templates/apache2/wsgi-http.conf
@@ -22,12 +22,12 @@
AssignUserId #%%UID%% #%%GID%%
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
- WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/%%APP_SUBDIR%%/ socket-user=#%%UID%%
+ WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/ socket-user=#%%UID%%
WSGIProcessGroup %%fqdn%%
WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
-
+
AllowOverride All
diff --git a/src/etc/alternc/templates/apache2/wsgi-https.conf b/src/etc/alternc/templates/apache2/wsgi-https.conf
index 4b63fb0..f7f7cc5 100644
--- a/src/etc/alternc/templates/apache2/wsgi-https.conf
+++ b/src/etc/alternc/templates/apache2/wsgi-https.conf
@@ -10,12 +10,12 @@
%%CHAINLINE%%
- WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/%%APP_SUBDIR%%/ socket-user=#%%UID%%
+ WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/ socket-user=#%%UID%%
WSGIProcessGroup %%fqdn%%
WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
-
+
AllowOverride All
diff --git a/src/etc/alternc/templates/apache2/wsgi.conf b/src/etc/alternc/templates/apache2/wsgi.conf
new file mode 100644
index 0000000..7eba0b1
--- /dev/null
+++ b/src/etc/alternc/templates/apache2/wsgi.conf
@@ -0,0 +1,42 @@
+
+ ServerName %%fqdn%%
+ AssignUserId #%%UID%% #%%GID%%
+ SetEnv LOGIN "%%UID%%-%%LOGIN%%"
+
+ SSLEngine On
+ SSLCertificateFile %%CRT%%
+ SSLCertificateKeyFile %%KEY%%
+ %%CHAINLINE%%
+
+ KeepAlive Off
+
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} !/cgi-bin/
+ RewriteCond %{REQUEST_FILENAME} !/.well-known/acme-challenge/
+ RewriteRule ^/(.*)$ http://%%fqdn%%/$1 [R=301,L]
+
+
+
+ ServerName %%fqdn%%
+ DocumentRoot %%document_root%%
+ AssignUserId #%%UID%% #%%GID%%
+ SetEnv LOGIN "%%UID%%-%%LOGIN%%"
+
+ WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/ socket-user=#%%UID%%
+ WSGIProcessGroup %%fqdn%%
+ WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
+
+
+
+ AllowOverride All
+
+
+ Order allow,deny
+ Allow from all
+
+ = 2.4>
+ Require all granted
+
+
+
+