Guest User

Untitled

a guest
Feb 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. server {
  2. listen *:80y;
  3. server_name .monsite.fr;
  4.  
  5. root /homme/www/monsite;
  6. index index.html;
  7.  
  8. # Cette "Location" n'est accessible qu'en interne, on ne peut pas y
  9. # accéder directement depuis le navigateur.
  10. # ici les fichiers se trouveront dans /home/www/download/ISO/
  11. location /ISO/ {
  12. root /home/www/download/;
  13. internal;
  14. }
  15.  
  16. # Activation de PHP pour download.php
  17. location ~* ^/(?:download)\.php$ {
  18. try_files $uri = 404;
  19. include fastcgi_params;
  20. fastcgi_pass php5-fpm-sock;
  21. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22. }
  23.  
  24. # Tout autre fichier .php est interdit d'accès.
  25. location ~* ^.+\.php$ {
  26. return 404;
  27. }
  28.  
  29. }
Add Comment
Please, Sign In to add comment