Forum Archive - GTranslate Pro + node + apache2 + proxypass [no problem]

GTranslate Pro + node + apache2 + proxypass [no problem]
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
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 MultisiteFeb 12, 2019 7:27 amReplies: 1Post by: infact_dat
Gtranslate: Error with numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not definedFeb 22, 2019 12:34 pmReplies: 1Post by: oase
Add-on gtranslate no longer worksFeb 2, 2019 6:01 amReplies: 1Post by: DarylDixon
Joomshaper Pagebuilder buttons Link edit problemJan 11, 2019 10:04 amReplies: 1Post by: kumatest

Try GTranslate with a free 15 day trial