Hi Dave,
I run Pootle in Apache 2.4 on latest Debian. It took me a while to find
the right configuration as well.
First, you need to install Pootle as described in the documentation.
Then create a virtual host container like below. It supposes that pootle
is installed in /var/www/pootle/env. We use /data/pootle for storing the
po files and the local settings.
pootle.conf:
WSGIPythonOptimize 1
<VirtualHost *[**ipadress]*:80>
ServerName *[servername]*
ErrorLog /var/log/apache2/pootle-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog /var/log/apache2/pootle-access.log combined
#
--------------------------------------------------------------------------------------------
# point at the wsgi loader script
WSGIScriptAlias / /var/www/pootle/wsgi.py
# The following two optional lines enables "daemon mode" which limits the
# number of processes and therefore also keeps memory use more predictable
WSGIDaemonProcess pootle processes=2 threads=3 stack-size=1048576
maximum-requests=500 inactivity-timeout=300 display-name=%{GROUP}
python-path=/var/www/pootle/env/lib/python2.7/site-packages
WSGIProcessGroup pootle
SetEnv POOTLE_SETTINGS /data/pootle/settings/90-local.conf
# Set expiration for some types of files.
# This might require enabling the 'expires' module.
ExpiresActive On
ExpiresByType image/jpg "access plus 2 hours"
ExpiresByType image/png "access plus 2 hours"
ExpiresByType text/css "access plus 10 years"
ExpiresByType application/x-javascript "access plus 10 years"
# Optimal caching by proxies.
# This might require enabling the 'headers' module.
Header set Cache-Control "public"
Alias /assets
/var/www/pootle/env/lib/python2.7/site-packages/pootle/assets
<Directory
"/var/www/pootle/env/lib/python2.7/site-packages/pootle/assets/">
Order deny,allow
Allow from all
</Directory>
Alias /export /var/www/pootle/env/lib/python2.7/site-packages/pootle/po
<Directory "/var/www/pootle/env/lib/python2.7/site-packages/pootle/po>
Order deny,allow
Allow from all
</Directory>
<Location /export>
SetOutputFilter DEFLATE
Options Indexes
</Location>
</VirtualHost>
Regards,
Edwin
On 2017-06-15 22:05, Dave Nelson wrote:
Hello,
I am wanting to install Pootle on a bare-metal web server for production
use, on a domain name on the Internet, under Ubuntu 16.04.
I have seen the installation documentation at
http://docs.translatehouse.org/projects/pootle/en/latest/server/installation.html
but it's not for the faint-hearted. Notably, it seems more intended for
setting up a demo Pootle server on a local machine. In particular, it
doesn't seem to give any details about configuring a proxy to expose Pootle
via Apache2 or Nginx.
I am a translator, and do have some hands-on experience setting up Open
Source packages, but I'm not at developer level, which seems to be the
level that the existing Pootle documentation targets.
Is anyone willing to talk me through the process here on this list, or able
to point me at a good how-to? (My own Googling uncovered nothing that
solved the problem for me.
I'll be happy to repay any help by providing a detailed write-up of the
process for Ubuntu 16.04 or work on the project's documentation.
Regards, and thanks in advance for any help,
Dave Nelson
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle