Mercurial > kallithea
diff docs/setup.rst @ 1252:c8974135732a rhodecode-0.0.1.1.8
docs, and changelog update
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 12 Apr 2011 23:51:04 +0200 |
parents | 2182a2005278 |
children | 0e0fb228867b |
line wrap: on
line diff
--- a/docs/setup.rst Tue Apr 12 20:10:47 2011 +0200 +++ b/docs/setup.rst Tue Apr 12 23:51:04 2011 +0200 @@ -328,10 +328,60 @@ then change <someprefix> into your choosen prefix -Apache's example FCGI config ----------------------------- +Apache's example WSGI+SSL config +-------------------------------- + +virtual host example:: -TODO ! + <VirtualHost *:443> + ServerName hg.domain.eu:443 + DocumentRoot /var/www + + SSLEngine on + SSLCertificateFile /etc/apache2/ssl/hg.domain.eu.cert + SSLCertificateKeyFile /etc/apache2/ssl/hg.domain.eu.key + SSLCertificateChainFile /etc/apache2/ssl/ca.cert + SetEnv HTTP_X_URL_SCHEME https + + Alias /css /home/web/virtualenvs/hg/lib/python2.6/site-packages/rhodecode/public/css + Alias /images /home/web/virtualenvs/hg/lib/python2.6/site-packages/rhodecode/public/images + Alias /js /home/web/virtualenvs/hg/lib/python2.6/site-packages/rhodecode/public/js + + WSGIDaemonProcess hg user=web group=web processes=1 threads=10 display-name=%{GROUP} python-path=/home/web/virtualenvs/hg/lib/python2.6/site-packages + + WSGIPassAuthorization On + WSGIProcessGroup hg + WSGIApplicationGroup hg + WSGIScriptAlias / /home/web/apache/conf/hg.wsgi + + <Directory /home/web/apache/conf> + Order deny,allow + Allow from all + </Directory> + <Directory /var/www> + Order deny,allow + Allow from all + </Directory> + + </VirtualHost> + + <VirtualHost *:80> + ServerName hg.domain.eu + Redirect permanent / https://hg.domain.eu/ + </VirtualHost> + + +HG.WSGI:: + + import os + os.environ["HGENCODING"] = "UTF-8" + + from paste.deploy import loadapp + from paste.script.util.logging_config import fileConfig + + fileConfig('/home/web/virtualenvs/hg/config/production.ini') + application = loadapp('config:/home/web/virtualenvs/hg/config/production.ini' + Other configuration files -------------------------