Autor Zpráva
Silver8000
Profil
Cau lidi resim takovou prkotinu :
pouzivam XSendFile mod kterej funguje pefektne ale az na to ze nemohu odesilat soubory mimo web slozku cili z vyssi urovne slozky.
Potrebuju vedet jak nakonfigurovat pristup k souborum mimo slozku kde se nachazi aplikace ktera to ma obsluhovat.
Diky Silver8000
Davex
Profil
Používáš konfigurační volbu XSendFilePath?
Silver8000
Profil
Pokousim se ale nefunguje.
Vypis konfigurace htaccess :
<IfModule mod_xsendfile.c>
    <Directory "X:/">
    # Enable the use of MOD_XSendFile.
    XSendFile On
    # Allow MOD_XSendFile to access files in the directory
    # parallel to the web root (images). If we don't set this,
    # the MOD_XSendFile will only be able to access files in
    # or below the defined web root.
    #
    # NOTE: This used to be the property, XSendFileAllowAbove,
    # but it has been deprecated in newer versions of the
    # XSendFile module.
    XSendFilePath "X:/"
    </Directory>
</IfModule>
Davex
Profil
1) Lokální nastavení v souboru .htaccess nemůže obsahovat sekci <Directory> a vztahuje se pouze k danému adresáři a podadresářům.
2) Konfigurační volba XSendFilePath není dle dokumentace v souboru .htaccess povolena.

Zkus nastavení přesunout do globální konfigurace Apache.
Silver8000
Profil
Diky za radu,ta mi pomohla.
Jeste posledni otazka :
Kdyz chci mit vice slozek pristupnych muzu pridat dalsi <Directory></Directory> ?
Priklad :

<IfModule mod_xsendfile.c>
    # Enable the use of MOD_XSendFile.
    XSendFile On
    <Directory "X:/">
    # Allow MOD_XSendFile to access files in the directory
    # parallel to the web root (images). If we don't set this,
    # the MOD_XSendFile will only be able to access files in
    # or below the defined web root.
    #
    # NOTE: This used to be the property, XSendFileAllowAbove,
    # but it has been deprecated in newer versions of the
    # XSendFile module.
    XSendFilePath "X:/"
    </Directory>
        # Another added directory.
        <Directory "Z:/">
          XSendFilePath "Z:/"
        </Directory>
</IfModule>

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0