daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 281 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ServerRoot "/usr/local/apache2"
  2.  
  3. Listen 80
  4.  
  5. LoadModule authn_file_module modules/mod_authn_file.so
  6. LoadModule authn_core_module modules/mod_authn_core.so
  7. LoadModule authz_host_module modules/mod_authz_host.so
  8. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  9. LoadModule authz_user_module modules/mod_authz_user.so
  10. LoadModule authz_core_module modules/mod_authz_core.so
  11. LoadModule access_compat_module modules/mod_access_compat.so
  12. LoadModule auth_basic_module modules/mod_auth_basic.so
  13. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  14. LoadModule filter_module modules/mod_filter.so
  15. LoadModule mime_module modules/mod_mime.so
  16. LoadModule log_config_module modules/mod_log_config.so
  17. LoadModule env_module modules/mod_env.so
  18. LoadModule headers_module modules/mod_headers.so
  19. LoadModule setenvif_module modules/mod_setenvif.so
  20. LoadModule version_module modules/mod_version.so
  21. LoadModule unixd_module modules/mod_unixd.so
  22. LoadModule status_module modules/mod_status.so
  23. LoadModule autoindex_module modules/mod_autoindex.so
  24. LoadModule dir_module modules/mod_dir.so
  25. LoadModule alias_module modules/mod_alias.so
  26. # additional
  27. LoadModule proxy_module modules/mod_proxy.so
  28. LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
  29.  
  30. ServerAdmin you@example.com
  31.  
  32. <Directory />
  33.     AllowOverride none
  34.     Require all denied
  35. </Directory>
  36.  
  37. DocumentRoot "/var/www/html"
  38. <Directory "/var/www/html">
  39.     Options Indexes FollowSymLinks Includes ExecCGI
  40.     AllowOverride All
  41.     Require all granted
  42. </Directory>
  43.  
  44. <IfModule unixd_module>
  45.     User daemon
  46.     Group daemon
  47. </IfModule>
  48.  
  49. <IfModule dir_module>
  50.     DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
  51.                    default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
  52.                    home.php home.pl home.cgi home.asp home.shtml home.html home.htm
  53. </IfModule>
  54.  
  55. <Files ".ht*">
  56.     Require all denied
  57. </Files>
  58.  
  59. <IfModule log_config_module>
  60.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  61.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  62.  
  63.     <IfModule logio_module>
  64.         LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  65.     </IfModule>
  66. </IfModule>
  67.  
  68. <IfModule alias_module>
  69.     ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
  70. </IfModule>
  71.  
  72. <Directory "/usr/local/apache2/cgi-bin">
  73.     AllowOverride All
  74.     Options None
  75.     Require all granted
  76. </Directory>
  77.  
  78. <IfModule headers_module>
  79.     RequestHeader unset Proxy early
  80. </IfModule>
  81.  
  82. <IfModule mime_module>
  83.     TypesConfig conf/mime.types
  84.     AddType application/x-compress .Z
  85.     AddType application/x-gzip .gz .tgz
  86.     AddType text/html .shtml
  87.     AddHandler cgi-script .cgi .pl .asp
  88.     AddOutputFilter INCLUDES .shtml
  89. </IfModule>
  90.  
  91. #
  92. # Настройка FPM
  93. #
  94. <IfModule proxy_module>
  95.     <FilesMatch "\.php$">
  96.         SetHandler  "proxy:fcgi://php:9000"
  97.     </FilesMatch>
  98. </IfModule>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top