Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen *:80y;
- server_name .monsite.fr;
- root /homme/www/monsite;
- index index.html;
- # Cette "Location" n'est accessible qu'en interne, on ne peut pas y
- # accéder directement depuis le navigateur.
- # ici les fichiers se trouveront dans /home/www/download/ISO/
- location /ISO/ {
- root /home/www/download/;
- internal;
- }
- # Activation de PHP pour download.php
- location ~* ^/(?:download)\.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass php5-fpm-sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- # Tout autre fichier .php est interdit d'accès.
- location ~* ^.+\.php$ {
- return 404;
- }
- }
Add Comment
Please, Sign In to add comment