Project

General

Profile

Tâche #32940

Scénario #32897: eole-fog configuration

Ajouter le paramètre allow_url_fopen à la configuration apache

Added by Matthieu Lamalle 2 months ago. Updated 25 days ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
07/07/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Associated revisions

Revision e46323d2 (diff)
Added by Matthieu Lamalle 2 months ago

ajout allow_url_fopen à la conf apache ref #32940

Revision 5494d005 (diff)
Added by Joël Cuissinat 25 days ago

Move php_admin_flag in <Directory> tag

Ref: #32940

History

#1 Updated by Matthieu Lamalle 2 months ago

  • Status changed from Nouveau to En cours

#2 Updated by Matthieu Lamalle 2 months ago

  • Subject changed from Ajouter le template à la configuration apache to Ajouter le paramètre allow_url_fopen à la configuration apache

#3 Updated by Matthieu Lamalle 2 months ago

  • Status changed from En cours to À valider

#4 Updated by Ludwig Seys about 1 month ago

  • Status changed from À valider to Résolu

#5 Updated by Joël Cuissinat 30 days ago

  • Assigned To set to Matthieu Lamalle
  • % Done changed from 0 to 100
~/git/eole-fog$ git branch -r --contains  e46323d2  
  origin/2.8.0/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.8.0/master
  origin/dist/eole/2.8.1/master
  origin/master

#6 Updated by Joël Cuissinat 25 days ago

root@eolebase:~# cat /etc/apache2/sites-enabled/001-fog.conf 
<VirtualHost *:80>
    <FilesMatch "\.php$">
        SetHandler "proxy:fcgi://127.0.0.1:9000/" 
    </FilesMatch>
    ServerName 192.168.0.24
    ServerAlias eolebase.ac-test.fr
    php_admin_flag allow_url_fopen On
    DocumentRoot /var/www/
    KeepAlive Off
    <Directory /var/www/fog/>
        DirectoryIndex index.php index.html index.htm
    </Directory>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
    RewriteRule ^/fog/(.*)$ /fog/api/index.php [QSA,L]
</VirtualHost>

#7 Updated by Joël Cuissinat 25 days ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Avec le nouveau paquet eole-fog 2.8.0-11, ça donne :

root@eolebase:~# cat /etc/apache2/sites-enabled/001-fog.conf 
<VirtualHost *:80>
    <FilesMatch "\.php$">
        SetHandler "proxy:fcgi://127.0.0.1:9000/" 
    </FilesMatch>
    ServerName 192.168.0.24
    ServerAlias eolebase.ac-test.fr
    DocumentRoot /var/www/
    KeepAlive Off
    <Directory /var/www/fog/>
        DirectoryIndex index.php index.html index.htm
        php_admin_flag allow_url_fopen On
    </Directory>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
    RewriteRule ^/fog/(.*)$ /fog/api/index.php [QSA,L]
</VirtualHost>

Also available in: Atom PDF