Changes between Version 1 and Version 2 of jazz/08-04-25


Ignore:
Timestamp:
Apr 22, 2008, 12:36:45 PM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/08-04-25

    v1 v2  
     1 * 讓 Pootle 中文翻譯網站可以同時支援 80 跟 8080 port
     2   * [源起] 由於 pootle 是使用 Python 撰寫的 PO 翻譯網頁介面,雖然可以直接用 --port=80 的方式強制執行, 但如果加在 /etc/default/pootle 的 POOTLE_OPTIONS 中, 卻會遇到權限的問題.
     3   * [參考]
     4   * 安裝 libapache2-mod-proxy-html
     5{{{
     6# apt-get install libapache2-mod-proxy-html
     7}}}
     8   * 鏈結 proxy.conf , proxy.load, proxy_http.load
     9{{{
     10# cd /etc/apache2/mods-enabled/
     11/etc/apache2/mods-enabled# ln -s ../mods-available/proxy.conf
     12/etc/apache2/mods-enabled# ln -s ../mods-available/proxy.load
     13/etc/apache2/mods-enabled# ln -s ../mods-available/proxy_http.load
     14}}}
     15   * 修改 /etc/apache2/mods-enabled/proxy.conf
    116{{{
    217#!diff
     
    2944         # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    3045}}}
     46   * 編輯 /etc/apache2/sites-enabled/pootle.conf
     47{{{
     48<VirtualHost *:*>
     49 ServerName pootle.nchc.org.tw
     50 ProxyPass /images !
     51 ProxyPass /js !
     52 ProxyPass /pootle.css !
     53 ProxyPass /favicon.ico !
     54 ProxyPass / http://localhost:8080/
     55 ProxyPassReverse / http://localhost:8080/
     56 <Directory proxy:http://localhost:8080/*>
     57     Order deny,allow
     58     Allow from all
     59 </Directory>
     60 ErrorLog /var/log/pootle-error_log
     61 CustomLog /var/log/pootle-access_log common
     62 # Fallback for static html content
     63 DocumentRoot "/usr/share/pootle/html"
     64 <Directory "/usr/share/pootle/html">
     65   Order deny,allow
     66   Allow from all
     67 </Directory>
     68</VirtualHost>
     69}}}