--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
mod_wsgi-express setup-server --user admin --group admin webapp.wsgi --startup-log --access-log \
--port=80 --server-root=/usr/local/webapp \
--https-port 443 --https-only --allow-localhost --server-name localhost --ssl-certificate /usr/local/webapp/sslcerts/domain
LoadModule wsgi_module ${MOD_WSGI_SERVER_ROOT}/lib/python2.7/site-packages/mod_wsgi/server/mod_wsgi-py27.so
LoadModule version_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_version.so'
LoadModule mpm_event_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_mpm_event.so'
:
LoadModule socache_shmcb_module ${MOD_WSGI_MODULES_DIRECTORY}/mod_socache_shmcb.so
LoadModule ssl_module ${MOD_WSGI_MODULES_DIRECTORY}/mod_ssl.so
Listen 443
SSLSessionCache "shmcb:${MOD_WSGI_SERVER_ROOT}/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
User ${MOD_WSGI_USER}
Group ${MOD_WSGI_GROUP}
ServerName localhost
ServerRoot '${MOD_WSGI_SERVER_ROOT}'
PidFile '${MOD_WSGI_SERVER_ROOT}/httpd.pid'
ErrorLog "${MOD_WSGI_SERVER_ROOT}/error_log"
CustomLog "${MOD_WSGI_SERVER_ROOT}/access_log" common
<Directory />
AllowOverride None
Require all denied
</Directory>
<VirtualHost *:80>
ServerName 127.0.0.1
WSGIScriptAlias / "${MOD_WSGI_SERVER_ROOT}/webapp.wsgi"
Alias /static "${MOD_WSGI_SERVER_ROOT}/application/static"
DocumentRoot "${MOD_WSGI_SERVER_ROOT}"
<Directory "${MOD_WSGI_SERVER_ROOT}">
Options None
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
<virtualhost *:443>
ServerName 127.0.0.1
WSGIScriptAlias / "${MOD_WSGI_SERVER_ROOT}/webapp.wsgi"
Alias /static "${MOD_WSGI_SERVER_ROOT}/application/static"
DocumentRoot "${MOD_WSGI_SERVER_ROOT}"
<Directory "${MOD_WSGI_SERVER_ROOT}">
Options None
AllowOverride None
Require all granted
</Directory>
## SSL
SSLEngine On
SSLCertificateFile "${MOD_WSGI_SERVER_ROOT}/sslcerts/domain.crt"
SSLCertificateKeyFile "${MOD_WSGI_SERVER_ROOT}/sslcerts/domain.key"
</virtualhost>
:
<IfDefine !ONE_PROCESS>
WSGIRestrictEmbedded On
WSGISocketPrefix /usr/local/webapp/wsgi
<IfDefine MOD_WSGI_MULTIPROCESS>
:
</IfDefine>
<IfDefine !MOD_WSGI_MULTIPROCESS>
WSGIDaemonProcess localhost:80 \
display-name='(wsgi:localhost:80:0)' \
home='/usr/local/webapp' \
threads=5 \
maximum-requests=0 \
python-path='' \
python-eggs='/usr/local/webapp/python-eggs' \
lang='en_US.UTF-8' \
locale='en_US.UTF-8' \
listen-backlog=100 \
queue-timeout=45 \
socket-timeout=60 \
connect-timeout=15 \
request-timeout=60 \
inactivity-timeout=0 \
startup-timeout=15 \
deadlock-timeout=60 \
graceful-timeout=15 \
eviction-timeout=0 \
shutdown-timeout=5 \
send-buffer-size=0 \
receive-buffer-size=0 \
response-buffer-size=0 \
server-metrics=Off
</IfDefine>
</IfDefine>
: