Seafile - Apache2 - mod_proxy_fcgi - PATH_INFO handling

  • Guten Tag,


    aufgrund von Leer- und Umlautzeichen Problemen mit dem apache 2.4.10 würde mich interessieren ob es möglich ist dass Imscp nativ eine neuere Version installiert?


    Gruß und Dank

    Edited once, last by Pimbo ().

  • @Pimbo


    Could you clarify a bit?


    Thanks.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hallo Pimbo,
    könntest bitte mehr Infos zu dem genannten Problem geben? Ich arbeite mit mehreren Sprachen gemischt und kenne das erwähnte Problem nur aus der Zeit ende 1990er bis mitte 2000er Jahre.
    Dafür ist aber auch in deinem Beitrag im Wort würde der Umlaut merkwürdig.
    Danke

  • @Pimbo


    Could you clarify a bit?


    Thanks.

    for sure:


    there is a bug regarding to spaces and umlauts connected to apache 2.4.10 which leads to missing files and problems in software like seafile and moodle. it seems to be fixed in 2.4.12. please have a look on the following two pages


    https://github.com/haiwen/seafile/issues/1563


    https://forum.seafile.com/t/fo…paces-and-or-umlauts/1062

  • @Pimbo


    Ok. I'll investigate and if needed, I'll add a patch into our installer which is able to recompile any apache module by itself.


    We do have already a postinstall task for patching mod_proxy_fcgi


    See

    See also:


    The patch that I'll backport

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hoppla, sorry. Ich hatte deine Links gar nicht angeschaut...


    Ich habe mit Ubuntu 14.04 ein ähnliches Problem und löse das mit FastCGI.


    FastCGIExternalServer /var/www/virtual/example.com/htdocs/seahub.fcgi -host 127.0.0.1:8000 kommt in /etc/apache/conf-available (aktivieren nicht vergessen). Dann kommt noch folgendes in /etc/apache2/imscp/example.com.conf.


  • Hoppla, sorry. Ich hatte deine Links gar nicht angeschaut...


    Ich habe mit Ubuntu 14.04 ein ähnliches Problem und löse das mit FastCGI.


    FastCGIExternalServer /var/www/virtual/example.com/htdocs/seahub.fcgi -host 127.0.0.1:8000 kommt in /etc/apache/conf-available (aktivieren nicht vergessen). Dann kommt noch folgendes in /etc/apache2/imscp/example.com.conf.

    You should avoid usage of FastCGIExternalServer (FastCGI module). If we use the proxy_fcgi module instead of the fastcgi module, that is not for nothing ;)


    @Pimbo


    I fixed the issue on my testing Seafile installation. To resume, I've backported the patch from Apache2 upstream repository.


    So what to do for now, awaiting next i-MSCP version?

    • Download the apache2_postinst.sh script that is attached below somewhere on your system
    • Execute the script as follow: sh apache2_postinst.sh
    • Add the following configuration statement for your seahub: SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape For instance, my seafile vhost file is as follow:

    • Start Apache: service apache2 start

    So now for a path with umlaut or space, you should see:


    seafile_found.png


    instead of:


    seafile_not_found.png

    Files

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • A fix has been added in our development branch. See https://github.com/i-MSCP/imsc…f98936250663df03c7082bdbd
    This fix will be part of next release.


    Thank you for your report.
    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206