Autor | Zpráva | ||
---|---|---|---|
Silver8000 Profil |
#1 · Zasláno: 23. 3. 2015, 18:43:53
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 |
#2 · Zasláno: 23. 3. 2015, 19:09:53
Používáš konfigurační volbu
XSendFilePath ?
|
||
Silver8000 Profil |
#3 · Zasláno: 23. 3. 2015, 19:13:01
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 |
#4 · Zasláno: 23. 3. 2015, 20:05:49
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 |
#5 · Zasláno: 23. 3. 2015, 21:52:36
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> |
||
Časová prodleva: 10 let
|
0