[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problema Encoding e GET Apache2 SSI



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Buongiorno a tutti,
ho un server Debian Lenny con Apache2 + mod_perl dove gira EPrints.
Nella pagina principale ho due SSI #virtual che chiamano i rispettivi
cgi-bin ed includono i risultati nella pagina web:

    <div class="div_intro">
        <div class="roundbox">
            <h1>Ultime aggiunte</h1>
            <!--#include virtual="/cgi/latest?output=inline&limit=2" -->
        </div>
    </div><div class="div_news">
        <div class="roundbox">
            <h1>News</h1>
            <!--#include virtual="/cgi/news?output=inline" -->
        </div>
    </div>

il problema principale è che ai cgi-bin non arrivano le variabili GET
(in questi casi, non arriva output=inline e limit=2).
Il secondo problema è che questi cgi stampano un output in UTF-8 che
viene però "convertito" in ISO8859 causando problemi con le accentate
(l'encoding della pagina è UTF-8)

Se richiamo i cgi direttamente tutto funziona come dovrebbe.

La configurazione dell'host virtuale è la seguente:

<VirtualHost *:80>
    ServerName xxx.it
    ServerAdmin xxxx

     <Location "">
        PerlSetVar EPrints_ArchiveID oasi

        AddOutputFilter INCLUDES .html
        Options +ExecCGI +Includes
        Order allow,deny
        Allow from all
    </Location>

    # Note that PerlTransHandler can't go inside
    # a "Location" block as it occurs before the
    # Location is known.
    PerlTransHandler +EPrints::Apache::Rewrite

    ErrorLog "/var/log/apache2/oasi-error_log"
    CustomLog "/var/log/apache2/oasi-access_log" combined

    <Location "/sword-app/atom">
        SetHandler perl-script
        PerlResponseHandler EPrints::Sword::AtomHandler
    </Location>

    <Location "/profile">
        SetHandler perl-script
        PerlResponseHandler EPrints::Plugin::MePrints::MePrintsHandler
    </Location>

</VirtualHost>

idee o suggerimenti ?

Grazie, Michele


- --
|| Michele Pinassi
|| System Manager Area Sistema Biblioteche - UniSi
|| https://sites.google.com/a/unisi.it/o-zone/
|| Assistenza: +39.577.232299 (int. 2299)
|| Personale: +39.577.232477 (int. 2477)
|| FAX: +39.577.232430 (int. 2430)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwOEiIACgkQFPw35TwkuY7rTQCgiUaF6CKke0WuwH1/r5NZ59D6
+8YAoNTCuImlDJ1jgdir3oZMrjsxTJyF
=555N
-----END PGP SIGNATURE-----
begin:vcard
fn:Michele Pinassi
n:Pinassi;Michele
org;quoted-printable:Universit=C3=A0 degli Studi di Siena;Sistema Bibliotecario di Ateneo
adr:;;Via Banchi di Sotto 55;Siena;SI;53100;Italy
email;internet:michele.pinassi@unisi.it
title:System Manager
tel;work:0577 232477
tel;fax:0577 232430
x-mozilla-html:FALSE
url:https://sites.google.com/a/unisi.it/o-zone/
version:2.1
end:vcard


Reply to: