linccce

The Required confs

Oct 20th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <IfModule proxy_fcgi_module>
  2. # Enable http authorization headers
  3. <IfModule setenvif_module>
  4. SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
  5. </IfModule>
  6.  
  7. <FilesMatch ".+\.ph(p[3457]?|t|tml)$">
  8. SetHandler "proxy:unix:/run/php/php7.0-useris.sock|fcgi://localhost"
  9. </FilesMatch>
  10. <FilesMatch ".+\.phps$">
  11. # Deny access to raw php sources by default
  12. # To re-enable it's recommended to enable access to the files
  13. # only in specific virtual host or directory
  14. Require all denied
  15. </FilesMatch>
  16. # Deny access to files without filename (e.g. '.php')
  17. <FilesMatch "^\.ph(p[3457]?|t|tml|ps)$">
  18. Require all denied
  19. </FilesMatch>
  20. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment