Advertisement
Guest User

Untitled

a guest
Sep 25th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1.  
  2. server {
  3. listen 18040;
  4. server_name myownserver;
  5.  
  6. root /home/admirdante/www;
  7. index index.php index.html index.htm;
  8. charset utf-8;
  9.  
  10. access_log off;
  11. error_log /dev/null;
  12.  
  13. location ~ [^/]\.php(/|$) {
  14. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  15. if (!-f $document_root$fastcgi_script_name) {
  16. return 404;
  17. }
  18. # Mitigate https://httpoxy.org/ vulnerabilities
  19. fastcgi_param HTTP_PROXY "";
  20. fastcgi_index index.php;
  21. # include the fastcgi_param setting
  22. include conf/fastcgi_params;
  23.  
  24. # SCRIPT_FILENAME parameter is used for PHP FPM determining
  25. # the script name. If it is not set in fastcgi_params file,
  26. # i.e. /etc/nginx/fastcgi_params or in the parent contexts,
  27. # please comment off following line:
  28. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  29. fastcgi_pass unix:/etc/seedbox/user/admirdante/var/php7.0-fpm.sock;
  30. auth_basic "Private Area";
  31. auth_basic_user_file /home/admirdante/www/.htpasswd;
  32. }
  33.  
  34. include proxy.d/*.conf;
  35. include error-pages.conf;
  36.  
  37. location / {
  38. autoindex on;
  39. auth_basic "Private Area";
  40. auth_basic_user_file /home/admirdante/www/.htpasswd;
  41. }
  42.  
  43. location ~ /\.ht {
  44. deny all;
  45. }
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement