1
0

000-default.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <VirtualHost *:80>
  2. #ServerName www.example.com
  3. ServerAdmin webmaster@localhost
  4. ErrorLog ${APACHE_LOG_DIR}/stat-error_log
  5. TransferLog ${APACHE_LOG_DIR}/stat-access_log
  6. #don't enable redirect to HTTPS!!!
  7. RewriteEngine Off
  8. DocumentRoot /opt/Eye/html
  9. <Directory "/opt/Eye/html">
  10. Options -Indexes -FollowSymLinks
  11. AllowOverride All
  12. Require all granted
  13. AddType application/x-httpd-php .php
  14. # Redirect to local php-fpm if mod_php is not available
  15. <IfModule !mod_php8.c>
  16. <IfModule proxy_fcgi_module>
  17. # Enable http authorization headers
  18. <IfModule setenvif_module>
  19. SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
  20. </IfModule>
  21. <FilesMatch ".+\.ph(ar|p|tml)$">
  22. # SetHandler "proxy:unix:/run/php/php8.2-fpm-eye.sock|fcgi://127.0.0.1:9002"
  23. SetHandler "proxy:fcgi://127.0.0.1:9002"
  24. </FilesMatch>
  25. <FilesMatch ".+\.phps$">
  26. # Deny access to raw php sources by default
  27. # To re-enable it's recommended to enable access to the files
  28. # only in specific virtual host or directory
  29. Require all denied
  30. </FilesMatch>
  31. # Deny access to files without filename (e.g. '.php')
  32. <FilesMatch "^\.ph(ar|p|ps|tml)$">
  33. Require all denied
  34. </FilesMatch>
  35. </IfModule>
  36. </IfModule>
  37. </Directory>
  38. <Directory /opt/Eye/html/log>
  39. <IfModule mod_authz_core.c>
  40. Require all denied
  41. </IfModule>
  42. </Directory>
  43. <Directory /opt/Eye/html/tmp>
  44. <IfModule mod_authz_core.c>
  45. Require all denied
  46. </IfModule>
  47. </Directory>
  48. <Directory /opt/Eye/html/session>
  49. <IfModule mod_authz_core.c>
  50. Require all denied
  51. </IfModule>
  52. </Directory>
  53. AddDefaultCharset UTF-8
  54. </VirtualHost>
  55. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet