Advertisement
Guest User

Untitled

a guest
Aug 4th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.20 KB | None | 0 0
  1. # $Id: httpd.conf 466259 2009-11-15 13:46:12Z oden $
  2. # $HeadURL: svn+ssh://svn.mandriva.com/svn/packages/cooker/apache-conf/current/SOURCES/httpd.conf $
  3. #
  4. # Based upon the NCSA server configuration files originally by Rob McCool.
  5. #
  6. # This is the main Apache server configuration file. It contains the
  7. # configuration directives that give the server its instructions.
  8. # See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
  9. # the directives.
  10. #
  11. # Do NOT simply read the instructions in here without understanding
  12. # what they do. They're here only as hints or reminders. If you are unsure
  13. # consult the online docs. You have been warned.
  14. #
  15. # The configuration directives are grouped into three basic sections:
  16. # 1. Directives that control the operation of the Apache server process as a
  17. # whole (the 'global environment').
  18. # 2. Directives that define the parameters of the 'main' or 'default' server,
  19. # which responds to requests that aren't handled by a virtual host.
  20. # These directives also provide default values for the settings
  21. # of all virtual hosts.
  22. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  23. # different IP addresses or hostnames and have them handled by the
  24. # same Apache server process.
  25. #
  26. # Configuration and logfile names: If the filenames you specify for many
  27. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  28. # server will use that explicit path. If the filenames do *not* begin
  29. # with "/", the value of ServerRoot is prepended -- so "/var/log/httpd/foo.log"
  30. # with ServerRoot set to "/etc/httpd" will be interpreted by the
  31. # server as "/etc/httpd/logs/httpd/foo.log".
  32. #
  33.  
  34. ### Section 1: Global Environment
  35. #
  36. # The directives in this section affect the overall operation of Apache,
  37. # such as the number of concurrent requests it can handle or where it
  38. # can find its configuration files.
  39. #
  40.  
  41. #
  42. # ServerRoot: The top of the directory tree under which the server's
  43. # configuration, error, and log files are kept.
  44. #
  45. # NOTE! If you intend to place this on an NFS (or otherwise network)
  46. # mounted filesystem then please read the LockFile documentation (available
  47. # at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);
  48. # you will save yourself a lot of trouble.
  49. #
  50. # Do NOT add a slash at the end of the directory path.
  51. #
  52. ServerRoot "/etc/httpd"
  53.  
  54. # GracefulShutDownTimeout: Specify a timeout after which a gracefully shutdown server will exit.
  55. GracefulShutDownTimeout 120
  56.  
  57. ##
  58. ## Server-Pool Size Regulation (MPM specific)
  59. ##
  60.  
  61.  
  62. # AcceptMutex: Method that Apache uses to serialize multiple children accepting requests
  63. # on network sockets. fcntl is default on Mandriva Linux
  64. # CoreDumpDirectory: Directory where Apache attempts to switch before dumping core
  65. # EnableExceptionHook: Enables a hook that runs exception handlers after a crash
  66. # ListenBackLog: Maximum length of the queue of pending connections
  67. # LockFile: Location of the accept serialization lock file
  68. # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
  69. # MaxClients: Maximum number of child processes that will be created to serve requests
  70. # MaxMemFree: Maximum amount of memory that the main allocator is allowed to hold without calling free()
  71. # MaxRequestsPerChild: Limit on the number of requests that an individual child server will handle during its life
  72. # PidFile: File where the server records the process ID of the daemon
  73. # ReceiveBufferSize: TCP receive buffer size
  74. # ScoreBoardFile: Location of the file used to store coordination data for the child processes
  75. # SendBufferSize: TCP buffer size
  76. # ServerLimit: Upper limit on configurable number of processes
  77. # StartServers: Number of child server processes created at startup
  78. # MinSpareServers: Minimum number of idle children, to handle request spikes
  79. # MaxSpareServers: Maximum number of idle children
  80.  
  81. # prefork MPM [THIS IS THE DEFAULT]
  82. <IfModule mpm_prefork_module>
  83. AcceptMutex fcntl
  84. CoreDumpDirectory /tmp
  85. EnableExceptionHook Off
  86. ListenBacklog 511
  87. LockFile logs/accept.lock
  88. MaxClients 256
  89. MaxMemFree 0
  90. MaxRequestsPerChild 4000
  91. PidFile /var/run/httpd.pid
  92. ReceiveBufferSize 0
  93. # ScoreBoardFile logs/apache_runtime_status
  94. SendBufferSize 0
  95. ServerLimit 256
  96. StartServers 8
  97. MinSpareServers 5
  98. MaxSpareServers 20
  99. </IfModule>
  100.  
  101. # worker MPM
  102. # MaxSpareThreads: Maximum number of idle threads
  103. # MinSpareThreads: Minimum number of idle threads available to handle request spikes
  104. # ThreadLimit: Sets the upper limit on the configurable number of threads per child process
  105. # ThreadsPerChild: Number of threads created by each child process
  106. # ThreadStackSize: The size in bytes of the stack used by threads handling client connections
  107. <IfModule mpm_worker_module>
  108. AcceptMutex fcntl
  109. CoreDumpDirectory /tmp
  110. EnableExceptionHook Off
  111. ListenBacklog 511
  112. LockFile logs/accept.lock
  113. MaxClients 150
  114. MaxMemFree 0
  115. MaxRequestsPerChild 0
  116. MaxSpareThreads 75
  117. MinSpareThreads 25
  118. PidFile /var/run/httpd.pid
  119. ReceiveBufferSize 0
  120. # ScoreBoardFile logs/apache_runtime_status
  121. SendBufferSize 0
  122. ServerLimit 256
  123. StartServers 2
  124. ThreadLimit 64
  125. ThreadsPerChild 25
  126. ThreadStackSize 65536
  127. </IfModule>
  128.  
  129. # event MPM
  130. <IfModule mpm_event_module>
  131. AcceptMutex fcntl
  132. CoreDumpDirectory /tmp
  133. EnableExceptionHook Off
  134. ListenBacklog 511
  135. LockFile logs/accept.lock
  136. MaxClients 150
  137. MaxMemFree 0
  138. MaxRequestsPerChild 0
  139. MaxSpareThreads 75
  140. MinSpareThreads 25
  141. PidFile /var/run/httpd.pid
  142. ReceiveBufferSize 0
  143. # ScoreBoardFile logs/apache_runtime_status
  144. SendBufferSize 0
  145. ServerLimit 256
  146. StartServers 2
  147. ThreadLimit 64
  148. ThreadsPerChild 25
  149. ThreadStackSize 65536
  150. </IfModule>
  151.  
  152. # itk MPM
  153. # AssignUserID - Tie a virtual host to a specific child process.
  154. # MaxClientsVHost - Maximum number of children alive at the same time for this virtual host.
  155. # NiceValue - Set nice value for the given vhost, from -20 (highest priority) to 19 (lowest priority).
  156. <IfModule itk.c>
  157. AcceptMutex fcntl
  158. CoreDumpDirectory /tmp
  159. AssignUserID apache apache
  160. StartServers 8
  161. MinSpareServers 5
  162. MaxSpareServers 20
  163. ServerLimit 256
  164. MaxClients 256
  165. MaxRequestsPerChild 4000
  166. </IfModule>
  167.  
  168. # Peruser MPM
  169. # ServerLimit: Maximum value of MaxClients for this run of Apache
  170. # MaxClients: Maximum number of children alive at the same time
  171. # MinSpareProcessors: Minimum number of idle children,
  172. # to handle request spikes
  173. # MinProcessors: Minimum number of processors per vhost
  174. # MaxProcessors: Maximum number of processors per vhost
  175. # ExpireTimeout: Maximum idle time before a child is killed, 0 to disable
  176. # Multiplexer: Specify a Multiplexer child configuration.
  177. # Processor: Specify a user and group for a specific child process
  178. <IfModule mpm_peruser_module>
  179. ServerLimit 256
  180. MaxClients 256
  181. MinSpareProcessors 2
  182. MaxProcessors 10
  183. MaxRequestsPerChild 1000
  184.  
  185. # kill idle processors after this many seconds (0 to disable)
  186. IdleTimeout 60
  187.  
  188. # kill hung processes after this many seconds (0 to disable)
  189. ExpireTimeout 300
  190.  
  191. # set up a few multiplexer processes running as apache
  192. Multiplexer apache apache
  193. Multiplexer apache apache
  194. Multiplexer apache apache
  195.  
  196. # Processor <user> <group> <chroot>
  197. # chroot is optional
  198. </IfModule>
  199.  
  200. #
  201. # Listen: Allows you to bind Apache to specific IP addresses and/or
  202. # ports, instead of the default. See also the <VirtualHost>
  203. # directive.
  204. #
  205. # Change this to Listen on specific IP addresses as shown below to
  206. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  207. #
  208. #Listen 12.34.56.78:80
  209. Listen 80
  210.  
  211. #
  212. # Dynamic Shared Object (DSO) Support
  213. #
  214. # To be able to use the functionality of a module which was built as a DSO you
  215. # have to place corresponding `LoadModule' lines at this location so the
  216. # directives contained in it are actually available _before_ they are used.
  217. # Statically compiled modules (those listed by `httpd -l') do not need
  218. # to be loaded here.
  219. #
  220. # Example:
  221. # LoadModule foo_module modules/mod_foo.so
  222. #
  223. LoadModule authn_file_module modules/mod_authn_file.so
  224. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  225. LoadModule authn_anon_module modules/mod_authn_anon.so
  226. ## LoadModule authn_dbd_module modules/mod_authn_dbd.so -> available in the apache-mod_authn_dbd package
  227. LoadModule authn_default_module modules/mod_authn_default.so
  228. LoadModule authn_alias_module modules/mod_authn_alias.so
  229. LoadModule authz_host_module modules/mod_authz_host.so
  230. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  231. LoadModule authz_user_module modules/mod_authz_user.so
  232. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  233. LoadModule authz_owner_module modules/mod_authz_owner.so
  234. ## LoadModule authnz_ldap_module modules/mod_authnz_ldap.so -> available in the apache-mod_ldap package
  235. LoadModule authz_default_module modules/mod_authz_default.so
  236. LoadModule auth_basic_module modules/mod_auth_basic.so
  237. LoadModule auth_digest_module modules/mod_auth_digest.so
  238. ## LoadModule cache_module modules/mod_cache.so -> available in the apache-mod_cache package
  239. ## LoadModule disk_cache_module modules/mod_disk_cache.so -> available in the apache-mod_disk_cache package
  240. ## LoadModule mem_cache_module modules/mod_mem_cache.so -> available in the apache-mod_mem_cache package
  241. ## LoadModule dbd_module modules/mod_dbd.so -> available in the apache-mod_dbd package
  242. ## LoadModule bucketeer_module modules/mod_bucketeer.so <- only used for tests and debugging
  243. ## LoadModule dumpio_module modules/mod_dumpio.so <- only used for tests and debugging
  244. #LoadModule echo_module modules/mod_echo.so
  245. #LoadModule example_module modules/mod_example.so
  246. #LoadModule case_filter_module modules/mod_case_filter.so
  247. #LoadModule case_filter_in_module modules/mod_case_filter_in.so
  248. #LoadModule ext_filter_module modules/mod_ext_filter.so
  249. LoadModule include_module modules/mod_include.so
  250. LoadModule filter_module modules/mod_filter.so
  251. LoadModule substitute_module modules/mod_substitute.so
  252. #LoadModule charset_lite_module modules/mod_charset_lite.so
  253. ## LoadModule deflate_module modules/mod_deflate.so -> available in the apache-mod_deflate package
  254. ## LoadModule ldap_module modules/mod_ldap.so -> available in the apache-mod_ldap package
  255. LoadModule log_config_module modules/mod_log_config.so
  256. #LoadModule log_forensic_module modules/mod_log_forensic.so
  257. #LoadModule logio_module modules/mod_logio.so
  258. LoadModule env_module modules/mod_env.so
  259. LoadModule mime_magic_module modules/mod_mime_magic.so
  260. #LoadModule cern_meta_module modules/mod_cern_meta.so
  261. LoadModule expires_module modules/mod_expires.so
  262. LoadModule headers_module modules/mod_headers.so
  263. #LoadModule ident_module modules/mod_ident.so
  264. LoadModule usertrack_module modules/mod_usertrack.so
  265. LoadModule unique_id_module modules/mod_unique_id.so
  266. LoadModule setenvif_module modules/mod_setenvif.so
  267. LoadModule version_module modules/mod_version.so
  268. ## LoadModule proxy_module modules/mod_proxy.so -> available in the apache-mod_proxy package
  269. ## LoadModule proxy_connect_module modules/mod_proxy_connect.so -> available in the apache-mod_proxy package
  270. ## LoadModule proxy_ftp_module modules/mod_proxy_ftp.so -> available in the apache-mod_proxy package
  271. ## LoadModule proxy_http_module modules/mod_proxy_http.so -> available in the apache-mod_proxy package
  272. ## LoadModule proxy_scgi_module modules/mod_proxy_scgi.so -> available in the apache-mod_proxy_scgi package
  273. ## LoadModule proxy_ajp_module modules/mod_proxy_ajp.so -> available in the apache-mod_proxy_ajp package
  274. ## LoadModule proxy_balancer_module modules/mod_proxy_balancer.so -> available in the apache-mod_proxy package
  275. ## LoadModule ssl_module modules/mod_ssl.so -> available in the apache-mod_ssl package
  276. ## LoadModule optional_hook_export_module modules/mod_optional_hook_export.so <- only used for tests
  277. ## LoadModule optional_hook_import_module modules/mod_optional_hook_import.so <- only used for tests
  278. ## LoadModule optional_fn_import_module modules/mod_optional_fn_import.so <- only used for tests
  279. ## LoadModule optional_fn_export_module modules/mod_optional_fn_export.so <- only used for tests
  280. LoadModule mime_module modules/mod_mime.so
  281. ## LoadModule dav_module modules/mod_dav.so -> available in the apache-mod_dav package
  282. LoadModule status_module modules/mod_status.so
  283. LoadModule autoindex_module modules/mod_autoindex.so
  284. #LoadModule asis_module modules/mod_asis.so
  285. LoadModule info_module modules/mod_info.so
  286. ## LoadModule suexec_module modules/mod_suexec.so -> available in the apache-mod_suexec package
  287. LoadModule cgi_module modules/mod_cgi.so
  288. #LoadModule cgid_module modules/mod_cgid.so <- use this with the worker MPM
  289. ## LoadModule dav_fs_module modules/mod_dav_fs.so -> available in the apache-mod_dav package
  290. ## LoadModule dav_lock_module modules/mod_dav_lock.so -> available in the apache-mod_dav package
  291. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  292. LoadModule negotiation_module modules/mod_negotiation.so
  293. LoadModule dir_module modules/mod_dir.so
  294. LoadModule imagemap_module modules/mod_imagemap.so
  295. LoadModule actions_module modules/mod_actions.so
  296. #LoadModule speling_module modules/mod_speling.so
  297. ## LoadModule userdir_module modules/mod_userdir.so -> available in the apache-mod_userdir package
  298. LoadModule alias_module modules/mod_alias.so
  299. LoadModule rewrite_module modules/mod_rewrite.so
  300. LoadModule php5_module extramodules/mod_php5.so
  301.  
  302. # Bring in additional module-specific configurations
  303. #
  304. Include modules.d/*.conf
  305.  
  306. # include legacy conf.d during a transition period
  307. Include conf.d/*.conf
  308.  
  309. ### Section 2: 'Main' server configuration
  310. #
  311. # The directives in this section set up the values used by the 'main'
  312. # server, which responds to any requests that aren't handled by a
  313. # <VirtualHost> definition. These values also provide defaults for
  314. # any <VirtualHost> containers you may define later in the file.
  315. #
  316. # All of these directives may appear inside <VirtualHost> containers,
  317. # in which case these default settings will be overridden for the
  318. # virtual host being defined.
  319. #
  320.  
  321. #
  322. # If you wish httpd to run as a different user or group, you must run
  323. # httpd as root initially and it will switch.
  324. #
  325. # User/Group: The name (or #number) of the user/group to run httpd as.
  326. # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  327. # . On HPUX you may not be able to use shared memory as nobody, and the
  328. # suggested workaround is to create a user www and use that user.
  329. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  330. # when the value of (unsigned)Group is above 60000;
  331. # don't use Group #-1 on these systems!
  332. #
  333. User apache
  334. Group apache
  335.  
  336. #
  337. # ServerAdmin: Your address, where problems with the server should be
  338. # e-mailed. This address appears on some server-generated pages, such
  339. # as error documents. e.g. admin@your-domain.com
  340. #
  341. ServerAdmin root@localhost
  342.  
  343. #
  344. # ServerName gives the name and port that the server uses to identify itself.
  345. # This can often be determined automatically, but we recommend you specify
  346. # it explicitly to prevent problems during startup.
  347. #
  348. # If this is not set to valid DNS name for your host, server-generated
  349. # redirections will not work. See also the UseCanonicalName directive.
  350. #
  351. # If your host doesn't have a registered DNS name, enter its IP address here.
  352. # You will have to access it by its address anyway, and this will make
  353. # redirections work in a sensible way.
  354. #
  355. #ServerName www.example.com:80
  356.  
  357. #
  358. # Timeout: The number of seconds before receives and sends time out.
  359. #
  360. Timeout 300
  361.  
  362. #
  363. # KeepAlive: Whether or not to allow persistent connections (more than
  364. # one request per connection). Set to "Off" to deactivate.
  365. #
  366. KeepAlive On
  367.  
  368. #
  369. # MaxKeepAliveRequests: The maximum number of requests to allow
  370. # during a persistent connection. Set to 0 to allow an unlimited amount.
  371. # We recommend you leave this number high, for maximum performance.
  372. #
  373. MaxKeepAliveRequests 100
  374.  
  375. #
  376. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  377. # same client on the same connection.
  378. #
  379. KeepAliveTimeout 5
  380.  
  381. #
  382. # UseCanonicalName: Determines how Apache constructs self-referencing
  383. # URLs and the SERVER_NAME and SERVER_PORT variables.
  384. # When set "Off", Apache will use the Hostname and Port supplied
  385. # by the client. When set "On", Apache will use the value of the
  386. # ServerName directive.
  387. #
  388. UseCanonicalName Off
  389.  
  390. #
  391. # ServerTokens
  392. # This directive configures what you return as the Server HTTP response
  393. # Header. The default is 'Full' which sends information about the OS-Type
  394. # and compiled in modules.
  395. # Set to one of: Full | OS | Minor | Minimal | Major | Prod
  396. # where Full conveys the most information, and Prod the least.
  397. #
  398. ServerTokens OS
  399.  
  400. #
  401. # Optionally add a line containing the server version and virtual host
  402. # name to server-generated pages (internal error documents, FTP directory
  403. # listings, mod_status and mod_info output etc., but not CGI generated
  404. # documents or custom error documents).
  405. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  406. # Set to one of: On | Off | EMail
  407. #
  408. ServerSignature On
  409.  
  410. #
  411. # HostnameLookups: Log the names of clients or just their IP addresses
  412. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  413. # The default is off because it'd be overall better for the net if people
  414. # had to knowingly turn this feature on, since enabling it means that
  415. # each client request will result in AT LEAST one lookup request to the
  416. # nameserver.
  417. #
  418. HostnameLookups Off
  419.  
  420. #
  421. # DocumentRoot/mnt/win_d/Webserver
  422. # documents. By default, all requests are taken from this directory, but
  423. # symbolic links and aliases may be used to point to other locations.
  424. #
  425. DocumentRoot /mnt/win_d/Webserver
  426.  
  427. #
  428. # Each directory to which Apache has access can be configured with respect
  429. # to which services and features are allowed and/or disabled in that
  430. # directory (and its subdirectories).
  431. #
  432. # First, we configure the "default" to be a very restrictive set of
  433. # features.
  434. #
  435.  
  436. <Directory /mnt/win_d/Webserver>
  437. Options -All -Multiviews
  438. AllowOverride None
  439. Order deny,allow
  440. Deny from all
  441. </Directory>
  442.  
  443. #
  444. # Note that from this point forward you must specifically allow
  445. # particular features to be enabled - so if something's not working as
  446. # you might expect, make sure that you have specifically enabled it
  447. # below.
  448. #
  449.  
  450. #
  451. # This should be changed to whatever you set DocumentRoot to.
  452. #
  453. <Directory /mnt/win_d/Webserver>
  454.  
  455. # Possible values for the Options directive are "None", "All",
  456. # or any combination of:
  457. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  458. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  459. # doesn't give it to you.
  460. # The Options directive is both complicated and important. Please see
  461. # http://httpd.apache.org/docs-2.0/mod/core.html#options
  462. # for more information.
  463.  
  464. Options -Indexes FollowSymLinks MultiViews
  465.  
  466. #
  467. # AllowOverride controls what directives may be placed in .htaccess files.
  468. # It can be "All", "None", or any combination of the keywords:
  469. # Options FileInfo AuthConfig Limit Indexes
  470.  
  471. AllowOverride None
  472.  
  473. # Controls who can get stuff from this server.
  474. Order allow,deny
  475. Allow from 192.168.1. 127.0.0.1
  476.  
  477. </Directory>
  478.  
  479. #
  480. # DirectoryIndex: sets the file that Apache will serve if a directory
  481. # is requested.
  482. #
  483. # The index.html.var file (a type-map) is used to deliver content-
  484. # negotiated documents. The MultiViews Option can be used for the
  485. # same purpose, but it is much slower.
  486. #
  487.  
  488. <IfModule mod_include.c>
  489. <IfModule mod_dir.c>
  490. DirectoryIndex index.shtml
  491. </IfModule>
  492. </IfModule>
  493.  
  494. <IfModule mod_dir.c>
  495. DirectoryIndex index.html index.html.var index.cgi index.pl index.htm Default.htm default.htm index.xml
  496. </IfModule>
  497.  
  498. #
  499. # AccessFileName: The name of the file to look for in each directory
  500. # for additional configuration directives. See also the AllowOverride
  501. # directive.
  502. #
  503. AccessFileName .htaccess
  504.  
  505. #
  506. # The following lines prevent .htaccess and .htpasswd files from being
  507. # viewed by Web clients.
  508. #
  509. <IfModule mod_authz_host.c>
  510. <FilesMatch "^\.ht">
  511. Order allow,deny
  512. Deny from all
  513. </FilesMatch>
  514. </IfModule>
  515.  
  516. #
  517. # TypesConfig describes where the mime.types file (or equivalent) is
  518. # to be found.
  519. #
  520. <IfModule mod_mime.c>
  521. TypesConfig conf/mime.types
  522. </IfModule>
  523.  
  524. #
  525. # DefaultType is the default MIME type the server will use for a document
  526. # if it cannot otherwise determine one, such as from filename extensions.
  527. # If your server contains mostly text or HTML documents, "text/plain" is
  528. # a good value. If most of your content is binary, such as applications
  529. # or images, you may want to use "application/octet-stream" instead to
  530. # keep browsers from trying to display binary files as though they are
  531. # text.
  532. #
  533. DefaultType text/plain
  534.  
  535. #
  536. # The mod_mime_magic module allows the server to use various hints from the
  537. # contents of the file itself to determine its type. The MIMEMagicFile
  538. # directive tells the module where the hint definitions are located.
  539. #
  540. <IfModule mod_mime_magic.c>
  541. MIMEMagicFile conf/magic
  542. </IfModule>
  543.  
  544.  
  545. #
  546. # EnableMMAP: Control whether memory-mapping is used to deliver
  547. # files (assuming that the underlying OS supports it).
  548. # The default is on; turn this off if you serve from NFS-mounted
  549. # filesystems. On some systems, turning it off (regardless of
  550. # filesystem) can improve performance; for details, please see
  551. # http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
  552. #
  553. #EnableMMAP off
  554.  
  555. #
  556. # EnableSendfile: Control whether the sendfile kernel support is
  557. # used to deliver files (assuming that the OS supports it).
  558. # The default is on; turn this off if you serve from NFS-mounted
  559. # filesystems. Please see
  560. # http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile
  561. #
  562. #EnableSendfile off
  563.  
  564. #
  565. # ErrorLog: The location of the error log file.
  566. # If you do not specify an ErrorLog directive within a <VirtualHost>
  567. # container, error messages relating to that virtual host will be
  568. # logged here. If you *do* define an error logfile for a <VirtualHost>
  569. # container, that host's errors will be logged there and not here.
  570. #
  571. ErrorLog logs/error_log
  572.  
  573. #
  574. # LogLevel: Control the number of messages logged to the error_log.
  575. # Possible values include: debug, info, notice, warn, error, crit,
  576. # alert, emerg.
  577. #
  578. LogLevel warn
  579.  
  580. #
  581. # The following directives define some format nicknames for use with
  582. # a CustomLog directive (see below).
  583. #
  584. <IfModule mod_log_config.c>
  585. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  586. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  587. LogFormat "%{Referer}i -> %U" referer
  588. LogFormat "%{User-agent}i" agent
  589. LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost
  590.  
  591. <IfModule mod_logio.c>
  592. # You need to enable mod_logio.c to use %I and %O
  593. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  594. </IfModule>
  595.  
  596. #
  597. # The location and format of the access logfile (Common Logfile Format).
  598. # If you do not define any access logfiles within a <VirtualHost>
  599. # container, they will be logged here. Contrariwise, if you *do*
  600. # define per-<VirtualHost> access logfiles, transactions will be
  601. # logged therein and *not* in this file.
  602. #
  603. #CustomLog logs/access_log common
  604.  
  605. #
  606. # If you would like to have agent and referer logfiles, uncomment the
  607. # following directives.
  608. #
  609. #CustomLog logs/referer_log referer
  610. #CustomLog logs/agent_log agent
  611.  
  612. #
  613. # If you prefer a single logfile with access, agent, and referer information
  614. # (Combined Logfile Format) you can use the following directive.
  615. #
  616. CustomLog logs/access_log combined
  617.  
  618. #Single logfile with access, agent and referer information
  619. #This is the default, if vlogs are not defined for the main server
  620. #CustomLog logs/access_log combined env=!VLOG
  621. #If VLOG is defined in a conf/vhosts.d/*.conf, we use this entry
  622. #CustomLog "|/usr/sbin/advxsplitlogfile" vhost env=VLOG
  623.  
  624. </IfModule>
  625.  
  626.  
  627. #
  628. # Aliases: Add here as many aliases as you need (with no limit). The format is
  629. # Alias fakename realname
  630. #
  631. <IfModule mod_alias.c>
  632. # Note that if you include a trailing / on fakename then the server will
  633. # require it to be present in the URL. So "/icons" isn't aliased in this
  634. # example, only "/icons/". If the fakename is slash-terminated, then the
  635. # realname must also be slash terminated, and if the fakename omits the
  636. # trailing slash, the realname must also omit it.
  637. # We include the /icons/ alias for FancyIndexed directory listings. If you
  638. # do not use FancyIndexing, you may comment this out.
  639. Alias /icons/ "/var/www/icons/"
  640. Alias /error/ "/var/www/error/"
  641.  
  642. # ScriptAlias: This controls which directories contain server scripts.
  643. # ScriptAliases are essentially the same as Aliases, except that
  644. # documents in the realname directory are treated as applications and
  645. # run by the server when requested rather than as documents sent to the client.
  646. # The same rules about trailing "/" apply to ScriptAlias directives as to
  647. # Alias.
  648. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  649. ScriptAlias /protected-cgi-bin/ "/var/www/protected-cgi-bin/"
  650. </IfModule>
  651.  
  652. <Directory /mnt/win_d/Webserver>
  653. Options -Indexes MultiViews
  654. AllowOverride None
  655. Order allow,deny
  656. Allow from 192.168.1. 127.0.0.1
  657. </Directory>
  658.  
  659. <IfModule mod_cgid.c>
  660. # Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
  661. # for setting UNIX socket for communicating with cgid.
  662. #Scriptsock /var/run/cgisock
  663. </IfModule>
  664.  
  665. #
  666. # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
  667. # CGI directory exists, if you have that configured.
  668. #
  669. <Directory /mnt/win_d/Webserver>
  670. AllowOverride All
  671. Options ExecCGI
  672. Order allow,deny
  673. Allow from 192.168.1. 127.0.0.1
  674. </Directory>
  675.  
  676. <Directory /mnt/win_d/Webserver>
  677. AllowOverride All
  678. Options ExecCGI
  679. Order deny,allow
  680. Deny from all
  681. Allow from 192.168.1. 127.0.0.1
  682. #allow from .your_domain.com
  683. </Directory>
  684.  
  685. #
  686. # Redirect allows you to tell clients about documents which used to exist in
  687. # your server's namespace, but do not anymore. This allows you to tell the
  688. # clients where to look for the relocated document.
  689. # Example:
  690. # Redirect permanent /foo http://www.example.com/bar
  691.  
  692. #
  693. # Directives controlling the display of server-generated directory listings.
  694. #
  695. #
  696. # IndexOptions: Controls the appearance of server-generated directory
  697. # listings.
  698. #
  699. <IfModule mod_autoindex.c>
  700. # FancyIndexing is whether you want fancy directory indexing or standard
  701. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
  702.  
  703. # AddIcon* directives tell the server which icon to show for different
  704. # files or filename extensions. These are only displayed for
  705. # FancyIndexed directories.
  706. AddIconByEncoding (CMP,/icons/compressed.png) x-compress x-gzip
  707.  
  708. AddIconByType (TXT,/icons/text.png) text/*
  709. AddIconByType (IMG,/icons/image2.png) image/*
  710. AddIconByType (SND,/icons/sound2.png) audio/*
  711. AddIconByType (VID,/icons/movie.png) video/*
  712.  
  713. AddIcon /icons/binary.png .bin .exe
  714. AddIcon /icons/binhex.png .hqx
  715. AddIcon /icons/tar.png .tar
  716. AddIcon /icons/world2.png .wrl .wrl.gz .vrml .vrm .iv
  717. AddIcon /icons/compressed.png .Z .z .tgz .gz .zip
  718. AddIcon /icons/a.png .ps .ai .eps
  719. AddIcon /icons/layout.png .html .shtml .htm .pdf
  720. AddIcon /icons/text.png .txt
  721. AddIcon /icons/c.png .c
  722. AddIcon /icons/p.png .pl .py
  723. AddIcon /icons/f.png .for
  724. AddIcon /icons/dvi.png .dvi
  725. AddIcon /icons/uuencoded.png .uu
  726. AddIcon /icons/script.png .conf .sh .shar .csh .ksh .tcl
  727. AddIcon /icons/tex.png .tex
  728. AddIcon /icons/bomb.png core
  729.  
  730. AddIcon /icons/back.png ..
  731. AddIcon /icons/hand.right.png README
  732. AddIcon /icons/folder.png ^^DIRECTORY^^
  733. AddIcon /icons/blank.png ^^BLANKICON^^
  734.  
  735. # DefaultIcon is which icon to show for files which do not have an icon
  736. # explicitly set.
  737. DefaultIcon /icons/unknown.png
  738.  
  739. # AddDescription allows you to place a short description after a file in
  740. # server-generated indexes. These are only displayed for FancyIndexed
  741. # directories.
  742. # Format: AddDescription "description" filename
  743. #AddDescription "GZIP compressed document" .gz
  744. #AddDescription "tar archive" .tar
  745. #AddDescription "GZIP compressed tar archive" .tgz
  746.  
  747. # ReadmeName is the name of the README file the server will look for by
  748. # default, and append to directory listings.
  749. # HeaderName is the name of a file which should be prepended to
  750. # directory indexes.
  751. ReadmeName README.html
  752. HeaderName HEADER.html
  753.  
  754. # IndexIgnore is a set of filenames which directory indexing should ignore
  755. # and not include in the listing. Shell-style wildcarding is permitted.
  756. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  757. </IfModule>
  758. # End of indexing directives.
  759.  
  760. #
  761. # DefaultLanguage and AddLanguage allows you to specify the language of
  762. # a document. You can then use content negotiation to give a browser a
  763. # file in a language the user can understand.
  764. #
  765. # Specify a default language. This means that all data
  766. # going out without a specific language tag (see below) will
  767. # be marked with this one. You probably do NOT want to set
  768. # this unless you are sure it is correct for all cases.
  769. #
  770. # * It is generally better to not mark a page as
  771. # * being a certain language than marking it with the wrong
  772. # * language!
  773. #
  774. # DefaultLanguage nl
  775. #
  776. # Note 1: The suffix does not have to be the same as the language
  777. # keyword --- those with documents in Polish (whose net-standard
  778. # language code is pl) may wish to use "AddLanguage pl .po" to
  779. # avoid the ambiguity with the common suffix for perl scripts.
  780. #
  781. # Note 2: The example entries below illustrate that in some cases
  782. # the two character 'Language' abbreviation is not identical to
  783. # the two character 'Country' code for its country,
  784. # E.g. 'Danmark/dk' versus 'Danish/da'.
  785. #
  786. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  787. # specifier. There is 'work in progress' to fix this and get
  788. # the reference data for rfc1766 cleaned up.
  789. #
  790. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  791. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  792. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  793. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  794. # Norwegian (no) - Polish (pl) - Portugese (pt)
  795. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  796. # Turkish (tr) - Simplified Chinese (zh-CN) - Spanish (es)
  797. # Traditional Chinese (zh-TW)
  798. #
  799.  
  800. <IfModule mod_mime.c>
  801. AddLanguage ca .ca
  802. AddLanguage cs .cz .cs
  803. AddLanguage da .dk
  804. AddLanguage de .de
  805. AddLanguage el .el
  806. AddLanguage en .en
  807. AddLanguage eo .eo
  808. AddLanguage es .es
  809. AddLanguage et .et
  810. AddLanguage fr .fr
  811. AddLanguage he .he
  812. AddLanguage hr .hr
  813. AddLanguage it .it
  814. AddLanguage ja .ja
  815. AddLanguage ko .ko
  816. AddLanguage ltz .ltz
  817. AddLanguage nl .nl
  818. AddLanguage nn .nn
  819. AddLanguage no .no
  820. AddLanguage pl .po
  821. AddLanguage pt .pt
  822. AddLanguage pt-BR .pt-br
  823. AddLanguage ru .ru
  824. AddLanguage sv .sv
  825. AddLanguage tr .tr
  826. AddLanguage zh-CN .zh-cn
  827. AddLanguage zh-TW .zh-tw
  828.  
  829. # LanguagePriority allows you to give precedence to some languages
  830. # in case of a tie during content negotiation.
  831. # Just list the languages in decreasing order of preference. We have
  832. # more or less alphabetized them here. You probably want to change this.
  833. <IfModule mod_negotiation.c>
  834. 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 tr zh-CN zh-TW
  835. </IfModule>
  836.  
  837. # ForceLanguagePriority allows you to serve a result page rather than
  838. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  839. # [in case no accepted languages matched the available variants]
  840. <IfModule mod_negotiation.c>
  841. ForceLanguagePriority Prefer Fallback
  842. </IfModule>
  843.  
  844. # Commonly used filename extensions to character sets. You probably
  845. # want to avoid clashes with the language extensions, unless you
  846. # are good at carefully testing your setup after each change.
  847. # See http://www.iana.org/assignments/character-sets for the
  848. # official list of charset names and their respective RFCs.
  849. AddCharset us-ascii.ascii .us-ascii
  850. AddCharset ISO-8859-1 .iso8859-1 .latin1
  851. AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
  852. AddCharset ISO-8859-3 .iso8859-3 .latin3
  853. AddCharset ISO-8859-4 .iso8859-4 .latin4
  854. AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
  855. AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
  856. AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
  857. AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
  858. AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
  859. AddCharset ISO-8859-10 .iso8859-10 .latin6
  860. AddCharset ISO-8859-13 .iso8859-13
  861. AddCharset ISO-8859-14 .iso8859-14 .latin8
  862. AddCharset ISO-8859-15 .iso8859-15 .latin9
  863. AddCharset ISO-8859-16 .iso8859-16 .latin10
  864. AddCharset ISO-2022-JP .iso2022-jp .jis
  865. AddCharset ISO-2022-KR .iso2022-kr .kis
  866. AddCharset ISO-2022-CN .iso2022-cn .cis
  867. AddCharset Big5 .Big5 .big5
  868.  
  869. # For russian, more than one charset is used (depends on client, mostly):
  870. AddCharset WINDOWS-1251 .cp-1251 .win-1251
  871. AddCharset CP866 .cp866
  872. AddCharset KOI8 .koi8
  873. AddCharset KOI8-E .koi8-e
  874. AddCharset KOI8-r .koi8-r .koi8-ru
  875. AddCharset KOI8-U .koi8-u
  876. AddCharset KOI8-ru .koi8-uk .ua
  877. AddCharset ISO-10646-UCS-2 .ucs2
  878. AddCharset ISO-10646-UCS-4 .ucs4
  879. AddCharset UTF-7 .utf7
  880. AddCharset UTF-8 .utf8
  881. AddCharset UTF-16 .utf16
  882. AddCharset UTF-16BE .utf16be
  883. AddCharset UTF-16LE .utf16le
  884. AddCharset UTF-32 .utf32
  885. AddCharset UTF-32BE .utf32be
  886. AddCharset UTF-32LE .utf32le
  887.  
  888. # The set below does not map to a specific (iso) standard
  889. # but works on a fairly wide range of browsers. Note that
  890. # capitalization actually matters (it should not, but it
  891. # does for some browsers).
  892. #
  893. # See http://www.iana.org/assignments/character-sets
  894. # for a list of sorts. But browsers support few.
  895. AddCharset GB2312 .gb2312 .gb
  896. AddCharset utf-7 .utf7
  897. AddCharset utf-8 .utf8
  898. AddCharset big5 .big5 .b5
  899. AddCharset EUC-TW .euc-tw
  900. AddCharset EUC-JP .euc-jp
  901. AddCharset EUC-KR .euc-kr
  902. AddCharset shift_jis .shift_jis .sjis
  903.  
  904. # Specify a default charset for all pages sent out. This is
  905. # always a good idea and opens the door for future internationalisation
  906. # of your web site, should you ever want it. Specifying it as
  907. # a default does little harm; as the standard dictates that a page
  908. # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
  909. # are merely stating the obvious. There are also some security
  910. # reasons in browsers, related to javascript and URL parsing
  911. # which encourage you to always set a default char set.
  912. #AddDefaultCharset ISO-8859-1
  913. # JMD 2003/09/15 Change to off, since it overrides the META tags
  914. AddDefaultCharset Off
  915.  
  916. # AddType allows you to add to or override the MIME configuration
  917. # file mime.types for specific file types.
  918. #AddType application/x-tar .tgz
  919.  
  920. # AddEncoding allows you to have certain browsers uncompress
  921. # information on the fly. Note: Not all browsers support this.
  922. # Despite the name similarity, the following Add* directives have nothing
  923. # to do with the FancyIndexing customization directives above.
  924. #AddEncoding x-compress .Z
  925. #AddEncoding x-gzip .gz .tgz
  926. # If the AddEncoding directives above are commented-out, then you
  927. # probably should define those extensions to indicate media types:
  928. AddType application/x-compress .Z
  929. AddType application/x-gzip .gz .tgz
  930. AddType image/x-icon .ico
  931.  
  932. # AddHandler allows you to map certain file extensions to "handlers":
  933. # actions unrelated to filetype. These can be either built into the server
  934. # or added with the Action directive (see below)
  935. # To use CGI scripts outside of ScriptAliased directories:
  936. # (You will also need to add "ExecCGI" to the "Options" directive.)
  937. AddHandler cgi-script .cgi
  938.  
  939. # For files that include their own HTTP headers:
  940. #AddHandler send-as-is asis
  941.  
  942. # For server-parsed imagemap files:
  943. AddHandler imap-file map
  944.  
  945. # For type maps (negotiated resources):
  946. # (This is enabled by default to allow the Apache "It Worked" page
  947. # to be distributed in multiple languages.)
  948. AddHandler type-map var
  949.  
  950. # Filters allow you to process content before it is sent to the client.
  951. # To parse .shtml files for server-side includes (SSI):
  952. # (You will also need to add "Includes" to the "Options" directive.)
  953. <IfModule mod_include.c>
  954. AddType text/html .shtml
  955. AddOutputFilter INCLUDES .shtml
  956. </IfModule>
  957. </IfModule>
  958.  
  959. #
  960. # Action lets you define media types that will execute a script whenever
  961. # a matching file is called. This eliminates the need for repeated URL
  962. # pathnames for oft-used CGI file processors.
  963. # Format: Action media/type /cgi-script/location
  964. # Format: Action handler-name /cgi-script/location
  965. #
  966.  
  967. #
  968. # Customizable error responses come in three flavors:
  969. # 1) plain text 2) local redirects 3) external redirects
  970. #
  971. # Some examples:
  972. #ErrorDocument 500 "The server made a boo boo."
  973. #ErrorDocument 404 /missing.html
  974. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  975. #ErrorDocument 402 http://www.example.com/subscription_info.html
  976. #
  977.  
  978. #
  979. # Putting this all together, we can internationalize error responses.
  980. #
  981. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  982. # our collection of by-error message multi-language collections. We use
  983. # includes to substitute the appropriate text.
  984. #
  985. # You can modify the messages' appearance without changing any of the
  986. # default HTTP_<error>.html.var files by adding the line:
  987. #
  988. # Alias /error/include/ "/your/include/path/"
  989. #
  990. # which allows you to create your own set of files by starting with the
  991. # /var/www/error/include/ files and copying them to /your/include/path/,
  992. # even on a per-VirtualHost basis. The default include files will display
  993. # your Apache version number and your ServerAdmin email address regardless
  994. # of the setting of ServerSignature.
  995. #
  996. # The internationalized error documents require mod_alias, mod_include
  997. # and mod_negotiation. To activate them, uncomment the following 30 lines.
  998.  
  999. <IfModule mod_negotiation.c>
  1000. <IfModule mod_include.c>
  1001.  
  1002. <Directory /mnt/win_d/Webserver>
  1003. AllowOverride None
  1004. Options IncludesNoExec
  1005. AddOutputFilter Includes html
  1006. AddHandler type-map var
  1007. Order allow,deny
  1008. Allow from 192.168.1. 127.0.0.1
  1009. LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
  1010. ForceLanguagePriority Prefer Fallback
  1011. </Directory>
  1012.  
  1013. ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  1014. ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  1015. ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  1016. ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  1017. ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  1018. ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  1019. ErrorDocument 410 /error/HTTP_GONE.html.var
  1020. ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  1021. ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  1022. ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  1023. ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  1024. ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  1025. ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  1026. ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  1027. ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  1028. ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  1029. ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  1030.  
  1031. </IfModule>
  1032. </IfModule>
  1033.  
  1034. <IfModule mod_setenvif.c>
  1035. # The following directives modify normal HTTP response behavior to
  1036. # handle known problems with browser implementations.
  1037. BrowserMatch "Mozilla/2" nokeepalive
  1038. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  1039. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  1040. BrowserMatch "Java/1\.0" force-response-1.0
  1041. BrowserMatch "JDK/1\.0" force-response-1.0
  1042.  
  1043. # The following directive disables redirects on non-GET requests for
  1044. # a directory that does not include the trailing slash. This fixes a
  1045. # problem with Microsoft WebFolders which does not appropriately handle
  1046. # redirects for folders with DAV methods.
  1047. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  1048. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  1049. BrowserMatch "MS FrontPage" redirect-carefully
  1050. BrowserMatch "^WebDrive" redirect-carefully
  1051. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  1052. BrowserMatch "^gnome-vfs" redirect-carefully
  1053. BrowserMatch "^XML Spy" redirect-carefully
  1054. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  1055. </IfModule>
  1056.  
  1057. #
  1058. # Get information about the requests being processed by the server
  1059. # and the configuration of the server.
  1060. #
  1061. # Required modules: mod_status (for the server-status handler),
  1062. # mod_info (for the server-info handler)
  1063.  
  1064. #
  1065. # Allow server status reports generated by mod_status,
  1066. # with the URL of http://servername/server-status
  1067. # Change the ".example.com" to match your domain to enable.
  1068. <IfModule mod_status.c>
  1069. <Location /server-status>
  1070. SetHandler server-status
  1071. Order deny,allow
  1072. Deny from all
  1073. allow from 127.0.0.1
  1074. #Allow from .your_domain.com
  1075. </Location>
  1076.  
  1077. # ExtendedStatus controls whether Apache will generate "full" status
  1078. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  1079. # Off) when the "server-status" handler is called. The default is Off.
  1080. ExtendedStatus On
  1081. </IfModule>
  1082.  
  1083. #
  1084. # Allow remote server configuration reports, with the URL of
  1085. # http://servername/server-info (requires that mod_info.c be loaded).
  1086. # Change the ".example.com" to match your domain to enable.
  1087. #
  1088. <IfModule mod_info.c>
  1089. <Location /server-info>
  1090. SetHandler server-info
  1091. Order deny,allow
  1092. Deny from all
  1093. allow from 127.0.0.1
  1094. #Allow from .your_domain.com
  1095. </Location>
  1096. </IfModule>
  1097.  
  1098. <IfModule mod_usertrack.c>
  1099. # This is the default.
  1100. CookieName Apache
  1101. </IfModule>
  1102.  
  1103. <Directory /mnt/win_d/Webserver>
  1104. Options Indexes FollowSymLinks
  1105. </Directory>
  1106.  
  1107. <Location /index.shtml>
  1108. Options +Includes
  1109. </Location>
  1110.  
  1111. <IfModule mod_speling.c>
  1112. CheckSpelling On
  1113. AcceptPathInfo On
  1114. </IfModule>
  1115.  
  1116. Include conf/fileprotector.conf
  1117.  
  1118. # webapps configuration section
  1119. # Web applications should be activated _after_ apache has been
  1120. # configured properly.
  1121. Include conf/webapps.d/*.conf
  1122.  
  1123. ### Section 3: Virtual Hosts
  1124. #
  1125. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  1126. # machine you can setup VirtualHost containers for them. Most configurations
  1127. # use only name-based virtual hosts so the server doesn't need to worry about
  1128. # IP addresses. This is indicated by the asterisks in the directives below.
  1129. #
  1130. # Please see the documentation at
  1131. # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
  1132. # for further details before you try to setup virtual hosts.
  1133. #
  1134. # You may use the command line option '-S' to verify your virtual host
  1135. # configuration.
  1136.  
  1137. #
  1138. # Use name-based virtual hosting.
  1139. #
  1140. #NameVirtualHost *:80
  1141. #Setenv VLOG
  1142.  
  1143. #
  1144. # VirtualHost example:
  1145. # Almost any Apache directive may go into a VirtualHost container.
  1146. # The first VirtualHost section is used for requests without a known
  1147. # server name.
  1148. #
  1149. #<VirtualHost *:80>
  1150. # ServerAdmin webmaster@dummy-host.example.com
  1151. # DocumentRoot /mnt/win_d/Webserver
  1152. # ServerName dummy-host.example.com
  1153. # ErrorLog /var/log/httpd/dummy-host.example.com-error_log
  1154. # CustomLog /var/log/httpd/dummy-host.example.com-access_log common
  1155. #</VirtualHost>
  1156.  
  1157. ################################################################################
  1158. # virtual hosts configuration section
  1159. # Include virtual hosts, if any
  1160. Include conf/vhosts.d/*.conf
  1161.  
  1162. # disable TRACE (CVE-2009-2823)
  1163. TraceEnable Off
  1164. # add usermod dir support
  1165. <IfModule mod_userdir.c>
  1166. UserDir disabled
  1167. </IfModule>
  1168.  
  1169. <Directory /home/*/>
  1170. AllowOverride FileInfo AuthConfig Limit
  1171. Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  1172. <Limit GET POST OPTIONS PROPFIND>
  1173. Order allow,deny
  1174. Allow from all
  1175. </Limit>
  1176. <LimitExcept GET POST OPTIONS PROPFIND>
  1177. Order deny,allow
  1178. Deny from all
  1179. </LimitExcept>
  1180. </Directory>
  1181.  
  1182. ##############################################################################################3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement