You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2007-11-19 11:49:08

gaio
Member
From: Pordenone, Italy
Registered: 2006-09-20
Posts: 37

0.68 and Apache2, trouble downloading attachments...

Past month i've upgrade my debian sarge to etch, switching from apache1 to apache2.
Only now i've noted that attachments are no more 'downloadable' but works apart this.

I can upload them, but if i click on an attachement there's probably a wrong content type because the conytent (eg, a PDF) are simply opened as a raw text on the browser window.

My apache2 virtual host confing are:

# redirect su SSL.
#
<VirtualHost *:80>
        ServerName              helpdesk.sv.lnf.it
        ServerAlias             helpdesk
        ServerAdmin             ced (at) sv.lnf.it
        Redirect        /       https://helpdesk.sv.lnf.it/

        ErrorLog                /var/log/apache2/glpi-error.log
        TransferLog             /var/log/apache2/glpi-access.log
</VirtualHost>


<VirtualHost *:443>

        SSLEngine               on
        SSLCertificateFile      /etc/ssl/certs/LNFFVGInvernomuto.pem
        SSLCertificateKeyFile   /etc/ssl/private/LNFFVGInvernomuto.pem

        # see http://httpd.apache.org/docs-2.0/ssl/ssl_howto.html for the
        # meaning of below.
        # The following enables only the seven strongest ciphers.
        SSLProtocol             all
        SSLCipherSuite          HIGH:MEDIUM

        ServerName              helpdesk.sv.lnf.it
        ServerAlias             helpdesk
        ServerAdmin             ced (at) sv.lnf.it

        LogLevel                warn
        #LogLevel               debug
        #CustomLog              /var/log/apache2/glpi-custom.log combined
        ErrorLog                /var/log/apache2/glpi-error.log
        TransferLog             /var/log/apache2/glpi-access.log
        ServerSignature         On

        DocumentRoot            /usr/local/share/glpi

        # Configurazione di PHP...
        #
        php_flag display_errors off
        php_flag log_errors on
        php_flag file_uploads on
        php_value upload_max_filesize 5M
        php_value max_execution_time 60
        php_value max_input_time 30
        php_value memory_limit 32M
        php_flag register_globals off
        php_flag safe_mode off
        # Se serve, abilitare, vedi: http://www.php.net/manual/it/ini.core.p … ility-mode
        php_flag zend.ze1_compatibility_mode off
        php_value open_basedir "/usr/local/share/glpi:/srv/glpi"
        php_value include_path ".:/usr/share/php/"

        <Directory /usr/local/share/glpi>
                Options +FollowSymLinks -Indexes
                AllowOverride None
                order allow,deny
                allow from all
                DirectoryIndex index.html index.php

                <Files ~ "\.inc*">
                        Order allow,deny
                        Deny from all
                </Files>
        </Directory>

        Alias /files/ "/srv/glpi/files/"
        <Directory /srv/glpi/files>
                Options -Indexes
                AllowOverride None
                deny from all
        </Directory>

</VirtualHost>


please help me.

Offline

Board footer

Powered by FluxBB