Guest User

TheAcastus's Apache httpd.conf

a guest
Oct 8th, 2013
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.13 KB | None | 0 0
  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file. It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://www.apache.org/docs/> for detailed information about
  7. # the directives.
  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. # After this file is processed, the server will look for and process
  14. # /var/www/conf/srm.conf and then /var/www/conf/access.conf
  15. # unless you have overridden these with ResourceConfig and/or
  16. # AccessConfig directives here.
  17. #
  18. # The configuration directives are grouped into three basic sections:
  19. # 1. Directives that control the operation of the Apache server process as a
  20. # whole (the 'global environment').
  21. # 2. Directives that define the parameters of the 'main' or 'default' server,
  22. # which responds to requests that aren't handled by a virtual host.
  23. # These directives also provide default values for the settings
  24. # of all virtual hosts.
  25. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  26. # different IP addresses or hostnames and have them handled by the
  27. # same Apache server process.
  28. #
  29. # Configuration and logfile names: If the filenames you specify for many
  30. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  31. # server will use that explicit path. If the filenames do *not* begin
  32. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  33. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  34. # server as "/usr/local/apache/logs/foo.log".
  35. #
  36.  
  37. ### Section 1: Global Environment
  38. #
  39. # The directives in this section affect the overall operation of Apache,
  40. # such as the number of concurrent requests it can handle or where it
  41. # can find its configuration files.
  42. #
  43.  
  44. #
  45. # ServerType is either inetd, or standalone. Inetd mode is only supported on
  46. # Unix platforms.
  47. #
  48. ServerType standalone
  49.  
  50. #
  51. # ServerRoot: The top of the directory tree under which the server's
  52. # configuration, error, and log files are kept.
  53. #
  54. # NOTE! If you intend to place this on an NFS (or otherwise network)
  55. # mounted filesystem then please read the LockFile documentation
  56. # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
  57. # you will save yourself a lot of trouble.
  58. #
  59. # Do NOT add a slash at the end of the directory path.
  60. #
  61. ServerRoot "/var/www"
  62.  
  63. #
  64. # The LockFile directive sets the path to the lockfile used when Apache
  65. # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
  66. # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
  67. # its default value. The main reason for changing it is if the logs
  68. # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
  69. # DISK. The PID of the main server process is automatically appended to
  70. # the filename.
  71. #
  72. #LockFile logs/accept.lock
  73.  
  74. #
  75. # PidFile: The file in which the server should record its process
  76. # identification number when it starts.
  77. #
  78. PidFile logs/httpd.pid
  79. #
  80. # ScoreBoardFile: File used to store internal server process information.
  81. # Not all architectures require this. But if yours does (you'll know because
  82. # this file will be created when you run Apache) then you *must* ensure that
  83. # no two invocations of Apache share the same scoreboard file.
  84. #
  85. ScoreBoardFile logs/apache_runtime_status
  86.  
  87. #
  88. # In the standard configuration, the server will process httpd.conf,
  89. # srm.conf, and access.conf in that order. The latter two files are
  90. # now distributed empty, as it is recommended that all directives
  91. # be kept in a single file for simplicity. The commented-out values
  92. # below are the built-in defaults. You can have the server ignore
  93. # these files altogether by using "/dev/null" (for Unix) or
  94. # "nul" (for Win32) for the arguments to the directives.
  95. #
  96. #ResourceConfig conf/srm.conf
  97. #AccessConfig conf/access.conf
  98.  
  99. #
  100. # Timeout: The number of seconds before receives and sends time out.
  101. #
  102. Timeout 300
  103.  
  104. #
  105. # KeepAlive: Whether or not to allow persistent connections (more than
  106. # one request per connection). Set to "Off" to deactivate.
  107. #
  108. KeepAlive On
  109.  
  110. #
  111. # MaxKeepAliveRequests: The maximum number of requests to allow
  112. # during a persistent connection. Set to 0 to allow an unlimited amount.
  113. # We recommend you leave this number high, for maximum performance.
  114. #
  115. MaxKeepAliveRequests 100
  116.  
  117. #
  118. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  119. # same client on the same connection.
  120. #
  121. KeepAliveTimeout 15
  122.  
  123.  
  124. #
  125. # Server-pool size regulation. Rather than making you guess how many
  126. # server processes you need, Apache dynamically adapts to the load it
  127. # sees --- that is, it tries to maintain enough server processes to
  128. # handle the current load, plus a few spare servers to handle transient
  129. # load spikes (e.g., multiple simultaneous requests from a single
  130. # Netscape browser).
  131. #
  132. # It does this by periodically checking how many servers are waiting
  133. # for a request. If there are fewer than MinSpareServers, it creates
  134. # a new spare. If there are more than MaxSpareServers, some of the
  135. # spares die off. The default values in httpd.conf-dist are probably OK
  136. # for most sites.
  137. #
  138. MinSpareServers 5
  139. MaxSpareServers 10
  140.  
  141. #
  142. # Number of servers to start initially --- should be a reasonable ballpark
  143. # figure.
  144. #
  145. StartServers 5
  146.  
  147. #
  148. # Limit on total number of servers running, i.e., limit on the number
  149. # of clients who can simultaneously connect --- if this limit is ever
  150. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  151. # It is intended mainly as a brake to keep a runaway server from taking
  152. # the system with it as it spirals down...
  153. #
  154. # NOTE: To configure more than 256 clients, you must edit the
  155. # HARD_SERVER_LIMIT entry in httpd.h and recompile
  156. #
  157. MaxClients 150
  158.  
  159. #
  160. # MaxRequestsPerChild: the number of requests each child process is
  161. # allowed to process before the child dies. The child will exit so
  162. # as to avoid problems after prolonged use when Apache (and maybe the
  163. # libraries it uses) leak memory or other resources. On most systems, this
  164. # isn't really needed, but a few (such as Solaris) do have notable leaks
  165. # in the libraries.
  166. #
  167. MaxRequestsPerChild 30
  168.  
  169. #
  170. # Listen: Allows you to bind Apache to specific IP addresses and/or
  171. # ports, in addition to the default. See also the <VirtualHost>
  172. # directive.
  173. #
  174. #Listen 3000
  175. Listen 85.118.134.205:80
  176.  
  177. #
  178. # BindAddress: You can support virtual hosts with this option. This directive
  179. # is used to tell the server which IP address to listen to. It can either
  180. # contain "*", an IP address, or a fully qualified Internet domain name.
  181. # See also the <VirtualHost> and Listen directives.
  182. #
  183. # Use of BindAddress here would be useful in a case where a seperate
  184. # instance of Apache is being run which should respond to specific requests.
  185. # For more info see: Apache Server Virtual Host Support.
  186. #
  187. BindAddress *
  188.  
  189. #
  190. # Dynamic Shared Object (DSO) Support
  191. #
  192. # To be able to use the functionality of a module which was built as a DSO you
  193. # have to place corresponding `LoadModule' lines at this location so the
  194. # directives contained in it are actually available _before_ they are used.
  195. # Please read the file README.DSO in the Apache 1.3 distribution for more
  196. # details about the DSO mechanism and run `httpd -l' for the list of already
  197. # built-in (statically linked and thus always available) modules in your httpd
  198. # binary.
  199. #
  200. # Note: The order is which modules are loaded is important. Don't change
  201. # the order below without expert advice.
  202. #
  203. # Example:
  204. # LoadModule foo_module libexec/mod_foo.so
  205.  
  206. #
  207. # ExtendedStatus controls whether Apache will generate "full" status
  208. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  209. # Off) when the "server-status" handler is called. The default is Off.
  210. #
  211. #ExtendedStatus On
  212.  
  213.  
  214. ### Section 2: 'Main' server configuration
  215. #
  216. # The directives in this section set up the values used by the 'main'
  217. # server, which responds to any requests that aren't handled by a
  218. # <VirtualHost> definition. These values also provide defaults for
  219. # any <VirtualHost> containers you may define later in the file.
  220. #
  221. # All of these directives may appear inside <VirtualHost> containers,
  222. # in which case these default settings will be overridden for the
  223. # virtual host being defined.
  224. #
  225.  
  226. #
  227. # If your ServerType directive (set earlier in the 'Global Environment'
  228. # section) is set to "inetd", the next few directives don't have any
  229. # effect since their settings are defined by the inetd configuration.
  230. # Skip ahead to the ServerAdmin directive.
  231. #
  232.  
  233. #
  234. # Port: The port to which the standalone server listens. For
  235. # ports < 1023, you will need httpd to be run as root initially.
  236. #
  237. Port 80
  238.  
  239. ##
  240. ## SSL Support
  241. ##
  242. ## When we also provide SSL we have to listen to the
  243. ## standard HTTP port (see above) and to the HTTPS port
  244. ##
  245. <IfDefine SSL>
  246. Listen 80
  247. Listen 443
  248. </IfDefine>
  249.  
  250. #
  251. # If you wish httpd to run as a different user or group, you must run
  252. # httpd as root initially and it will switch.
  253. #
  254. # User/Group: The name (or #number) of the user/group to run httpd as.
  255. # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  256. # . On HPUX you may not be able to use shared memory as nobody, and the
  257. # suggested workaround is to create a user www and use that user.
  258. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  259. # when the value of (unsigned)Group is above 60000;
  260. # don't use Group #-1 on these systems!
  261. # On OpenBSD, use user www, group www.
  262. #
  263. User www
  264. Group www
  265.  
  266. #
  267. # ServerAdmin: Your address, where problems with the server should be
  268. # e-mailed. This address appears on some server-generated pages, such
  269. # as error documents.
  270. #
  271. ServerAdmin [email protected]
  272.  
  273. #
  274. # ServerName allows you to set a host name which is sent back to clients for
  275. # your server if it's different than the one the program would get (i.e., use
  276. # "www" instead of the host's real name).
  277. #
  278. # Note: You cannot just invent host names and hope they work. The name you
  279. # define here must be a valid DNS name for your host. If you don't understand
  280. # this, ask your network administrator.
  281. # If your host doesn't have a registered DNS name, enter its IP address here.
  282. # You will have to access it by its address (e.g., http://123.45.67.89/)
  283. # anyway, and this will make redirections work in a sensible way.
  284. #
  285. ServerName http://www.skycraft.cz/
  286.  
  287. #
  288. # DocumentRoot: The directory out of which you will serve your
  289. # documents. By default, all requests are taken from this directory, but
  290. # symbolic links and aliases may be used to point to other locations.
  291. #
  292. DocumentRoot "/var/www/htdocs"
  293.  
  294.  
  295. #
  296. # Each directory to which Apache has access, can be configured with respect
  297. # to which services and features are allowed and/or disabled in that
  298. # directory (and its subdirectories).
  299. #
  300. # See: How Directory, Location and Files sections work
  301. # for more information on how Apache decides which directives apply
  302. # for a particular directory or URL request.
  303. #
  304. # First, we configure the "default" to be a very restrictive set of
  305. # permissions.
  306. #
  307. <Directory />
  308. Options FollowSymLinks
  309. AllowOverride None
  310. Order Deny,Allow
  311. Deny from all
  312. </Directory>
  313.  
  314. #
  315. # Note that from this point forward you must specifically allow
  316. # particular features to be enabled - so if something's not working as
  317. # you might expect, make sure that you have specifically enabled it
  318. # below.
  319. #
  320.  
  321. #
  322. # This should be changed to whatever you set DocumentRoot to.
  323. #
  324. <Directory "/var/www/htdocs">
  325.  
  326. #
  327. # This may also be "None", "All", or any combination of "Indexes",
  328. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  329. #
  330. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  331. # doesn't give it to you.
  332. #
  333. # Note: If "Indexes" is specified, the server will automatically
  334. # generate directory listings for any URL request which maps to
  335. # a directory that doesn't include any of the DirectoryIndex
  336. # files, such as index.html.
  337. #
  338. Options FollowSymLinks
  339.  
  340. #
  341. # This controls which options the .htaccess files in directories can
  342. # override. Can also be "All", or any combination of "Options", "FileInfo",
  343. # "AuthConfig", and "Limit"
  344. #
  345. AllowOverride None
  346.  
  347. #
  348. # Controls who can get stuff from this server.
  349. #
  350. Order allow,deny
  351. Allow from all
  352. </Directory>
  353.  
  354. #
  355. # UserDir: The name of the directory which is appended onto a user's home
  356. # directory if a ~user request is received. "disabled" turns this feature
  357. # off; other reasonable defaults are "public_dir" and ".html"
  358. #
  359. UserDir public_html
  360.  
  361.  
  362. #
  363. # Control access to UserDir directories. The following is an example
  364. # for a site where these directories are restricted to read-only and
  365. # are located under /home/public_html
  366. # You will need to change this to match your site's home directories.
  367. #
  368. # Note: Options Indexes removed to keep browsers from seeing the
  369. # contents of directories without an index.html file
  370. # However, this behavior can be overridden on a per-directory
  371. # basis by each user via an .htaccess file.
  372. #
  373. <Directory /home/*/public_html>
  374. AllowOverride FileInfo AuthConfig Limit Options Indexes
  375. Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
  376. <Limit GET POST OPTIONS PROPFIND>
  377. Order allow,deny
  378. Allow from all
  379. </Limit>
  380. <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
  381. Order deny,allow
  382. Deny from all
  383. </Limit>
  384. </Directory>
  385.  
  386. # ADDITION
  387. # Allowing Indexes directive on a particular directory within a user's
  388. # webspace, overiding the above config for that one directory.
  389. # This allows people to reference that directory by URL to see a listing
  390. # of files in it, when there is no index.html present.
  391. <Directory /home/username/public_html/vacation-pictures>
  392. Options Indexes
  393. </Directory>
  394.  
  395.  
  396. #
  397. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  398. # directory index. Separate multiple entries with spaces.
  399. #
  400. DirectoryIndex index.html
  401.  
  402. #
  403. # AccessFileName: The name of the file to look for in each directory
  404. # for access control information.
  405. #
  406. AccessFileName .htaccess
  407.  
  408. #
  409. # The following lines prevent .htaccess files from being viewed by
  410. # Web clients. Since .htaccess files often contain authorization
  411. # information, access is disallowed for security reasons. Comment
  412. # these lines out if you want Web visitors to see the contents of
  413. # .htaccess files. If you change the AccessFileName directive above,
  414. # be sure to make the corresponding changes here.
  415. #
  416. # See also this mini-guide to password protecting a directory
  417. #
  418. <Files .htaccess>
  419. Order allow,deny
  420. Deny from all
  421. </Files>
  422.  
  423. # ADDITION:
  424. # This is intended to prevent people from seeing .message files placed
  425. # into user's public_html directory. This is a file printed when a
  426. # user changes to that directory in an FTP client.
  427. <Files .message>
  428. Order deny,allow
  429. Deny from all
  430. </Files>
  431.  
  432. #
  433. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  434. # document that was negotiated on the basis of content. This asks proxy
  435. # servers not to cache the document. Uncommenting the following line disables
  436. # this behavior, and proxies will be allowed to cache the documents.
  437. #
  438. #CacheNegotiatedDocs
  439.  
  440. #
  441. # UseCanonicalName: (new for 1.3) With this setting turned on, whenever
  442. # Apache needs to construct a self-referencing URL (a URL that refers back
  443. # to the server the response is coming from) it will use ServerName and
  444. # Port to form a "canonical" name. With this setting off, Apache will
  445. # use the hostname:port that the client supplied, when possible. This
  446. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  447. #
  448. UseCanonicalName On
  449.  
  450. #
  451. # TypesConfig describes where the mime.types file (or equivalent) is
  452. # to be found.
  453. #
  454. TypesConfig conf/mime.types
  455.  
  456. #
  457. # DefaultType is the default MIME type the server will use for a document
  458. # if it cannot otherwise determine one, such as from filename extensions.
  459. # If your server contains mostly text or HTML documents, "text/plain" is
  460. # a good value. If most of your content is binary, such as applications
  461. # or images, you may want to use "application/octet-stream" instead to
  462. # keep browsers from trying to display binary files as though they are
  463. # text.
  464. #
  465. DefaultType text/plain
  466.  
  467. #
  468. # The mod_mime_magic module allows the server to use various hints from the
  469. # contents of the file itself to determine its type. The MIMEMagicFile
  470. # directive tells the module where the hint definitions are located.
  471. # mod_mime_magic is not part of the default server (you have to add
  472. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  473. # Environment' section], or recompile the server and include mod_mime_magic
  474. # as part of the configuration), so it's enclosed in an container.
  475. # This means that the MIMEMagicFile directive will only be processed if the
  476. # module is part of the server.
  477. #
  478. <IfModule mod_mime_magic.c>
  479. MIMEMagicFile conf/magic
  480. </IfModule>
  481.  
  482. #
  483. # HostnameLookups: Log the names of clients or just their IP addresses
  484. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  485. # The default is off because it'd be overall better for the net if people
  486. # had to knowingly turn this feature on, since enabling it means that
  487. # each client request will result in AT LEAST one lookup request to the
  488. # nameserver.
  489. #
  490. HostnameLookups Off
  491.  
  492. #
  493. # ErrorLog: The location of the error log file.
  494. # If you do not specify an ErrorLog directive within a <VirtualHost>
  495. # container, error messages relating to that virtual host will be
  496. # logged here. If you *do* define an error logfile for a <VirtualHost>
  497. # container, that host's errors will be logged there and not here.
  498. #
  499. ErrorLog logs/error_log
  500.  
  501. #
  502. # LogLevel: Control the number of messages logged to the error_log.
  503. # Possible values include: debug, info, notice, warn, error, crit,
  504. # alert, emerg.
  505. #
  506. LogLevel warn
  507.  
  508. #
  509. # The following directives define some format nicknames for use with
  510. # a CustomLog directive (see below).
  511. #
  512. # See the full mod_log_config page for more info.
  513. #
  514. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  515. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  516. LogFormat "%{Referer}i -> %U" referer
  517. LogFormat "%{User-agent}i" agent
  518.  
  519. #
  520. # The location and format of the access logfile (Common Logfile Format).
  521. # If you do not define any access logfiles within a <VirtualHost>
  522. # container, they will be logged here. Contrariwise, if you *do*
  523. # define per-<VirtualHost> access logfiles, transactions will be
  524. # logged therein and *not* in this file.
  525. #
  526. CustomLog logs/access_log common
  527.  
  528. #
  529. # If you would like to have agent and referer logfiles, uncomment the
  530. # following directives.
  531. #
  532. #CustomLog logs/referer_log referer
  533. #CustomLog logs/agent_log agent
  534.  
  535. #
  536. # If you prefer a single logfile with access, agent, and referer information
  537. # (Combined Logfile Format) you can use the following directive.
  538. #
  539. #CustomLog logs/access_log combined
  540.  
  541. #
  542. # Optionally add a line containing the server version and virtual host
  543. # name to server-generated pages (error documents, FTP directory listings,
  544. # mod_status and mod_info output etc., but not CGI generated documents).
  545. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  546. # Set to one of: On | Off | EMail
  547. #
  548. ServerSignature On
  549.  
  550. #
  551. # Aliases: Add here as many aliases as you need (with no limit). The format is
  552. # Alias fakename realname
  553. #
  554. # Note that if you include a trailing / on fakename then the server will
  555. # require it to be present in the URL. So "/icons" isn't aliased in this
  556. # example, only "/icons/"..
  557. #
  558. Alias /icons/ "/var/www/icons/"
  559.  
  560. <Directory "/var/www/icons">
  561. Options Indexes MultiViews
  562. AllowOverride None
  563. Order allow,deny
  564. Allow from all
  565. </Directory>
  566.  
  567. #
  568. # ScriptAlias: This controls which directories contain server scripts.
  569. # ScriptAliases are essentially the same as Aliases, except that
  570. # documents in the realname directory are treated as applications and
  571. # run by the server when requested rather than as documents sent to the client.
  572. # The same rules about trailing "/" apply to ScriptAlias directives as to
  573. # Alias.
  574. #
  575. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  576.  
  577. #
  578. # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
  579. # CGI directory exists, if you have that configured.
  580. #
  581. <Directory "/var/www/cgi-bin">
  582. AllowOverride None
  583. Options None
  584. Order allow,deny
  585. Allow from all
  586. </Directory>
  587.  
  588. #
  589. # Redirect allows you to tell clients about documents which used to exist in
  590. # your server's namespace, but do not anymore. This allows you to tell the
  591. # clients where to look for the relocated document.
  592. # Format: Redirect old-URI new-URL
  593. #
  594.  
  595. #
  596. # Directives controlling the display of server-generated directory listings.
  597. #
  598.  
  599. #
  600. # FancyIndexing is whether you want fancy directory indexing or standard
  601. #
  602. IndexOptions FancyIndexing
  603.  
  604. #
  605. # AddIcon* directives tell the server which icon to show for different
  606. # files or filename extensions. These are only displayed for
  607. # FancyIndexed directories.
  608. #
  609. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  610.  
  611. AddIconByType (TXT,/icons/text.gif) text/*
  612. AddIconByType (IMG,/icons/image2.gif) image/*
  613. AddIconByType (SND,/icons/sound2.gif) audio/*
  614. AddIconByType (VID,/icons/movie.gif) video/*
  615.  
  616. AddIcon /icons/binary.gif .bin .exe
  617. AddIcon /icons/binhex.gif .hqx
  618. AddIcon /icons/tar.gif .tar
  619. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  620. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  621. AddIcon /icons/a.gif .ps .ai .eps
  622. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  623. AddIcon /icons/text.gif .txt
  624. AddIcon /icons/c.gif .c
  625. AddIcon /icons/p.gif .pl .py
  626. AddIcon /icons/f.gif .for
  627. AddIcon /icons/dvi.gif .dvi
  628. AddIcon /icons/uuencoded.gif .uu
  629. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  630. AddIcon /icons/tex.gif .tex
  631. AddIcon /icons/bomb.gif core
  632.  
  633. AddIcon /icons/back.gif ..
  634. AddIcon /icons/hand.right.gif README
  635. AddIcon /icons/folder.gif ^^DIRECTORY^^
  636. AddIcon /icons/blank.gif ^^BLANKICON^^
  637.  
  638. #
  639. # DefaultIcon is which icon to show for files which do not have an icon
  640. # explicitly set.
  641. #
  642. DefaultIcon /icons/unknown.gif
  643.  
  644. #
  645. # AddDescription allows you to place a short description after a file in
  646. # server-generated indexes. These are only displayed for FancyIndexed
  647. # directories.
  648. # Format: AddDescription "description" filename
  649. #
  650. # Note that (here or in an appropriate .htaccess file) more specific filenames
  651. # can also be used.
  652. #AddDescription "GZIP compressed document" .gz
  653. #AddDescription "tar archive" .tar
  654. #AddDescription "GZIP compressed tar archive" .tgz
  655.  
  656. #
  657. # ReadmeName is the name of the README file the server will look for by
  658. # default, and append to directory listings.
  659. #
  660. # HeaderName is the name of a file which should be prepended to
  661. # directory indexes.
  662. #
  663. # The server will first look for name.html and include it if found.
  664. # If name.html doesn't exist, the server will then look for name.txt
  665. # and include it as plaintext if found.
  666. #
  667. ReadmeName README
  668. HeaderName HEADER
  669.  
  670. #
  671. # IndexIgnore is a set of filenames which directory indexing should ignore
  672. # and not include in the listing. Shell-style wildcarding is permitted.
  673. #
  674. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  675.  
  676. #
  677. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  678. # information on the fly. Note: Not all browsers support this.
  679. # Despite the name similarity, the following Add* directives have nothing
  680. # to do with the FancyIndexing customization directives above.
  681. #
  682. AddEncoding x-compress Z
  683. AddEncoding x-gzip gz
  684.  
  685. #
  686. # AddLanguage allows you to specify the language of a document. You can
  687. # then use content negotiation to give a browser a file in a language
  688. # it can understand. Note that the suffix does not have to be the same
  689. # as the language keyword --- those with documents in Polish (whose
  690. # net-standard language code is pl) may wish to use "AddLanguage pl .po"
  691. # to avoid the ambiguity with the common suffix for perl scripts.
  692. #
  693. AddLanguage en .en
  694. AddLanguage fr .fr
  695. AddLanguage de .de
  696. AddLanguage da .da
  697. AddLanguage el .el
  698. AddLanguage it .it
  699. AddLanguage cs .cz
  700.  
  701. #
  702. # LanguagePriority allows you to give precedence to some languages
  703. # in case of a tie during content negotiation.
  704. # Just list the languages in decreasing order of preference.
  705. #
  706. LanguagePriority en fr de
  707.  
  708. #
  709. # AddType allows you to tweak mime.types without actually editing it, or to
  710. # make certain files to be certain types.
  711. #
  712. # For example, the PHP3 module (not part of the Apache distribution)
  713. # will typically use:
  714. #
  715. #AddType application/x-httpd-php3 .phtml
  716. #AddType application/x-httpd-php3-source .phps
  717.  
  718. #
  719. # AddHandler allows you to map certain file extensions to "handlers",
  720. # actions unrelated to filetype. These can be either built into the server
  721. # or added with the Action command (see below)
  722. #
  723. # If you want to use server side includes, or CGI outside
  724. # ScriptAliased directories, uncomment the following lines.
  725. #
  726. # To use CGI scripts:
  727. #
  728. #AddHandler cgi-script .cgi
  729.  
  730. #
  731. # To use server-parsed HTML files
  732. #
  733. #AddType text/html .shtml
  734. #AddHandler server-parsed .shtml
  735.  
  736. #
  737. # Uncomment the following line to enable Apache's send-asis HTTP file
  738. # feature
  739. #
  740. #AddHandler send-as-is asis
  741.  
  742. #
  743. # If you wish to use server-parsed imagemap files, use
  744. #
  745. #AddHandler imap-file map
  746.  
  747. #
  748. # To enable type maps, you might want to use
  749. #
  750. #AddHandler type-map var
  751.  
  752. #
  753. # Action lets you define media types that will execute a script whenever
  754. # a matching file is called. This eliminates the need for repeated URL
  755. # pathnames for oft-used CGI file processors.
  756. # Format: Action media/type /cgi-script/location
  757. # Format: Action handler-name /cgi-script/location
  758. #
  759.  
  760. #
  761. # MetaDir: specifies the name of the directory in which Apache can find
  762. # meta information files. These files contain additional HTTP headers
  763. # to include when sending the document
  764. #
  765. #MetaDir .web
  766.  
  767. #
  768. # MetaSuffix: specifies the file name suffix for the file containing the
  769. # meta information.
  770. #
  771. #MetaSuffix .meta
  772.  
  773. #
  774. # Customizable error response (Apache style)
  775. # these come in three flavors
  776. #
  777. # 1) plain text
  778. #ErrorDocument 500 "The server made a boo boo.
  779. # n.b. the (") marks it as text, it does not get output
  780. #
  781. # 2) local redirects
  782. #ErrorDocument 404 /missing.html
  783. # to redirect to local URL /missing.html
  784. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  785. # N.B.: You can redirect to a script or a document using server-side-includes.
  786. #
  787. # 3) external redirects
  788. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  789. # N.B.: Many of the environment variables associated with the original
  790. # request will *not* be available to such a script.
  791.  
  792. #
  793. # The following directives modify normal HTTP response behavior.
  794. # The first directive disables keepalive for Netscape 2.x and browsers that
  795. # spoof it. There are known problems with these browser implementations.
  796. # The second directive is for Microsoft Internet Explorer 4.0b2
  797. # which has a broken HTTP/1.1 implementation and does not properly
  798. # support keepalive when it is used on 301 or 302 (redirect) responses.
  799. #
  800. BrowserMatch "Mozilla/2" nokeepalive
  801. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  802.  
  803. #
  804. # The following directive disables HTTP/1.1 responses to browsers which
  805. # are in violation of the HTTP/1.0 spec by not being able to grok a
  806. # basic 1.1 response.
  807. #
  808. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  809. BrowserMatch "Java/1\.0" force-response-1.0
  810. BrowserMatch "JDK/1\.0" force-response-1.0
  811.  
  812. #
  813. # Allow server status reports, with the URL of http://servername/server-status
  814. # Change the ".your_domain.com" to match your domain to enable.
  815. #
  816. #
  817. # SetHandler server-status
  818. # Order deny,allow
  819. # Deny from all
  820. # Allow from .your_domain.com
  821. #
  822.  
  823. #
  824. # Allow remote server configuration reports, with the URL of
  825. # http://servername/server-info (requires that mod_info.c be loaded).
  826. # Change the ".your_domain.com" to match your domain to enable.
  827. #
  828. #
  829. # SetHandler server-info
  830. # Order deny,allow
  831. # Deny from all
  832. # Allow from .your_domain.com
  833. #
  834.  
  835. #
  836. # There have been reports of people trying to abuse an old bug from pre-1.1
  837. # days. This bug involved a CGI script distributed as a part of Apache.
  838. # By uncommenting these lines you can redirect these attacks to a logging
  839. # script on phf.apache.org. Or, you can record them yourself, using the script
  840. # support/phf_abuse_log.cgi.
  841. #
  842. #
  843. # Deny from all
  844. # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  845. #
  846.  
  847. #
  848. # Proxy Server directives. Uncomment the following lines to
  849. # enable the proxy server:
  850. #
  851. #
  852. #ProxyRequests On
  853. #
  854. #
  855. # Order deny,allow
  856. # Deny from all
  857. # Allow from .your_domain.com
  858. #
  859.  
  860. #
  861. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  862. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  863. # Set to one of: Off | On | Full | Block
  864. #
  865. #ProxyVia On
  866.  
  867. #
  868. # To enable the cache as well, edit and uncomment the following lines:
  869. # (no cacheing without CacheRoot)
  870. #
  871. #CacheRoot "/var/www/proxy"
  872. #CacheSize 5
  873. #CacheGcInterval 4
  874. #CacheMaxExpire 24
  875. #CacheLastModifiedFactor 0.1
  876. #CacheDefaultExpire 1
  877. #NoCache a_domain.com another_domain.edu joes.garage_sale.com
  878.  
  879. #
  880. # End of proxy directives.
  881.  
  882. ### Section 3: Virtual Hosts
  883. #
  884. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  885. # machine you can setup VirtualHost containers for them.
  886. # Please see the documentation at Apache Server Virtual Host Support.
  887. # for further details before you try to setup virtual hosts.
  888. # You may use the command line option '-S' to verify your virtual host
  889. # configuration.
  890. #
  891. # See also :this from the FAQ regarding the number of virtual hosts
  892. # that can be run on a system.
  893. #
  894.  
  895. #
  896. # If you want to use name-based virtual hosts you need to define at
  897. # least one IP address (and port number) for them.
  898. #
  899. NameVirtualHost 85.118.134.205:80
  900. NameVirtualHost skycraft.cz
  901.  
  902. #
  903. # VirtualHost example:
  904. # Almost any Apache directive may go into a VirtualHost container.
  905. #
  906. #
  907. ServerAdmin [email protected]
  908. DocumentRoot /www/docs/skycraft.cz-root
  909. ServerName skycraft.cz
  910. ErrorLog logs/skycraft.cz-error_log
  911. CustomLog logs/skycraft.cz-access_log common
  912. #
  913.  
  914. #
  915. #
  916.  
  917.  
  918. ##
  919. ## SSL Global Context
  920. ##
  921. ## All SSL configuration in this context applies both to
  922. ## the main server and all SSL-enabled virtual hosts.
  923. ##
  924.  
  925. #
  926. # Some MIME-types for downloading Certificates and CRLs
  927. #
  928.  
  929. AddType application/x-x509-ca-cert .crt
  930. AddType application/x-pkcs7-crl .crl
  931.  
  932.  
  933.  
  934.  
  935. # Pass Phrase Dialog:
  936. # Configure the pass phrase gathering process.
  937. # The filtering dialog program (`builtin' is a internal
  938. # terminal dialog) has to provide the pass phrase on stdout.
  939. SSLPassPhraseDialog builtin
  940.  
  941. # Inter-Process Session Cache:
  942. # Configure the SSL Session Cache: First either `none'
  943. # or `dbm:/path/to/file' for the mechanism to use and
  944. # second the expiring timeout (in seconds).
  945. SSLSessionCache dbm:logs/ssl_scache
  946. SSLSessionCacheTimeout 300
  947.  
  948. # Semaphore:
  949. # Configure the path to the mutual explusion semaphore the
  950. # SSL engine uses internally for inter-process synchronization.
  951. SSLMutex file:logs/ssl_mutex
  952.  
  953. # Pseudo Random Number Generator (PRNG):
  954. # Configure one or more sources to seed the PRNG of the
  955. # SSL library. The seed data should be of good random quality.
  956. SSLRandomSeed startup builtin
  957. SSLRandomSeed connect builtin
  958. #SSLRandomSeed startup file:/dev/random 512
  959. #SSLRandomSeed startup file:/dev/urandom 512
  960. #SSLRandomSeed connect file:/dev/random 512
  961. #SSLRandomSeed connect file:/dev/urandom 512
  962. SSLRandomSeed startup file:/dev/arandom 512
  963.  
  964. # Logging:
  965. # The home of the dedicated SSL protocol logfile. Errors are
  966. # additionally duplicated in the general error log file. Put
  967. # this somewhere where it cannot be used for symlink attacks on
  968. # a real server (i.e. somewhere where only root can write).
  969. # Log levels are (ascending order: higher ones include lower ones):
  970. # none, error, warn, info, trace, debug.
  971. SSLLog logs/ssl_engine_log
  972. SSLLogLevel info
  973.  
  974.  
  975.  
  976.  
  977.  
  978. ##
  979. ## SSL Virtual Host Context
  980. ##
  981.  
  982.  
  983.  
  984. # General setup for the virtual host
  985. DocumentRoot /var/www/htdocs
  986. ServerName skycraft.cz
  987. ServerAdmin [email protected]
  988. ErrorLog logs/skycraft.cz-error_log
  989. TransferLog logs/skycraft.cz-access_log
  990.  
  991. # SSL Engine Switch:
  992. # Enable/Disable SSL for this virtual host.
  993. SSLEngine on
  994.  
  995. # SSL Cipher Suite:
  996. # List the ciphers that the client is permitted to negotiate.
  997. # See the mod_ssl documentation for a complete list.
  998. #SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
  999.  
  1000. # Server Certificate:
  1001. # Point SSLCertificateFile at a PEM encoded certificate. If
  1002. # the certificate is encrypted, then you will be prompted for a
  1003. # pass phrase. Note that a kill -HUP will prompt again. A test
  1004. # certificate can be generated with `make certificate' under
  1005. # built time.
  1006. SSLCertificateFile /etc/ssl/server.crt
  1007.  
  1008. # Server Private Key:
  1009. # If the key is not combined with the certificate, use this
  1010. # directive to point at the key file.
  1011. SSLCertificateKeyFile /etc/ssl/private/server.key
  1012.  
  1013. # Certificate Authority (CA):
  1014. # Set the CA certificate verification path where to find CA
  1015. # certificates for client authentication or alternatively one
  1016. # huge file containing all of them (file must be PEM encoded)
  1017. # Note: Inside SSLCACertificatePath you need hash symlinks
  1018. # to point to the certificate files. Use the provided
  1019. # Makefile to update the hash symlinks after changes.
  1020. #SSLCACertificatePath @@ServerRoot@@/conf/ssl.crt
  1021. #SSLCACertificateFile @@ServerRoot@@/conf/ssl.crt/ca-bundle.crt
  1022.  
  1023. # Client Authentication (Type):
  1024. # Client certificate verification type and depth. Types are
  1025. # none, optional, require and optional_no_ca. Depth is a
  1026. # number which specifies how deeply to verify the certificate
  1027. # issuer chain before deciding the certificate is not valid.
  1028. #SSLVerifyClient require
  1029. #SSLVerifyDepth 10
  1030.  
  1031. # Access Control:
  1032. # With SSLRequire you can do per-directory access control based
  1033. # on arbitrary complex boolean expressions containing server
  1034. # variable checks and other lookup directives. The syntax is a
  1035. # mixture between C and Perl. See the mod_ssl documentation
  1036. # for more details.
  1037. #
  1038. #SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)-/ \
  1039. # and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
  1040. # and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
  1041. # and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
  1042. # and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
  1043. # or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
  1044. #
  1045.  
  1046. # SSL Engine Options:
  1047. # Set various options for the SSL engine.
  1048. # FakeBasicAuth:
  1049. # Translate the client X.509 into a Basic Authorisation. This means that
  1050. # the standard Auth/DBMAuth methods can be used for access control. The
  1051. # user name is the `one line' version of the client's X.509 certificate.
  1052. # Note that no password is obtained from the user. Every entry in the user
  1053. # file needs this password: `xxj31ZMTZzkVA'.
  1054. # ExportCertData:
  1055. # This exports two additional environment variables: SSL_CLIENT_CERT and
  1056. # SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
  1057. # server (always existing) and the client (only existing when client
  1058. # authentication is used). This can be used to import the certificates
  1059. # into CGI scripts.
  1060. # CompatEnvVars:
  1061. # This exports obsolete environment variables for backward compatibility
  1062. # to Apache-SSL 1.x, mod_ssl 2.0.x, Sioux 1.0 and Stronghold 2.x. Use this
  1063. # to provide compatibility to existing CGI scripts.
  1064. #SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars
  1065.  
  1066. # Per-Server Logging:
  1067. # The home of a custom SSL log file. Use this when you want a
  1068. # compact non-error SSL logfile on a virtual host basis.
  1069. CustomLog logs/ssl_request_log \
  1070. "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
Advertisement
Add Comment
Please, Sign In to add comment