Advertisement
Guest User

Untitled

a guest
Nov 26th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. #
  2. # This is the main Apache HTTP server configuration file. It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do. They're here only as hints or reminders. If you are unsure
  11. # consult the online docs. You have been warned.
  12.  
  13. ServerRoot "/etc/httpd"
  14. Listen 127.0.0.1:8000
  15.  
  16. #LoadModule dummy_module /usr/lib/apache/mod_dummy.so
  17. LoadModule php5_module /usr/lib/apache/libphp5.so
  18. #LoadModule authz_host_module modules/mod_authz_host.so
  19. #LoadModule authz_host /etc/httpd/modules/mod_authz_host.so
  20. LoadModule auth_basic_module modules/mod_auth_basic.so
  21. LoadModule auth_digest_module modules/mod_auth_digest.so
  22. LoadModule authn_file_module modules/mod_authn_file.so
  23. LoadModule authn_alias_module modules/mod_authn_alias.so
  24. LoadModule authn_anon_module modules/mod_authn_anon.so
  25. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  26. LoadModule authn_default_module modules/mod_authn_default.so
  27. LoadModule authz_host_module modules/mod_authz_host.so
  28. LoadModule authz_user_module modules/mod_authz_user.so
  29. LoadModule authz_owner_module modules/mod_authz_owner.so
  30. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  31. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  32. LoadModule authz_default_module modules/mod_authz_default.so
  33. LoadModule mime_module modules/mod_mime.so
  34. LoadModule alias_module modules/mod_alias.so
  35. LoadModule negotiation_module modules/mod_negotiation.so
  36. LoadModule autoindex_module modules/mod_autoindex.so
  37. LoadModule log_config_module modules/mod_log_config.so
  38. LoadModule logio_module modules/mod_logio.so
  39. LoadModule ssl_module modules/mod_ssl.so
  40. LoadModule dav_module modules/mod_dav.so
  41. LoadModule dav_fs_module modules/mod_dav_fs.so
  42. LoadModule deflate_module modules/mod_deflate.so
  43. LoadModule setenvif_module modules/mod_setenvif.so
  44. LoadModule headers_module modules/mod_headers.so
  45. LoadModule rpaf_module modules/mod_rpaf-2.0.so
  46. LoadModule dir_module modules/mod_dir.so
  47. LoadModule suexec_module modules/mod_suexec.so
  48.  
  49. Include /etc/httpd/conf/extra/httpd-phpmodules.conf
  50.  
  51. User apache
  52. Group apache
  53.  
  54. ServerAdmin admin@localhost
  55. DocumentRoot "/var/www/html"
  56.  
  57. <Directory /home/*>
  58. AllowOverride All
  59. Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
  60. <Limit GET POST OPTIONS PROPFIND>
  61. Order allow,deny
  62. Allow from all
  63. </Limit>
  64. <LimitExcept GET POST OPTIONS PROPFIND>
  65. Order deny,allow
  66. Deny from all
  67. </LimitExcept>
  68. </Directory>
  69.  
  70. <Directory />
  71. Options All
  72. AllowOverride All
  73. </Directory>
  74.  
  75. <Directory "/var/www/html">
  76. Options -Indexes FollowSymLinks
  77. AllowOverride All
  78. Order allow,deny
  79. Allow from all
  80. <IfModule mod_suphp.c>
  81. suPHP_Engine On
  82. suPHP_UserGroup webapps webapps
  83. SetEnv PHP_INI_SCAN_DIR
  84. </IfModule>
  85. </Directory>
  86.  
  87. <IfModule dir_module>
  88. DirectoryIndex index.php index.htm index.shtml index.html index.php5 index.php4 index.php3 index.phtml index.cgi
  89. </IfModule>
  90.  
  91. <FilesMatch "^\.ht">
  92. Order allow,deny
  93. Deny from all
  94. Satisfy All
  95. </FilesMatch>
  96.  
  97. ErrorLog /var/log/httpd/error_log
  98. LogLevel warn
  99.  
  100. <IfModule log_config_module>
  101. #replace %b with %O for more accurate logging
  102. <IfModule mod_logio.c>
  103. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  104. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  105. LogFormat "%O %I" bytes
  106.  
  107. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  108. </IfModule>
  109.  
  110. CustomLog /var/log/httpd/access_log common
  111. </IfModule>
  112.  
  113. <IfModule alias_module>
  114. # Include some DirectAdmin alias
  115. Include conf/extra/httpd-alias.conf
  116. </IfModule>
  117.  
  118. <Directory "/var/www/cgi-bin">
  119. AllowOverride None
  120. Options None
  121. Order allow,deny
  122. Allow from all
  123. </Directory>
  124.  
  125. DefaultType text/plain
  126.  
  127. <IfModule mime_module>
  128. TypesConfig conf/mime.types
  129. AddType application/x-gzip .tgz
  130. AddEncoding x-compress .Z
  131. AddEncoding x-gzip .gz .tgz
  132. AddType application/x-compress .Z
  133. AddType application/x-gzip .gz .tgz
  134. AddHandler cgi-script .cgi
  135. AddHandler type-map var
  136. AddType text/html .shtml
  137. AddOutputFilter INCLUDES .shtml
  138. AddType video/x-ms-asf .avi
  139. AddType video/mpeg .mpg
  140. AddType video/mpeg .mpeg
  141. AddType video/quicktime .mov
  142. AddType video/x-ms-wmv .wmv
  143. </IfModule>
  144.  
  145. #EnableMMAP off
  146. #EnableSendfile off
  147.  
  148. #######################################################################################
  149. # Do not change anything in included files, because they are rewritten by DirectAdmin #
  150. #######################################################################################
  151.  
  152. # This is needed for PHP
  153. Include conf/extra/httpd-php-handlers.conf
  154.  
  155. # Server-pool management (MPM specific)
  156. Include conf/extra/httpd-mpm.conf
  157.  
  158. # Multi-language error messages
  159. Include conf/extra/httpd-multilang-errordoc.conf
  160.  
  161. # Fancy directory listings
  162. Include conf/extra/httpd-autoindex.conf
  163.  
  164. # Language settings
  165. Include conf/extra/httpd-languages.conf
  166.  
  167. # User home directories
  168. #Include conf/extra/httpd-userdir.conf
  169.  
  170. # Real-time info on requests and configuration
  171. Include conf/extra/httpd-info.conf
  172.  
  173. # Virtual hosts
  174. Include conf/extra/httpd-vhosts.conf
  175.  
  176. # Local access to the Apache HTTP Server Manual
  177. #Include conf/extra/httpd-manual.conf
  178.  
  179. # Distributed authoring and versioning (WebDAV)
  180. Include conf/extra/httpd-dav.conf
  181.  
  182. # Various default settings
  183. Include conf/extra/httpd-default.conf
  184.  
  185. # Secure (SSL/TLS) connections
  186. Include conf/extra/httpd-ssl.conf
  187.  
  188. # Deflate module settings
  189. Include conf/extra/httpd-deflate.conf
  190.  
  191. # All the DirectAdmin vhosts
  192. Include conf/extra/directadmin-vhosts.conf
  193.  
  194. # All suPHP directives
  195. Include conf/extra/httpd-suphp.conf
  196.  
  197. # For user configurations not maintained by DirectAdmin. Empty by default.
  198. Include conf/extra/httpd-includes.conf
  199.  
  200. #######################################################################################
  201. # End of included files that are rewritten by DirectAdmin #
  202. #######################################################################################
  203.  
  204. <IfModule ssl_module>
  205. SSLRandomSeed startup builtin
  206. SSLRandomSeed connect builtin
  207. </IfModule>
  208.  
  209.  
  210. #################################### mod_rpaf configuration#####
  211. RPAFenable On
  212. RPAFsethostname Off
  213. RPAFproxy_ips 127.0.0.1
  214. RPAFheader X-Real-IP
  215.  
  216.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement