fork download
  1. # This is the main Apache server configuration file. It contains the
  2. # configuration directives that give the server its instructions.
  3. # See http://h...content-available-to-author-only...e.org/docs/2.4/ for detailed information about
  4. # the directives and /usr/share/doc/apache2/README.Debian about Debian specific
  5. # hints.
  6. #
  7. #
  8. # Summary of how the Apache 2 configuration works in Debian:
  9. # The Apache 2 web server configuration in Debian is quite different to
  10. # upstream's suggested way to configure the web server. This is because Debian's
  11. # default Apache2 installation attempts to make adding and removing modules,
  12. # virtual hosts, and extra configuration directives as flexible as possible, in
  13. # order to make automating the changes and administering the server as easy as
  14. # possible.
  15.  
  16. # It is split into several files forming the configuration hierarchy outlined
  17. # below, all located in the /etc/apache2/ directory:
  18. #
  19. # /etc/apache2/
  20. # |-- apache2.conf
  21. # | `-- ports.conf
  22. # |-- mods-enabled
  23. # | |-- *.load
  24. # | `-- *.conf
  25. # |-- conf-enabled
  26. # | `-- *.conf
  27. # `-- sites-enabled
  28. # `-- *.conf
  29. #
  30. #
  31. # * apache2.conf is the main configuration file (this file). It puts the pieces
  32. # together by including all remaining configuration files when starting up the
  33. # web server.
  34. #
  35. # * ports.conf is always included from the main configuration file. It is
  36. # supposed to determine listening ports for incoming connections which can be
  37. # customized anytime.
  38. #
  39. # * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
  40. # directories contain particular configuration snippets which manage modules,
  41. # global configuration fragments, or virtual host configurations,
  42. # respectively.
  43. #
  44. # They are activated by symlinking available configuration files from their
  45. # respective *-available/ counterparts. These should be managed by using our
  46. # helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
  47. # their respective man pages for detailed information.
  48. #
  49. # * The binary is called apache2. Due to the use of environment variables, in
  50. # the default configuration, apache2 needs to be started/stopped with
  51. # /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
  52. # work with the default configuration.
  53.  
  54. ServerName 127.0.0.1
  55.  
  56. AddHandler cgi-script .cgi .pl
  57. <Files ~ "\.pl$">
  58. Options +ExecCGI
  59. </Files>
  60. <Files ~ "\.cgi$">
  61. Options +ExecCGI
  62. </Files>
  63.  
  64. <IfModule mod_perl.c>
  65. <IfModule mod_alias.c>
  66. Alias /perl/ /home/sly/host/perl/
  67. </IfModule>
  68. <Location /perl>
  69. SetHandler perl-script
  70. PerlHandler Apache::Registry
  71. Options +ExecCGI
  72. </Location>
  73. </IfModule>
  74.  
  75. <Files ~ "\.pl$">
  76. Options +ExecCGI
  77. </Files>
  78.  
  79.  
  80. # Global configuration
  81. #
  82.  
  83. #
  84. # ServerRoot: The top of the directory tree under which the server's
  85. # configuration, error, and log files are kept.
  86. #
  87. # NOTE! If you intend to place this on an NFS (or otherwise network)
  88. # mounted filesystem then please read the Mutex documentation (available
  89. # at <URL:http://h...content-available-to-author-only...e.org/docs/2.4/mod/core.html#mutex>);
  90. # you will save yourself a lot of trouble.
  91. #
  92. # Do NOT add a slash at the end of the directory path.
  93. #
  94. #ServerRoot "/etc/apache2"
  95.  
  96. ServerName localhost
  97.  
  98. #
  99. # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
  100. #
  101. Mutex file:${APACHE_LOCK_DIR} default
  102.  
  103. #
  104. # PidFile: The file in which the server should record its process
  105. # identification number when it starts.
  106. # This needs to be set in /etc/apache2/envvars
  107. #
  108. PidFile ${APACHE_PID_FILE}
  109.  
  110. #
  111. # Timeout: The number of seconds before receives and sends time out.
  112. #
  113. Timeout 300
  114.  
  115. #
  116. # KeepAlive: Whether or not to allow persistent connections (more than
  117. # one request per connection). Set to "Off" to deactivate.
  118. #
  119. KeepAlive On
  120.  
  121. #
  122. # MaxKeepAliveRequests: The maximum number of requests to allow
  123. # during a persistent connection. Set to 0 to allow an unlimited amount.
  124. # We recommend you leave this number high, for maximum performance.
  125. #
  126. MaxKeepAliveRequests 100
  127.  
  128. #
  129. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  130. # same client on the same connection.
  131. #
  132. KeepAliveTimeout 5
  133.  
  134.  
  135. # These need to be set in /etc/apache2/envvars
  136. User ${APACHE_RUN_USER}
  137. Group ${APACHE_RUN_GROUP}
  138.  
  139. #
  140. # HostnameLookups: Log the names of clients or just their IP addresses
  141. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  142. # The default is off because it'd be overall better for the net if people
  143. # had to knowingly turn this feature on, since enabling it means that
  144. # each client request will result in AT LEAST one lookup request to the
  145. # nameserver.
  146. #
  147. HostnameLookups Off
  148.  
  149. # ErrorLog: The location of the error log file.
  150. # If you do not specify an ErrorLog directive within a <VirtualHost>
  151. # container, error messages relating to that virtual host will be
  152. # logged here. If you *do* define an error logfile for a <VirtualHost>
  153. # container, that host's errors will be logged there and not here.
  154. #
  155. ErrorLog ${APACHE_LOG_DIR}/error.log
  156.  
  157. #
  158. # LogLevel: Control the severity of messages logged to the error_log.
  159. # Available values: trace8, ..., trace1, debug, info, notice, warn,
  160. # error, crit, alert, emerg.
  161. # It is also possible to configure the log level for particular modules, e.g.
  162. # "LogLevel info ssl:warn"
  163. #
  164. LogLevel warn
  165.  
  166. # Include module configuration:
  167. IncludeOptional mods-enabled/*.load
  168. IncludeOptional mods-enabled/*.conf
  169.  
  170. # Include list of ports to listen on
  171. Include ports.conf
  172.  
  173.  
  174. # Sets the default security model of the Apache2 HTTPD server. It does
  175. # not allow access to the root filesystem outside of /usr/share and /var/www.
  176. # The former is used by web applications packaged in Debian,
  177. # the latter may be used for local directories served by the web server. If
  178. # your system is serving content from a sub-directory in /srv you must allow
  179. # access here, or in any related virtual host.
  180. <Directory />
  181. Options FollowSymLinks
  182. AllowOverride None
  183. Require all denied
  184. </Directory>
  185.  
  186. <Directory /usr/share>
  187. AllowOverride None
  188. Require all granted
  189. </Directory>
  190.  
  191. <Directory /var/www/>
  192. Options Indexes FollowSymLinks
  193. AllowOverride None
  194. Require all granted
  195. </Directory>
  196.  
  197. #<Directory /srv/>
  198. # Options Indexes FollowSymLinks
  199. # AllowOverride None
  200. # Require all granted
  201. #</Directory>
  202.  
  203.  
  204.  
  205.  
  206. # AccessFileName: The name of the file to look for in each directory
  207. # for additional configuration directives. See also the AllowOverride
  208. # directive.
  209. #
  210. AccessFileName .htaccess
  211.  
  212. #
  213. # The following lines prevent .htaccess and .htpasswd files from being
  214. # viewed by Web clients.
  215. #
  216. <FilesMatch "^\.ht">
  217. Require all denied
  218. </FilesMatch>
  219.  
  220.  
  221. #
  222. # The following directives define some format nicknames for use with
  223. # a CustomLog directive.
  224. #
  225. # These deviate from the Common Log Format definitions in that they use %O
  226. # (the actual bytes sent including headers) instead of %b (the size of the
  227. # requested file), because the latter makes it impossible to detect partial
  228. # requests.
  229. #
  230. # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
  231. # Use mod_remoteip instead.
  232. #
  233. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  234. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  235. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  236. LogFormat "%{Referer}i -> %U" referer
  237. LogFormat "%{User-agent}i" agent
  238.  
  239. # Include of directories ignores editors' and dpkg's backup files,
  240. # see README.Debian for details.
  241.  
  242. # Include generic snippets of statements
  243. IncludeOptional conf-enabled/*.conf
  244.  
  245. # Include the virtual host configurations:
  246. IncludeOptional sites-enabled/*.conf
  247.  
  248. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty