Add wsgi templates
This commit is contained in:
parent
77ac7b1ec3
commit
f47a2ae0c4
|
@ -0,0 +1,55 @@
|
|||
<VirtualHost *:443>
|
||||
ServerName %%fqdn%%
|
||||
DocumentRoot %%document_root%%
|
||||
AssignUserId #%%UID%% #%%GID%%
|
||||
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
|
||||
|
||||
SSLEngine On
|
||||
SSLCertificateFile %%CRT%%
|
||||
SSLCertificateKeyFile %%KEY%%
|
||||
%%CHAINLINE%%
|
||||
|
||||
<IfModule mod_wsgi.c>
|
||||
WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/%%APP_SUBDIR%%/ socket-user=#%%UID%%
|
||||
WSGIProcessGroup %%fqdn%%
|
||||
WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
|
||||
</IfModule>
|
||||
|
||||
<Directory "%%document_root%%/%%APP_SUBDIR%%">
|
||||
AllowOverride All
|
||||
<Files wsgi.py>
|
||||
<IfVersion < 2.4>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
<IfVersion >= 2.4>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
</Files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
<Virtualhost *:80>
|
||||
ServerName %%fqdn%%
|
||||
AssignUserId #%%UID%% #%%GID%%
|
||||
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
|
||||
|
||||
<IfModule mod_wsgi.c>
|
||||
WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/%%APP_SUBDIR%%/ socket-user=#%%UID%%
|
||||
WSGIProcessGroup %%fqdn%%
|
||||
WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
|
||||
</IfModule>
|
||||
|
||||
<Directory "%%document_root%%/%%APP_SUBDIR%%">
|
||||
AllowOverride All
|
||||
<Files wsgi.py>
|
||||
<IfVersion < 2.4>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
<IfVersion >= 2.4>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
</Files>
|
||||
</Directory>
|
||||
</Virtualhost>
|
|
@ -0,0 +1,42 @@
|
|||
<Virtualhost *:443>
|
||||
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]
|
||||
</Virtualhost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName %%fqdn%%
|
||||
DocumentRoot %%document_root%%
|
||||
AssignUserId #%%UID%% #%%GID%%
|
||||
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
|
||||
<IfModule mod_wsgi.c>
|
||||
WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/%%APP_SUBDIR%%/ socket-user=#%%UID%%
|
||||
WSGIProcessGroup %%fqdn%%
|
||||
WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
|
||||
</IfModule>
|
||||
|
||||
<Directory "%%document_root%%/%%APP_SUBDIR%%">
|
||||
AllowOverride All
|
||||
<Files wsgi.py>
|
||||
<IfVersion < 2.4>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
<IfVersion >= 2.4>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
</Files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
|
@ -0,0 +1,43 @@
|
|||
<VirtualHost *:443>
|
||||
ServerName %%fqdn%%
|
||||
DocumentRoot %%document_root%%
|
||||
AssignUserId #%%UID%% #%%GID%%
|
||||
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
|
||||
|
||||
SSLEngine On
|
||||
SSLCertificateFile %%CRT%%
|
||||
SSLCertificateKeyFile %%KEY%%
|
||||
%%CHAINLINE%%
|
||||
|
||||
<IfModule mod_wsgi.c>
|
||||
WSGIDaemonProcess %%fqdn%% python-home=%%VENV%% python-path=%%document_root%%/%%APP_SUBDIR%%/ socket-user=#%%UID%%
|
||||
WSGIProcessGroup %%fqdn%%
|
||||
WSGIScriptAlias / %%document_root%%/%%APP_SUBDIR%%/wsgi.py process-group=%%fqdn%%
|
||||
</IfModule>
|
||||
|
||||
<Directory "%%document_root%%/%%APP_SUBDIR%%">
|
||||
AllowOverride All
|
||||
<Files wsgi.py>
|
||||
<IfVersion < 2.4>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
<IfVersion >= 2.4>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
</Files>
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
<Virtualhost *:80>
|
||||
ServerName %%fqdn%%
|
||||
AssignUserId #%%UID%% #%%GID%%
|
||||
SetEnv LOGIN "%%UID%%-%%LOGIN%%"
|
||||
|
||||
KeepAlive Off
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !/cgi-bin/
|
||||
RewriteCond %{REQUEST_FILENAME} !/.well-known/acme-challenge/
|
||||
RewriteRule ^/(.*)$ http://%%fqdn%%/$1 [R=301,L]
|
||||
</Virtualhost>
|
Loading…
Reference in New Issue