Giter Site home page Giter Site logo

Comments (4)

forum69 avatar forum69 commented on July 4, 2024

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 $url.'://'.$SERVER["SERVER_NAME"].url_for ('/').$this->getHash ();/

MODIFIED :
138 return $url.'://'."filez.domaine.fr".url_for ('/').$this->getHash ();

from filez.

MaximeC avatar MaximeC commented on July 4, 2024

Comment est la conf d'Apache ? filez est sur un vhost ?

from filez.

forum69 avatar forum69 commented on July 4, 2024

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.

ArnaudD avatar ArnaudD commented on July 4, 2024

J'ai ajouté un paramètre "force_fqdn" facultatif à mettre dans la section [app] de filez.ini

from filez.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.