GTranslate Pro + node + apache2 + proxypass [no problem]
Sep 11, 2013 2:34 pm by tnelson
Sep 11, 2013 2:34 pm by tnelson
Here is my virtualhost config :
<VirtualHost 10.10.10.10:80>
ServerName example.com
ProxyPreserveHost On
ProxyPass /gtranslate/ !
# node service listenning on localhost port 3000
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
DocumentRoot /home/directory_containing_gtranslate
AddDefaultCharset utf-8
# gtranslate config
RewriteEngine on
RewriteRule ^/([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^/([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^/([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
</VirtualHost>
I had to create cache/js wich was missing
Evertything works fine, thanks for this great software. I had to move from google translate because it was hard to add corrections.
Re: GTranslate Pro + node + apache2 + proxypass [no problem]
Sep 12, 2013 10:39 am by Edvard
Sep 12, 2013 10:39 am by Edvard
Hi,
"js" is not a language code, so creating cache/js folder was not necessary. Probably you have js folder which contains javascript script files. You need to make sure that js in not considered as a language code in your rewrite rules.
SIMILAR TOPICS
Gtranslate Multisite | Feb 12, 2019 7:27 am | Replies: 1 | Post by: infact_dat |
Gtranslate: Error with number | Feb 20, 2019 1:20 am | Replies: 1 | Post by: infact_dat |
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not defined | Feb 22, 2019 12:34 pm | Replies: 1 | Post by: oase |
Add-on gtranslate no longer works | Feb 2, 2019 6:01 am | Replies: 1 | Post by: DarylDixon |
Joomshaper Pagebuilder buttons Link edit problem | Jan 11, 2019 10:04 am | Replies: 1 | Post by: kumatest |