Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.18 KB | None | 0 0
  1. #
  2. # This is the main Apache 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. #
  10. # Do NOT simply read the instructions in here without understanding
  11. # what they do. They're here only as hints or reminders. If you are unsure
  12. # consult the online docs. You have been warned.
  13. #
  14. # The configuration directives are grouped into three basic sections:
  15. # 1. Directives that control the operation of the Apache server process as a
  16. # whole (the 'global environment').
  17. # 2. Directives that define the parameters of the 'main' or 'default' server,
  18. # which responds to requests that aren't handled by a virtual host.
  19. # These directives also provide default values for the settings
  20. # of all virtual hosts.
  21. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  22. # different IP addresses or hostnames and have them handled by the
  23. # same Apache server process.
  24. #
  25. # Configuration and logfile names: If the filenames you specify for many
  26. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  27. # server will use that explicit path. If the filenames do *not* begin
  28. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  29. # with ServerRoot set to "/etc/httpd" will be interpreted by the
  30. # server as "/etc/httpd/logs/foo.log".
  31. #
  32.  
  33. ### Section 1: Global Environment
  34. #
  35. # The directives in this section affect the overall operation of Apache,
  36. # such as the number of concurrent requests it can handle or where it
  37. # can find its configuration files.
  38. #
  39. # Ensure that Apache listens on port 80
  40. Listen 80
  41. <VirtualHost *:80>
  42. DocumentRoot "/var/www/html"
  43. ServerName www.eu-r.com
  44.  
  45. # Other directives here
  46. RewriteEngine on
  47. RewriteCond %{SERVER_NAME} =www.eu-r.com
  48. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=permanent]
  49. </VirtualHost>
  50.  
  51.  
  52.  
  53.  
  54. #
  55. # Don't give away too much information about all the subcomponents
  56. # we are running. Comment out this line if you don't mind remote sites
  57. # finding out what major optional modules you are running
  58. ServerTokens OS
  59.  
  60. #
  61. # ServerRoot: The top of the directory tree under which the server's
  62. # configuration, error, and log files are kept.
  63. #
  64. # NOTE! If you intend to place this on an NFS (or otherwise network)
  65. # mounted filesystem then please read the LockFile documentation
  66. # (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
  67. # you will save yourself a lot of trouble.
  68. #
  69. # Do NOT add a slash at the end of the directory path.
  70. #
  71. ServerRoot "/etc/httpd"
  72.  
  73. #
  74. # PidFile: The file in which the server should record its process
  75. # identification number when it starts. Note the PIDFILE variable in
  76. # /etc/sysconfig/httpd must be set appropriately if this location is
  77. # changed.
  78. #
  79. PidFile run/httpd.pid
  80.  
  81. #
  82. # Timeout: The number of seconds before receives and sends time out.
  83. #
  84. Timeout 60
  85.  
  86. #
  87. # KeepAlive: Whether or not to allow persistent connections (more than
  88. # one request per connection). Set to "Off" to deactivate.
  89. #
  90. KeepAlive Off
  91.  
  92. #
  93. # MaxKeepAliveRequests: The maximum number of requests to allow
  94. # during a persistent connection. Set to 0 to allow an unlimited amount.
  95. # We recommend you leave this number high, for maximum performance.
  96. #
  97. MaxKeepAliveRequests 100
  98.  
  99. #
  100. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  101. # same client on the same connection.
  102. #
  103. KeepAliveTimeout 15
  104.  
  105. ##
  106. ## Server-Pool Size Regulation (MPM specific)
  107. ##
  108.  
  109. # prefork MPM
  110. # StartServers: number of server processes to start
  111. # MinSpareServers: minimum number of server processes which are kept spare
  112. # MaxSpareServers: maximum number of server processes which are kept spare
  113. # ServerLimit: maximum value for MaxClients for the lifetime of the server
  114. # MaxClients: maximum number of server processes allowed to start
  115. # MaxRequestsPerChild: maximum number of requests a server process serves
  116. <IfModule prefork.c>
  117. StartServers 8
  118. MinSpareServers 5
  119. MaxSpareServers 20
  120. ServerLimit 256
  121. MaxClients 256
  122. MaxRequestsPerChild 4000
  123. </IfModule>
  124.  
  125. # worker MPM
  126. # StartServers: initial number of server processes to start
  127. # MaxClients: maximum number of simultaneous client connections
  128. # MinSpareThreads: minimum number of worker threads which are kept spare
  129. # MaxSpareThreads: maximum number of worker threads which are kept spare
  130. # ThreadsPerChild: constant number of worker threads in each server process
  131. # MaxRequestsPerChild: maximum number of requests a server process serves
  132. <IfModule worker.c>
  133. StartServers 4
  134. MaxClients 300
  135. MinSpareThreads 25
  136. MaxSpareThreads 75
  137. ThreadsPerChild 25
  138. MaxRequestsPerChild 0
  139. </IfModule>
  140.  
  141. #
  142. # Listen: Allows you to bind Apache to specific IP addresses and/or
  143. # ports, in addition to the default. See also the <VirtualHost>
  144. # directive.
  145. #
  146. # Change this to Listen on specific IP addresses as shown below to
  147. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  148. #
  149. #Listen 12.34.56.78:80
  150. # Listen 80
  151.  
  152. #
  153. # Dynamic Shared Object (DSO) Support
  154. #
  155. # To be able to use the functionality of a module which was built as a DSO you
  156. # have to place corresponding `LoadModule' lines at this location so the
  157. # directives contained in it are actually available _before_ they are used.
  158. # Statically compiled modules (those listed by `httpd -l') do not need
  159. # to be loaded here.
  160. #
  161. # Example:
  162. # LoadModule foo_module modules/mod_foo.so
  163. #
  164. LoadModule auth_basic_module modules/mod_auth_basic.so
  165. LoadModule auth_digest_module modules/mod_auth_digest.so
  166. LoadModule authn_file_module modules/mod_authn_file.so
  167. LoadModule authn_alias_module modules/mod_authn_alias.so
  168. LoadModule authn_anon_module modules/mod_authn_anon.so
  169. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  170. LoadModule authn_default_module modules/mod_authn_default.so
  171. LoadModule authz_host_module modules/mod_authz_host.so
  172. LoadModule authz_user_module modules/mod_authz_user.so
  173. LoadModule authz_owner_module modules/mod_authz_owner.so
  174. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  175. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  176. LoadModule authz_default_module modules/mod_authz_default.so
  177. LoadModule ldap_module modules/mod_ldap.so
  178. LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  179. LoadModule include_module modules/mod_include.so
  180. LoadModule log_config_module modules/mod_log_config.so
  181. LoadModule logio_module modules/mod_logio.so
  182. LoadModule env_module modules/mod_env.so
  183. LoadModule ext_filter_module modules/mod_ext_filter.so
  184. LoadModule mime_magic_module modules/mod_mime_magic.so
  185. LoadModule expires_module modules/mod_expires.so
  186. LoadModule deflate_module modules/mod_deflate.so
  187. LoadModule headers_module modules/mod_headers.so
  188. LoadModule usertrack_module modules/mod_usertrack.so
  189. LoadModule setenvif_module modules/mod_setenvif.so
  190. LoadModule mime_module modules/mod_mime.so
  191. LoadModule dav_module modules/mod_dav.so
  192. LoadModule status_module modules/mod_status.so
  193. LoadModule autoindex_module modules/mod_autoindex.so
  194. LoadModule info_module modules/mod_info.so
  195. LoadModule dav_fs_module modules/mod_dav_fs.so
  196. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  197. LoadModule negotiation_module modules/mod_negotiation.so
  198. LoadModule dir_module modules/mod_dir.so
  199. LoadModule actions_module modules/mod_actions.so
  200. LoadModule speling_module modules/mod_speling.so
  201. LoadModule userdir_module modules/mod_userdir.so
  202. LoadModule alias_module modules/mod_alias.so
  203. LoadModule substitute_module modules/mod_substitute.so
  204. LoadModule rewrite_module modules/mod_rewrite.so
  205. LoadModule proxy_module modules/mod_proxy.so
  206. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  207. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  208. LoadModule proxy_http_module modules/mod_proxy_http.so
  209. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  210. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  211. LoadModule cache_module modules/mod_cache.so
  212. LoadModule suexec_module modules/mod_suexec.so
  213. LoadModule disk_cache_module modules/mod_disk_cache.so
  214. LoadModule cgi_module modules/mod_cgi.so
  215. LoadModule version_module modules/mod_version.so
  216.  
  217. #
  218. # The following modules are not loaded by default:
  219. #
  220. #LoadModule asis_module modules/mod_asis.so
  221. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  222. #LoadModule cern_meta_module modules/mod_cern_meta.so
  223. #LoadModule cgid_module modules/mod_cgid.so
  224. #LoadModule dbd_module modules/mod_dbd.so
  225. #LoadModule dumpio_module modules/mod_dumpio.so
  226. #LoadModule filter_module modules/mod_filter.so
  227. #LoadModule ident_module modules/mod_ident.so
  228. #LoadModule log_forensic_module modules/mod_log_forensic.so
  229. #LoadModule unique_id_module modules/mod_unique_id.so
  230. #
  231.  
  232. #
  233. # Load config files from the config directory "/etc/httpd/conf.d".
  234. #
  235. Include conf.d/*.conf
  236.  
  237. #
  238. # ExtendedStatus controls whether Apache will generate "full" status
  239. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  240. # Off) when the "server-status" handler is called. The default is Off.
  241. #
  242. #ExtendedStatus On
  243.  
  244. #
  245. # If you wish httpd to run as a different user or group, you must run
  246. # httpd as root initially and it will switch.
  247. #
  248. # User/Group: The name (or #number) of the user/group to run httpd as.
  249. # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  250. # . On HPUX you may not be able to use shared memory as nobody, and the
  251. # suggested workaround is to create a user www and use that user.
  252. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  253. # when the value of (unsigned)Group is above 60000;
  254. # don't use Group #-1 on these systems!
  255. #
  256. User apache
  257. Group apache
  258.  
  259. ### Section 2: 'Main' server configuration
  260. #
  261. # The directives in this section set up the values used by the 'main'
  262. # server, which responds to any requests that aren't handled by a
  263. # <VirtualHost> definition. These values also provide defaults for
  264. # any <VirtualHost> containers you may define later in the file.
  265. #
  266. # All of these directives may appear inside <VirtualHost> containers,
  267. # in which case these default settings will be overridden for the
  268. # virtual host being defined.
  269. #
  270.  
  271. #
  272. # ServerAdmin: Your address, where problems with the server should be
  273. # e-mailed. This address appears on some server-generated pages, such
  274. # as error documents. e.g. admin@your-domain.com
  275. #
  276. ServerAdmin root@localhost
  277.  
  278. #
  279. # ServerName gives the name and port that the server uses to identify itself.
  280. # This can often be determined automatically, but we recommend you specify
  281. # it explicitly to prevent problems during startup.
  282. #
  283. # If this is not set to valid DNS name for your host, server-generated
  284. # redirections will not work. See also the UseCanonicalName directive.
  285. #
  286. # If your host doesn't have a registered DNS name, enter its IP address here.
  287. # You will have to access it by its address anyway, and this will make
  288. # redirections work in a sensible way.
  289. #
  290. #ServerName www.example.com:80
  291.  
  292. #
  293. # UseCanonicalName: Determines how Apache constructs self-referencing
  294. # URLs and the SERVER_NAME and SERVER_PORT variables.
  295. # When set "Off", Apache will use the Hostname and Port supplied
  296. # by the client. When set "On", Apache will use the value of the
  297. # ServerName directive.
  298. #
  299. UseCanonicalName Off
  300.  
  301. #
  302. # DocumentRoot: The directory out of which you will serve your
  303. # documents. By default, all requests are taken from this directory, but
  304. # symbolic links and aliases may be used to point to other locations.
  305. #
  306. DocumentRoot "/var/www/html"
  307.  
  308. #
  309. # Each directory to which Apache has access can be configured with respect
  310. # to which services and features are allowed and/or disabled in that
  311. # directory (and its subdirectories).
  312. #
  313. # First, we configure the "default" to be a very restrictive set of
  314. # features.
  315. #
  316. <Directory />
  317. Options FollowSymLinks
  318. AllowOverride ALL
  319. </Directory>
  320.  
  321. #
  322. # Note that from this point forward you must specifically allow
  323. # particular features to be enabled - so if something's not working as
  324. # you might expect, make sure that you have specifically enabled it
  325. # below.
  326. #
  327.  
  328. #
  329. # This should be changed to whatever you set DocumentRoot to.
  330. #
  331. <Directory "/var/www/html">
  332.  
  333. #
  334. # Possible values for the Options directive are "None", "All",
  335. # or any combination of:
  336. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  337. #
  338. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  339. # doesn't give it to you.
  340. #
  341. # The Options directive is both complicated and important. Please see
  342. # http://httpd.apache.org/docs/2.2/mod/core.html#options
  343. # for more information.
  344. #
  345. Options Indexes FollowSymLinks
  346.  
  347. #
  348. # AllowOverride controls what directives may be placed in .htaccess files.
  349. # It can be "All", "None", or any combination of the keywords:
  350. # Options FileInfo AuthConfig Limit
  351. #
  352. AllowOverride All
  353.  
  354. #
  355. # Controls who can get stuff from this server.
  356. #
  357. Order allow,deny
  358. Allow from all
  359.  
  360. </Directory>
  361.  
  362. #
  363. # UserDir: The name of the directory that is appended onto a user's home
  364. # directory if a ~user request is received.
  365. #
  366. # The path to the end user account 'public_html' directory must be
  367. # accessible to the webserver userid. This usually means that ~userid
  368. # must have permissions of 711, ~userid/public_html must have permissions
  369. # of 755, and documents contained therein must be world-readable.
  370. # Otherwise, the client will only receive a "403 Forbidden" message.
  371. #
  372. # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
  373. #
  374. <IfModule mod_userdir.c>
  375. #
  376. # UserDir is disabled by default since it can confirm the presence
  377. # of a username on the system (depending on home directory
  378. # permissions).
  379. #
  380. UserDir disabled
  381.  
  382. #
  383. # To enable requests to /~user/ to serve the user's public_html
  384. # directory, remove the "UserDir disabled" line above, and uncomment
  385. # the following line instead:
  386. #
  387. #UserDir public_html
  388.  
  389. </IfModule>
  390.  
  391. #
  392. # Control access to UserDir directories. The following is an example
  393. # for a site where these directories are restricted to read-only.
  394. #
  395. #<Directory /home/*/public_html>
  396. # AllowOverride FileInfo AuthConfig Limit
  397. # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  398. # <Limit GET POST OPTIONS>
  399. # Order allow,deny
  400. # Allow from all
  401. # </Limit>
  402. # <LimitExcept GET POST OPTIONS>
  403. # Order deny,allow
  404. # Deny from all
  405. # </LimitExcept>
  406. #</Directory>
  407.  
  408. #
  409. # DirectoryIndex: sets the file that Apache will serve if a directory
  410. # is requested.
  411. #
  412. # The index.html.var file (a type-map) is used to deliver content-
  413. # negotiated documents. The MultiViews Option can be used for the
  414. # same purpose, but it is much slower.
  415. #
  416. DirectoryIndex index.html index.html.var
  417.  
  418. #
  419. # AccessFileName: The name of the file to look for in each directory
  420. # for additional configuration directives. See also the AllowOverride
  421. # directive.
  422. #
  423. AccessFileName .htaccess
  424.  
  425. #
  426. # The following lines prevent .htaccess and .htpasswd files from being
  427. # viewed by Web clients.
  428. #
  429. <Files ~ "^\.ht">
  430. Order allow,deny
  431. Deny from all
  432. Satisfy All
  433. </Files>
  434.  
  435. #
  436. # TypesConfig describes where the mime.types file (or equivalent) is
  437. # to be found.
  438. #
  439. TypesConfig /etc/mime.types
  440.  
  441. #
  442. # DefaultType is the default MIME type the server will use for a document
  443. # if it cannot otherwise determine one, such as from filename extensions.
  444. # If your server contains mostly text or HTML documents, "text/plain" is
  445. # a good value. If most of your content is binary, such as applications
  446. # or images, you may want to use "application/octet-stream" instead to
  447. # keep browsers from trying to display binary files as though they are
  448. # text.
  449. #
  450. DefaultType text/plain
  451.  
  452. #
  453. # The mod_mime_magic module allows the server to use various hints from the
  454. # contents of the file itself to determine its type. The MIMEMagicFile
  455. # directive tells the module where the hint definitions are located.
  456. #
  457. <IfModule mod_mime_magic.c>
  458. # MIMEMagicFile /usr/share/magic.mime
  459. MIMEMagicFile conf/magic
  460. </IfModule>
  461.  
  462. #
  463. # HostnameLookups: Log the names of clients or just their IP addresses
  464. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  465. # The default is off because it'd be overall better for the net if people
  466. # had to knowingly turn this feature on, since enabling it means that
  467. # each client request will result in AT LEAST one lookup request to the
  468. # nameserver.
  469. #
  470. HostnameLookups Off
  471.  
  472. #
  473. # EnableMMAP: Control whether memory-mapping is used to deliver
  474. # files (assuming that the underlying OS supports it).
  475. # The default is on; turn this off if you serve from NFS-mounted
  476. # filesystems. On some systems, turning it off (regardless of
  477. # filesystem) can improve performance; for details, please see
  478. # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
  479. #
  480. #EnableMMAP off
  481.  
  482. #
  483. # EnableSendfile: Control whether the sendfile kernel support is
  484. # used to deliver files (assuming that the OS supports it).
  485. # The default is on; turn this off if you serve from NFS-mounted
  486. # filesystems. Please see
  487. # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
  488. #
  489. #EnableSendfile off
  490.  
  491. #
  492. # ErrorLog: The location of the error log file.
  493. # If you do not specify an ErrorLog directive within a <VirtualHost>
  494. # container, error messages relating to that virtual host will be
  495. # logged here. If you *do* define an error logfile for a <VirtualHost>
  496. # container, that host's errors will be logged there and not here.
  497. #
  498. ErrorLog logs/error_log
  499.  
  500. #
  501. # LogLevel: Control the number of messages logged to the error_log.
  502. # Possible values include: debug, info, notice, warn, error, crit,
  503. # alert, emerg.
  504. #
  505. LogLevel warn
  506.  
  507. #
  508. # The following directives define some format nicknames for use with
  509. # a CustomLog directive (see below).
  510. #
  511. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  512. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  513. LogFormat "%{Referer}i -> %U" referer
  514. LogFormat "%{User-agent}i" agent
  515.  
  516. # "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
  517. # requires the mod_logio module to be loaded.
  518. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  519.  
  520. #
  521. # The location and format of the access logfile (Common Logfile Format).
  522. # If you do not define any access logfiles within a <VirtualHost>
  523. # container, they will be logged here. Contrariwise, if you *do*
  524. # define per-<VirtualHost> access logfiles, transactions will be
  525. # logged therein and *not* in this file.
  526. #
  527. #CustomLog logs/access_log common
  528.  
  529. #
  530. # If you would like to have separate agent and referer logfiles, uncomment
  531. # the following directives.
  532. #
  533. #CustomLog logs/referer_log referer
  534. #CustomLog logs/agent_log agent
  535.  
  536. #
  537. # For a single logfile with access, agent, and referer information
  538. # (Combined Logfile Format), use the following directive:
  539. #
  540. CustomLog logs/access_log combined
  541.  
  542. #
  543. # Optionally add a line containing the server version and virtual host
  544. # name to server-generated pages (internal error documents, FTP directory
  545. # listings, mod_status and mod_info output etc., but not CGI generated
  546. # documents or custom error documents).
  547. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  548. # Set to one of: On | Off | EMail
  549. #
  550. ServerSignature On
  551.  
  552. #
  553. # Aliases: Add here as many aliases as you need (with no limit). The format is
  554. # Alias fakename realname
  555. #
  556. # Note that if you include a trailing / on fakename then the server will
  557. # require it to be present in the URL. So "/icons" isn't aliased in this
  558. # example, only "/icons/". If the fakename is slash-terminated, then the
  559. # realname must also be slash terminated, and if the fakename omits the
  560. # trailing slash, the realname must also omit it.
  561. #
  562. # We include the /icons/ alias for FancyIndexed directory listings. If you
  563. # do not use FancyIndexing, you may comment this out.
  564. #
  565. Alias /icons/ "/var/www/icons/"
  566.  
  567. <Directory "/var/www/icons">
  568. Options Indexes MultiViews FollowSymLinks
  569. AllowOverride None
  570. Order allow,deny
  571. Allow from all
  572. </Directory>
  573.  
  574. #
  575. # WebDAV module configuration section.
  576. #
  577. <IfModule mod_dav_fs.c>
  578. # Location of the WebDAV lock database.
  579. DAVLockDB /var/lib/dav/lockdb
  580. </IfModule>
  581.  
  582. #
  583. # ScriptAlias: This controls which directories contain server scripts.
  584. # ScriptAliases are essentially the same as Aliases, except that
  585. # documents in the realname directory are treated as applications and
  586. # run by the server when requested rather than as documents sent to the client.
  587. # The same rules about trailing "/" apply to ScriptAlias directives as to
  588. # Alias.
  589. #
  590. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  591.  
  592. #
  593. # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
  594. # CGI directory exists, if you have that configured.
  595. #
  596. <Directory "/var/www/cgi-bin">
  597. AllowOverride None
  598. Options None
  599. Order allow,deny
  600. Allow from all
  601. </Directory>
  602.  
  603. #
  604. # Redirect allows you to tell clients about documents which used to exist in
  605. # your server's namespace, but do not anymore. This allows you to tell the
  606. # clients where to look for the relocated document.
  607. # Example:
  608. # Redirect permanent /foo http://www.example.com/bar
  609.  
  610. #
  611. # Directives controlling the display of server-generated directory listings.
  612. #
  613.  
  614. #
  615. # IndexOptions: Controls the appearance of server-generated directory
  616. # listings.
  617. #
  618. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
  619.  
  620. #
  621. # AddIcon* directives tell the server which icon to show for different
  622. # files or filename extensions. These are only displayed for
  623. # FancyIndexed directories.
  624. #
  625. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  626.  
  627. AddIconByType (TXT,/icons/text.gif) text/*
  628. AddIconByType (IMG,/icons/image2.gif) image/*
  629. AddIconByType (SND,/icons/sound2.gif) audio/*
  630. AddIconByType (VID,/icons/movie.gif) video/*
  631.  
  632. AddIcon /icons/binary.gif .bin .exe
  633. AddIcon /icons/binhex.gif .hqx
  634. AddIcon /icons/tar.gif .tar
  635. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  636. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  637. AddIcon /icons/a.gif .ps .ai .eps
  638. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  639. AddIcon /icons/text.gif .txt
  640. AddIcon /icons/c.gif .c
  641. AddIcon /icons/p.gif .pl .py
  642. AddIcon /icons/f.gif .for
  643. AddIcon /icons/dvi.gif .dvi
  644. AddIcon /icons/uuencoded.gif .uu
  645. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  646. AddIcon /icons/tex.gif .tex
  647. AddIcon /icons/bomb.gif /core
  648.  
  649. AddIcon /icons/back.gif ..
  650. AddIcon /icons/hand.right.gif README
  651. AddIcon /icons/folder.gif ^^DIRECTORY^^
  652. AddIcon /icons/blank.gif ^^BLANKICON^^
  653.  
  654. #
  655. # DefaultIcon is which icon to show for files which do not have an icon
  656. # explicitly set.
  657. #
  658. DefaultIcon /icons/unknown.gif
  659.  
  660. #
  661. # AddDescription allows you to place a short description after a file in
  662. # server-generated indexes. These are only displayed for FancyIndexed
  663. # directories.
  664. # Format: AddDescription "description" filename
  665. #
  666. #AddDescription "GZIP compressed document" .gz
  667. #AddDescription "tar archive" .tar
  668. #AddDescription "GZIP compressed tar archive" .tgz
  669.  
  670. #
  671. # ReadmeName is the name of the README file the server will look for by
  672. # default, and append to directory listings.
  673. #
  674. # HeaderName is the name of a file which should be prepended to
  675. # directory indexes.
  676. ReadmeName README.html
  677. HeaderName HEADER.html
  678.  
  679. #
  680. # IndexIgnore is a set of filenames which directory indexing should ignore
  681. # and not include in the listing. Shell-style wildcarding is permitted.
  682. #
  683. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  684.  
  685. #
  686. # DefaultLanguage and AddLanguage allows you to specify the language of
  687. # a document. You can then use content negotiation to give a browser a
  688. # file in a language the user can understand.
  689. #
  690. # Specify a default language. This means that all data
  691. # going out without a specific language tag (see below) will
  692. # be marked with this one. You probably do NOT want to set
  693. # this unless you are sure it is correct for all cases.
  694. #
  695. # * It is generally better to not mark a page as
  696. # * being a certain language than marking it with the wrong
  697. # * language!
  698. #
  699. # DefaultLanguage nl
  700. #
  701. # Note 1: The suffix does not have to be the same as the language
  702. # keyword --- those with documents in Polish (whose net-standard
  703. # language code is pl) may wish to use "AddLanguage pl .po" to
  704. # avoid the ambiguity with the common suffix for perl scripts.
  705. #
  706. # Note 2: The example entries below illustrate that in some cases
  707. # the two character 'Language' abbreviation is not identical to
  708. # the two character 'Country' code for its country,
  709. # E.g. 'Danmark/dk' versus 'Danish/da'.
  710. #
  711. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  712. # specifier. There is 'work in progress' to fix this and get
  713. # the reference data for rfc1766 cleaned up.
  714. #
  715. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  716. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  717. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  718. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  719. # Norwegian (no) - Polish (pl) - Portugese (pt)
  720. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  721. # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  722. #
  723. AddLanguage ca .ca
  724. AddLanguage cs .cz .cs
  725. AddLanguage da .dk
  726. AddLanguage de .de
  727. AddLanguage el .el
  728. AddLanguage en .en
  729. AddLanguage eo .eo
  730. AddLanguage es .es
  731. AddLanguage et .et
  732. AddLanguage fr .fr
  733. AddLanguage he .he
  734. AddLanguage hr .hr
  735. AddLanguage it .it
  736. AddLanguage ja .ja
  737. AddLanguage ko .ko
  738. AddLanguage ltz .ltz
  739. AddLanguage nl .nl
  740. AddLanguage nn .nn
  741. AddLanguage no .no
  742. AddLanguage pl .po
  743. AddLanguage pt .pt
  744. AddLanguage pt-BR .pt-br
  745. AddLanguage ru .ru
  746. AddLanguage sv .sv
  747. AddLanguage zh-CN .zh-cn
  748. AddLanguage zh-TW .zh-tw
  749.  
  750. #
  751. # LanguagePriority allows you to give precedence to some languages
  752. # in case of a tie during content negotiation.
  753. #
  754. # Just list the languages in decreasing order of preference. We have
  755. # more or less alphabetized them here. You probably want to change this.
  756. #
  757. LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
  758.  
  759. #
  760. # ForceLanguagePriority allows you to serve a result page rather than
  761. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  762. # [in case no accepted languages matched the available variants]
  763. #
  764. ForceLanguagePriority Prefer Fallback
  765.  
  766. #
  767. # Specify a default charset for all content served; this enables
  768. # interpretation of all content as UTF-8 by default. To use the
  769. # default browser choice (ISO-8859-1), or to allow the META tags
  770. # in HTML content to override this choice, comment out this
  771. # directive:
  772. #
  773. AddDefaultCharset UTF-8
  774.  
  775. #
  776. # AddType allows you to add to or override the MIME configuration
  777. # file mime.types for specific file types.
  778. #
  779. #AddType application/x-tar .tgz
  780.  
  781. #
  782. # AddEncoding allows you to have certain browsers uncompress
  783. # information on the fly. Note: Not all browsers support this.
  784. # Despite the name similarity, the following Add* directives have nothing
  785. # to do with the FancyIndexing customization directives above.
  786. #
  787. #AddEncoding x-compress .Z
  788. #AddEncoding x-gzip .gz .tgz
  789.  
  790. # If the AddEncoding directives above are commented-out, then you
  791. # probably should define those extensions to indicate media types:
  792. #
  793. AddType application/x-compress .Z
  794. AddType application/x-gzip .gz .tgz
  795.  
  796. #
  797. # MIME-types for downloading Certificates and CRLs
  798. #
  799. AddType application/x-x509-ca-cert .crt
  800. AddType application/x-pkcs7-crl .crl
  801.  
  802. #
  803. # AddHandler allows you to map certain file extensions to "handlers":
  804. # actions unrelated to filetype. These can be either built into the server
  805. # or added with the Action directive (see below)
  806. #
  807. # To use CGI scripts outside of ScriptAliased directories:
  808. # (You will also need to add "ExecCGI" to the "Options" directive.)
  809. #
  810. #AddHandler cgi-script .cgi
  811.  
  812. #
  813. # For files that include their own HTTP headers:
  814. #
  815. #AddHandler send-as-is asis
  816.  
  817. #
  818. # For type maps (negotiated resources):
  819. # (This is enabled by default to allow the Apache "It Worked" page
  820. # to be distributed in multiple languages.)
  821. #
  822. AddHandler type-map var
  823.  
  824. #
  825. # Filters allow you to process content before it is sent to the client.
  826. #
  827. # To parse .shtml files for server-side includes (SSI):
  828. # (You will also need to add "Includes" to the "Options" directive.)
  829. #
  830. AddType text/html .shtml
  831. AddOutputFilter INCLUDES .shtml
  832.  
  833. #
  834. # Action lets you define media types that will execute a script whenever
  835. # a matching file is called. This eliminates the need for repeated URL
  836. # pathnames for oft-used CGI file processors.
  837. # Format: Action media/type /cgi-script/location
  838. # Format: Action handler-name /cgi-script/location
  839. #
  840.  
  841. #
  842. # Customizable error responses come in three flavors:
  843. # 1) plain text 2) local redirects 3) external redirects
  844. #
  845. # Some examples:
  846. #ErrorDocument 500 "The server made a boo boo."
  847. #ErrorDocument 404 /missing.html
  848. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  849. #ErrorDocument 402 http://www.example.com/subscription_info.html
  850. #
  851.  
  852. #
  853. # Putting this all together, we can internationalize error responses.
  854. #
  855. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  856. # our collection of by-error message multi-language collections. We use
  857. # includes to substitute the appropriate text.
  858. #
  859. # You can modify the messages' appearance without changing any of the
  860. # default HTTP_<error>.html.var files by adding the line:
  861. #
  862. # Alias /error/include/ "/your/include/path/"
  863. #
  864. # which allows you to create your own set of files by starting with the
  865. # /var/www/error/include/ files and
  866. # copying them to /your/include/path/, even on a per-VirtualHost basis.
  867. #
  868.  
  869. Alias /error/ "/var/www/error/"
  870.  
  871. <IfModule mod_negotiation.c>
  872. <IfModule mod_include.c>
  873. <Directory "/var/www/error">
  874. AllowOverride All
  875. Options IncludesNoExec
  876. AddOutputFilter Includes html
  877. AddHandler type-map var
  878. Order allow,deny
  879. Allow from all
  880. LanguagePriority en es de fr
  881. ForceLanguagePriority Prefer Fallback
  882. </Directory>
  883.  
  884. # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  885. # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  886. # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  887. # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  888. # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  889. # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  890. # ErrorDocument 410 /error/HTTP_GONE.html.var
  891. # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  892. # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  893. # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  894. # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  895. # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  896. # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  897. # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  898. # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  899. # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  900. # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  901.  
  902. </IfModule>
  903. </IfModule>
  904.  
  905. #
  906. # The following directives modify normal HTTP response behavior to
  907. # handle known problems with browser implementations.
  908. #
  909. BrowserMatch "Mozilla/2" nokeepalive
  910. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  911. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  912. BrowserMatch "Java/1\.0" force-response-1.0
  913. BrowserMatch "JDK/1\.0" force-response-1.0
  914.  
  915. #
  916. # The following directive disables redirects on non-GET requests for
  917. # a directory that does not include the trailing slash. This fixes a
  918. # problem with Microsoft WebFolders which does not appropriately handle
  919. # redirects for folders with DAV methods.
  920. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  921. #
  922. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  923. BrowserMatch "MS FrontPage" redirect-carefully
  924. BrowserMatch "^WebDrive" redirect-carefully
  925. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  926. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  927. BrowserMatch "^XML Spy" redirect-carefully
  928. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  929.  
  930. #
  931. # Allow server status reports generated by mod_status,
  932. # with the URL of http://servername/server-status
  933. # Change the ".example.com" to match your domain to enable.
  934. #
  935. #<Location /server-status>
  936. # SetHandler server-status
  937. # Order deny,allow
  938. # Deny from all
  939. # Allow from .example.com
  940. #</Location>
  941.  
  942. #
  943. # Allow remote server configuration reports, with the URL of
  944. # http://servername/server-info (requires that mod_info.c be loaded).
  945. # Change the ".example.com" to match your domain to enable.
  946. #
  947. #<Location /server-info>
  948. # SetHandler server-info
  949. # Order deny,allow
  950. # Deny from all
  951. # Allow from .example.com
  952. #</Location>
  953.  
  954. #
  955. # Proxy Server directives. Uncomment the following lines to
  956. # enable the proxy server:
  957. #
  958. #<IfModule mod_proxy.c>
  959. #ProxyRequests On
  960. #
  961. #<Proxy *>
  962. # Order deny,allow
  963. # Deny from all
  964. # Allow from .example.com
  965. #</Proxy>
  966.  
  967. #
  968. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  969. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  970. # Set to one of: Off | On | Full | Block
  971. #
  972. #ProxyVia On
  973.  
  974. #
  975. # To enable a cache of proxied content, uncomment the following lines.
  976. # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
  977. #
  978. #<IfModule mod_disk_cache.c>
  979. # CacheEnable disk /
  980. # CacheRoot "/var/cache/mod_proxy"
  981. #</IfModule>
  982. #
  983.  
  984. #</IfModule>
  985. # End of proxy directives.
  986.  
  987. ### Section 3: Virtual Hosts
  988. #
  989. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  990. # machine you can setup VirtualHost containers for them. Most configurations
  991. # use only name-based virtual hosts so the server doesn't need to worry about
  992. # IP addresses. This is indicated by the asterisks in the directives below.
  993. #
  994. # Please see the documentation at
  995. # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
  996. # for further details before you try to setup virtual hosts.
  997. #
  998. # You may use the command line option '-S' to verify your virtual host
  999. # configuration.
  1000.  
  1001. #
  1002. # Use name-based virtual hosting.
  1003. #
  1004. #NameVirtualHost *:80
  1005. #
  1006. # NOTE: NameVirtualHost cannot be used without a port specifier
  1007. # (e.g. :80) if mod_ssl is being used, due to the nature of the
  1008. # SSL protocol.
  1009. #
  1010.  
  1011. #
  1012. # VirtualHost example:
  1013. # Almost any Apache directive may go into a VirtualHost container.
  1014. # The first VirtualHost section is used for requests without a known
  1015. # server name.
  1016. #
  1017. #<VirtualHost *:80>
  1018. # ServerAdmin webmaster@dummy-host.example.com
  1019. # DocumentRoot /www/docs/dummy-host.example.com
  1020. # ServerName dummy-host.example.com
  1021. # ErrorLog logs/dummy-host.example.com-error_log
  1022. # CustomLog logs/dummy-host.example.com-access_log common
  1023. #</VirtualHost>
  1024. <IfModule mpm_prefork_module>
  1025. StartServers 12
  1026. MinSpareServers 60
  1027. MaxSpareServers 120
  1028. MaxClients 256
  1029. MaxRequestsPerChild 4500
  1030. </IfModule>
  1031. <IfModule mod_ssl.c>
  1032. Listen 443
  1033. NameVirtualHost *:443
  1034. </IfModule>
  1035. Include /etc/httpd/conf/httpd-le-ssl.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement