summaryrefslogtreecommitdiffabout
path: root/xml/lingua.conf.in
authorSergey Poznyakoff <gray@gnu.org>2015-01-10 18:14:14 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2015-01-10 18:14:14 (GMT)
commit1c22a86e073d57c4b35ac5b7ffea07aa541141c4 (patch) (side-by-side diff)
treec90f3fc758b5dfc2f8e8fd64f2ef0a87343b3e50 /xml/lingua.conf.in
parent2b99881a880d101ae32a94b3d1e0a792224cb74c (diff)
downloadellinika-1c22a86e073d57c4b35ac5b7ffea07aa541141c4.tar.gz
ellinika-1c22a86e073d57c4b35ac5b7ffea07aa541141c4.tar.bz2
Make it possible to use apache rewrite rules to create nice cgi urls
Example: configure with options: --without-script-suffix --without-script-dir, and add the following to the Apache virtual host configuration: RewriteEngine on RewriteRule ^/dict(.*) /cgi-bin/dict.cgi$1 [H=cgi-script] RewriteRule ^/nea(.*) /cgi-bin/nea.cgi$1 [H=cgi-script] RewriteRule ^/conj(.*) /cgi-bin/conj.cgi$1 [H=cgi-script] All cgi's will then be referred to directly, as in: http://ellinika/dict?lang=pl. * configure.ac (REAL_SCRIPT_SUFFIX): New subst var New options --with-script-suffix, --with-script-dir * src/cgi-bin/.gitignore: Remove cgi * src/cgi-bin/Makefile.am: Rename installed scm's in place * src/ellinika/cgi.scm4 (cgi-program-name): Suffix can be empty. * xml/lingua.conf.in: =SCRIPT_SUFFIX= always begins with dot
Diffstat (limited to 'xml/lingua.conf.in') (more/less context) (ignore whitespace changes)
-rw-r--r--xml/lingua.conf.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/xml/lingua.conf.in b/xml/lingua.conf.in
index d736bcb..87f40e3 100644
--- a/xml/lingua.conf.in
+++ b/xml/lingua.conf.in
@@ -9,7 +9,7 @@
<AUTHOR EMAIL="=PACKAGE_BUGREPORT=" HOMEPAGE="http://gray.gnu.org.ua" />
- <DICT PROG="dict.=SCRIPT_SUFFIX=" />
+ <DICT PROG="dict=SCRIPT_SUFFIX=" />
<BASE HREF="=BASE_HREF=" />
<SEARCH ARGS="(list (lingua:gettext &quot;Search&quot;) (lingua:attr &quot;LINGUA&quot; &quot;LANG&quot;))">
<![CDATA[
@@ -36,7 +36,7 @@
(letrec ((nea (lambda (. args)
(string-append
(lingua:get-cgi-bin)
- "/nea.=SCRIPT_SUFFIX=?lang="
+ "/nea=SCRIPT_SUFFIX=?lang="
(lingua:LANG args)))))
(xmltrans:set-attr "LINGUA" "NEA" nea)))
@@ -46,7 +46,7 @@
(letrec ((conj (lambda (. args)
(string-append
(lingua:get-cgi-bin)
- "/conj.=SCRIPT_SUFFIX=?lang="
+ "/conj=SCRIPT_SUFFIX=?lang="
(lingua:LANG args)))))
(xmltrans:set-attr "LINGUA" "CONJ" conj)))

Return to:

Send suggestions and report system problems to the System administrator.