Comments (4)
j'ai cherché sans succès à utiliser les directives rewriterules sous apache.
Du coup, j'ai modifié le code du fichier File.php pour forcer le positionnement de l'URL avec le FQDN. Je n'ai pas vu d'anomalies dans l'utilisation.
cat -n File.php |grep url
ORIGIN :
137 /*_return
MODIFIED :
138 return $url.'://'."filez.domaine.fr".url_for ('/').$this->getHash ();
from filez.
Comment est la conf d'Apache ? filez est sur un vhost ?
from filez.
J'utilise un virtual host. Voici le fichier de conf :
[root@domain0009 conf]# tail -3 httpd.conf
INCLUDE filez transfert de fichiers
include /etc/httpd/conf/filez.conf
[root@domain0009 conf]# cat -n filez.conf
1 ### INSERTION POUR FILEZ
2
3 <VirtualHost 192.168.112.138>
4 #Alias /filez "/domain0009d11/Apache/www/html/filez"
5 ServerAdmin root@localhost
6 DocumentRoot /var/www/html/filez
7 # DocumentRoot /domain0009d11/Apache/www/html/filez
8 ServerName filez.domain.fr
9
10 ErrorLog /var/log/httpd/filez-error.log
11 CustomLog /var/log/httpd/filez-access.log combined
12 LogLevel warn
13
14
15 DirectoryIndex index.html index.php
16
17 <Directory "/var/www/html/filez">
18 # <Directory "/domain0009d11/Apache/www/html/filez">
19
20 AllowOverride All
21 Options Indexes FollowSymLinks
22 order allow,deny
23 Allow from all
24
25 #Options Indexes Multiviews
26 #AllowOverride None
27 #order allow,deny
28 #Options None
29 #AllowOverride Options FileInfo
30
31
32 # PHP tuning.
33 # Here you can tell for this only specific VHost to allow big files and time to give file
34 # limit upload file to 750 MB
35 php_admin_value post_max_size 750M
36 php_admin_value upload_max_filesize 750M
37 # Allow 600 secondes of PHP execution to allow slow users to download file because PHP need to run
38 # Be careful to not put high value here, 600 is should be enough and 300 could do the trick
39 # We are trying to find a better solution because here we are sensitive to DoS attack. If you have
40 php_admin_value max_execution_time 600
41 # Define a special directory for temporary files during the upload.
42 # PHP use by default /tmp. Tune this variable to fit your need.
43 # Remember, you should have enough space in your tmp/ partition to allow upload of your maximum fil
44 # Again, be careful, bad boys can try to fullfill your tmp partition!
45 php_admin_value upload_tmp_dir "/var/tmp"
46
47
48 # Protect logfiles to be accessed by a web browser
49 # <Directory /var/www/html/filez/log>
50 # Options None
51 # AllowOverride None
52 # order deny,allow
53 # deny from all
54 #
55
56
57
from filez.
J'ai ajouté un paramètre "force_fqdn" facultatif à mettre dans la section [app] de filez.ini
from filez.
Related Issues (20)
- Erreur d'upload de fichier avec PHP7 HOT 3
- La taille du fichier dépasse la limite autorisée
- loggin is successfull but nothing happens
- Share button don't work with Firefox 50
- Mysql 5.7 sql_mode - STRICT_TRANS_TABLES HOT 1
- probleme configuration fileZ HOT 1
- probleme envoie mail HOT 1
- Problème de langue HOT 1
- PHP7 and filez HOT 1
- File list in admin pannel bug
- Gérer les quota par utilisateur et non globalement HOT 1
- How to configure quota per user and not globally HOT 1
- Modification du mot de passe utilisateur
- Error 500
- Non-ASCII characters in filename HOT 1
- Error () iconv_set_encoding(): Use of iconv.internal_encoding is deprecated
- Problème avec Safari sur macOS
- Internal Server Error - Unknown Zend_Ldap option: db_use_global_conf HOT 4
- Peut-on forcer l'utilisation de mot de passe pour l'upload de fichier ?
- Error avec phpCAS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filez.