Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2018
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.46 KB | None | 0 0
  1. #
  2. # This is the main Apache HTTP server configuration file. It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do. They're here only as hints or reminders. If you are unsure
  11. # consult the online docs. You have been warned.
  12. #
  13. # Configuration and logfile names: If the filenames you specify for many
  14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  15. # server will use that explicit path. If the filenames do *not* begin
  16. # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
  17. # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
  18. # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
  19. # will be interpreted as '/logs/access_log'.
  20.  
  21. #
  22. # ServerRoot: The top of the directory tree under which the server's
  23. # configuration, error, and log files are kept.
  24. #
  25. # Do not add a slash at the end of the directory path. If you point
  26. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  27. # Mutex directive, if file-based mutexes are used. If you wish to share the
  28. # same ServerRoot for multiple httpd daemons, you will need to change at
  29. # least PidFile.
  30. #
  31. ServerRoot "/usr/local/apps/apache2"
  32.  
  33. #
  34. # PidFile: The file in which the server should record its process
  35. # identification number when it starts.
  36. #
  37. PidFile "logs/httpd.pid"
  38.  
  39. #
  40. # Timeout: The number of seconds before receives and sends time out.
  41. #
  42. #Timeout 120
  43.  
  44. #
  45. # KeepAlive: Whether or not to allow persistent connections (more than
  46. # one request per connection). Set to "Off" to deactivate.
  47. #
  48. KeepAlive Off
  49.  
  50. #
  51. # Don't give away too much information about all the subcomponents
  52. # we are running. Comment out this line if you don't mind remote sites
  53. # finding out what major optional modules you are running
  54. ServerTokens ProductOnly
  55.  
  56. # MaxKeepAliveRequests: The maximum number of requests to allow
  57. # during a persistent connection. Set to 0 to allow an unlimited amount.
  58. # We recommend you leave this number high, for maximum performance.
  59. #
  60. MaxKeepAliveRequests 100
  61.  
  62. #
  63. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  64. # same client on the same connection.
  65. #
  66. KeepAliveTimeout 15
  67.  
  68. ##
  69. ## Server-Pool Size Regulation (MPM specific)
  70. ##
  71.  
  72. # prefork MPM
  73. # StartServers: number of server processes to start
  74. # MinSpareServers: minimum number of server processes which are kept spare
  75. # MaxSpareServers: maximum number of server processes which are kept spare
  76. # ServerLimit: maximum value for MaxClients for the lifetime of the server
  77. # MaxClients: maximum number of server processes allowed to start
  78. # MaxRequestsPerChild: maximum number of requests a server process serves
  79. <IfModule prefork.c>
  80. StartServers 2
  81. MinSpareServers 5
  82. MaxSpareServers 10
  83. ServerLimit 256
  84. MaxRequestWorkers 256
  85. MaxConnectionsPerChild 10000
  86. </IfModule>
  87.  
  88. # worker MPM
  89. # StartServers: initial number of server processes to start
  90. # MaxClients: maximum number of simultaneous client connections
  91. # MinSpareThreads: minimum number of worker threads which are kept spare
  92. # MaxSpareThreads: maximum number of worker threads which are kept spare
  93. # ThreadsPerChild: constant number of worker threads in each server process
  94. # MaxRequestsPerChild: maximum number of requests a server process serves
  95. <IfModule worker.c>
  96. StartServers 2
  97. MaxClients 150
  98. MinSpareThreads 25
  99. MaxSpareThreads 75
  100. ThreadsPerChild 25
  101. MaxRequestsPerChild 10000
  102. </IfModule>
  103.  
  104. #
  105. # Listen: Allows you to bind Apache to specific IP addresses and/or
  106. # ports, instead of the default. See also the <VirtualHost>
  107. # directive.
  108. #
  109. # Change this to Listen on specific IP addresses as shown below to
  110. # prevent Apache from glomming onto all bound IP addresses.
  111. #
  112. #Listen 12.34.56.78:80
  113. Listen 80
  114.  
  115. #
  116. # Dynamic Shared Object (DSO) Support
  117. #
  118. # To be able to use the functionality of a module which was built as a DSO you
  119. # have to place corresponding `LoadModule' lines at this location so the
  120. # directives contained in it are actually available _before_ they are used.
  121. # Statically compiled modules (those listed by `httpd -l') do not need
  122. # to be loaded here.
  123. #
  124. # Example:
  125. # LoadModule foo_module modules/mod_foo.so
  126. #
  127.  
  128. #Libxml required to be loaded for mod_proxy_html
  129. LoadFile /usr/local/apps/lib/libxml2.so.2
  130.  
  131. LoadModule authn_file_module modules/mod_authn_file.so
  132. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  133. #LoadModule authn_anon_module modules/mod_authn_anon.so
  134. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  135. #LoadModule authn_socache_module modules/mod_authn_socache.so
  136. LoadModule authn_core_module modules/mod_authn_core.so
  137. LoadModule authz_host_module modules/mod_authz_host.so
  138. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  139. LoadModule authz_user_module modules/mod_authz_user.so
  140. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  141. #LoadModule authz_owner_module modules/mod_authz_owner.so
  142. #LoadModule authz_dbd_module modules/mod_authz_dbd.so
  143. LoadModule authz_core_module modules/mod_authz_core.so
  144. LoadModule access_compat_module modules/mod_access_compat.so
  145. LoadModule auth_basic_module modules/mod_auth_basic.so
  146. #LoadModule auth_form_module modules/mod_auth_form.so
  147. #LoadModule auth_digest_module modules/mod_auth_digest.so
  148. #LoadModule allowmethods_module modules/mod_allowmethods.so
  149. #LoadModule file_cache_module modules/mod_file_cache.so
  150. #LoadModule cache_module modules/mod_cache.so
  151. #LoadModule cache_disk_module modules/mod_cache_disk.so
  152. #LoadModule cache_socache_module modules/mod_cache_socache.so
  153. LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  154. #LoadModule socache_dbm_module modules/mod_socache_dbm.so
  155. #LoadModule socache_memcache_module modules/mod_socache_memcache.so
  156. #LoadModule watchdog_module modules/mod_watchdog.so
  157. #LoadModule macro_module modules/mod_macro.so
  158. #LoadModule dbd_module modules/mod_dbd.so
  159. #LoadModule dumpio_module modules/mod_dumpio.so
  160. #LoadModule echo_module modules/mod_echo.so
  161. #LoadModule buffer_module modules/mod_buffer.so
  162. #LoadModule data_module modules/mod_data.so
  163. #LoadModule ratelimit_module modules/mod_ratelimit.so
  164. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  165. #LoadModule ext_filter_module modules/mod_ext_filter.so
  166. #LoadModule request_module modules/mod_request.so
  167. #LoadModule include_module modules/mod_include.so
  168. LoadModule filter_module modules/mod_filter.so
  169. #LoadModule reflector_module modules/mod_reflector.so
  170. #LoadModule substitute_module modules/mod_substitute.so
  171. #LoadModule sed_module modules/mod_sed.so
  172. #LoadModule charset_lite_module modules/mod_charset_lite.so
  173. #LoadModule deflate_module modules/mod_deflate.so
  174. LoadModule xml2enc_module modules/mod_xml2enc.so
  175. LoadModule proxy_html_module modules/mod_proxy_html.so
  176. LoadModule mime_module modules/mod_mime.so
  177. LoadModule log_config_module modules/mod_log_config.so
  178. #LoadModule log_debug_module modules/mod_log_debug.so
  179. #LoadModule log_forensic_module modules/mod_log_forensic.so
  180. #LoadModule logio_module modules/mod_logio.so
  181. LoadModule env_module modules/mod_env.so
  182. #LoadModule mime_magic_module modules/mod_mime_magic.so
  183. #LoadModule expires_module modules/mod_expires.so
  184. LoadModule headers_module modules/mod_headers.so
  185. #LoadModule usertrack_module modules/mod_usertrack.so
  186. #LoadModule unique_id_module modules/mod_unique_id.so
  187. LoadModule setenvif_module modules/mod_setenvif.so
  188. LoadModule version_module modules/mod_version.so
  189. #LoadModule remoteip_module modules/mod_remoteip.so
  190. LoadModule proxy_module modules/mod_proxy.so
  191. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  192. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  193. LoadModule proxy_http_module modules/mod_proxy_http.so
  194. LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
  195. #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  196. #LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
  197. #LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
  198. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  199. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  200. #LoadModule proxy_express_module modules/mod_proxy_express.so
  201. #LoadModule session_module modules/mod_session.so
  202. #LoadModule session_cookie_module modules/mod_session_cookie.so
  203. #LoadModule session_dbd_module modules/mod_session_dbd.so
  204. #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  205. #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
  206. LoadModule ssl_module modules/mod_ssl.so
  207. #LoadModule dialup_module modules/mod_dialup.so
  208. #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
  209. #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
  210. #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
  211. #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
  212. LoadModule unixd_module modules/mod_unixd.so
  213. #LoadModule heartbeat_module modules/mod_heartbeat.so
  214. #LoadModule heartmonitor_module modules/mod_heartmonitor.so
  215. #LoadModule dav_module modules/mod_dav.so
  216. LoadModule status_module modules/mod_status.so
  217. LoadModule autoindex_module modules/mod_autoindex.so
  218. #LoadModule asis_module modules/mod_asis.so
  219. LoadModule info_module modules/mod_info.so
  220. LoadModule cgi_module modules/mod_cgi.so
  221. #LoadModule dav_fs_module modules/mod_dav_fs.so
  222. #LoadModule dav_lock_module modules/mod_dav_lock.so
  223. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  224. #LoadModule negotiation_module modules/mod_negotiation.so
  225. LoadModule dir_module modules/mod_dir.so
  226. #LoadModule actions_module modules/mod_actions.so
  227. #LoadModule speling_module modules/mod_speling.so
  228. #LoadModule userdir_module modules/mod_userdir.so
  229. LoadModule alias_module modules/mod_alias.so
  230. LoadModule rewrite_module modules/mod_rewrite.so
  231. SetEnv TMP "/usr/local/apps/apache2/tmp"
  232.  
  233. <IfModule !mpm_netware_module>
  234. <IfModule !mpm_winnt_module>
  235. #
  236. #Include etc/conf.d/*.conf
  237. ExtendedStatus On
  238. # If you wish httpd to run as a different user or group, you must run
  239. # httpd as root initially and it will switch.
  240. #
  241. # User/Group: The name (or #number) of the user/group to run httpd as.
  242. # It is usually good practice to create a dedicated user and group for
  243. # running httpd, as with most system services.
  244. #
  245. User apache
  246. Group apache
  247.  
  248. </IfModule>
  249. </IfModule>
  250.  
  251. # 'Main' server configuration
  252. #
  253. # The directives in this section set up the values used by the 'main'
  254. # server, which responds to any requests that aren't handled by a
  255. # <VirtualHost> definition. These values also provide defaults for
  256. # any <VirtualHost> containers you may define later in the file.
  257. #
  258. # All of these directives may appear inside <VirtualHost> containers,
  259. # in which case these default settings will be overridden for the
  260. # virtual host being defined.
  261. #
  262.  
  263. #
  264. # ServerAdmin: Your address, where problems with the server should be
  265. # e-mailed. This address appears on some server-generated pages, such
  266. # as error documents. e.g. admin@your-domain.com
  267. #
  268. ServerAdmin root@localhost
  269.  
  270. #
  271. # Optionally add a line containing the server version and virtual host
  272. # name to server-generated pages (internal error documents, FTP directory
  273. # listings, mod_status and mod_info output etc., but not CGI generated
  274. # documents or custom error documents).
  275. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  276. # Set to one of: On | Off | EMail
  277. #
  278. ServerSignature Off
  279.  
  280. # ServerName gives the name and port that the server uses to identify itself.
  281. # This can often be determined automatically, but we recommend you specify
  282. # it explicitly to prevent problems during startup.
  283. #
  284. # If your host doesn't have a registered DNS name, enter its IP address here.
  285. #
  286. #ServerName www.example.com:80
  287. ServerName 127.0.0.1:80
  288. #
  289. # DocumentRoot: The directory out of which you will serve your
  290. # documents. By default, all requests are taken from this directory, but
  291. # symbolic links and aliases may be used to point to other locations.
  292. #
  293. DocumentRoot "www"
  294.  
  295. #
  296. # Each directory to which Apache has access can be configured with respect
  297. # to which services and features are allowed and/or disabled in that
  298. # directory (and its subdirectories).
  299. #
  300. # First, we configure the "default" to be a very restrictive set of
  301. # features.
  302. #
  303. <Directory />
  304. Options FollowSymLinks
  305. AllowOverride All
  306. </Directory>
  307.  
  308. #
  309. # Note that from this point forward you must specifically allow
  310. # particular features to be enabled - so if something's not working as
  311. # you might expect, make sure that you have specifically enabled it
  312. # below.
  313. #
  314.  
  315. #
  316. # DocumentRoot: The directory out of which you will serve your
  317. # documents. By default, all requests are taken from this directory, but
  318. # symbolic links and aliases may be used to point to other locations.
  319. #
  320. DocumentRoot "/usr/local/apps/apache2/www/htdocs"
  321. <Directory "/usr/local/apps/apache2/www/htdocs">
  322. #
  323. # Possible values for the Options directive are "None", "All",
  324. # or any combination of:
  325. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  326. #
  327. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  328. # doesn't give it to you.
  329. #
  330. # The Options directive is both complicated and important. Please see
  331. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  332. # for more information.
  333. #
  334. Options Indexes FollowSymLinks
  335.  
  336. #
  337. # AllowOverride controls what directives may be placed in .htaccess files.
  338. # It can be "All", "None", or any combination of the keywords:
  339. # Options FileInfo AuthConfig Limit
  340. #
  341. AllowOverride All
  342.  
  343. #
  344. # Controls who can get stuff from this server.
  345. #
  346. Require all granted
  347.  
  348. </Directory>
  349.  
  350. Alias /error/ "/usr/local/apps/apache2/www/error/"
  351.  
  352. <IfModule mod_negotiation.c>
  353. <IfModule mod_include.c>
  354. <Directory "/usr/local/apps/apache2/www/error">
  355. AllowOverride None
  356. Options IncludesNoExec
  357. AddOutputFilter Includes html
  358. AddHandler type-map var
  359. Order allow,deny
  360. Allow from all
  361. LanguagePriority en es de fr
  362. ForceLanguagePriority Prefer Fallback
  363. </Directory>
  364. </IfModule>
  365. </IfModule>
  366.  
  367. <IfModule mod_userdir.c>
  368. #
  369. # UserDir is disabled by default since it can confirm the presence
  370. # of a username on the system (depending on home directory
  371. # permissions).
  372. #
  373. #UserDir disable
  374. #UserDir enable admin
  375. #
  376. # To enable requests to /~user/ to serve the user's public_html
  377. # directory, remove the "UserDir disable" line above, and uncomment
  378. # the following line instead:
  379. #
  380. #UserDir public_html
  381.  
  382. </IfModule>
  383. <Directory /home/*/public_html/>
  384. Options +Indexes +Includes +FollowSymLinks +ExecCGI
  385. AllowOverride All
  386. Require all granted
  387. </Directory>
  388. # DirectoryIndex: sets the file that Apache will serve if a directory
  389. # is requested.
  390. #
  391. ErrorDocument 500 /error/50x.html
  392. ErrorDocument 404 /error/404.html
  393.  
  394. DirectoryIndex noidex.html index.html index.html.var
  395.  
  396. #
  397. AccessFileName .htaccess
  398. # The following lines prevent .htaccess and .htpasswd files from being
  399. # viewed by Web clients.
  400. #
  401. <Files ~ "^\.ht">
  402. Require all denied
  403. Satisfy All
  404. </Files>
  405.  
  406. TraceEnable Off
  407.  
  408. #
  409. TypesConfig etc/mime.types
  410. #DefaultType text/plain
  411. # ErrorLog: The location of the error log file.
  412. # If you do not specify an ErrorLog directive within a <VirtualHost>
  413. # container, error messages relating to that virtual host will be
  414. # logged here. If you *do* define an error logfile for a <VirtualHost>
  415. # container, that host's errors will be logged there and not here.
  416. #
  417. ErrorLog /usr/local/apps/apache2/logs/error_log
  418.  
  419. #
  420. # LogLevel: Control the number of messages logged to the error_log.
  421. # Possible values include: debug, info, notice, warn, error, crit,
  422. # alert, emerg.
  423. #
  424. LogLevel warn
  425.  
  426. #Softaculous AMPPS Will take max 600 sec to process anything
  427. TimeOut 600
  428.  
  429. <IfModule log_config_module>
  430. #
  431. # The following directives define some format nicknames for use with
  432. # a CustomLog directive (see below).
  433. #
  434. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  435. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  436. LogFormat "%{Referer}i -> %U" referer
  437. LogFormat "%{User-agent}i" agent
  438.  
  439. <IfModule logio_module>
  440. # You need to enable mod_logio.c to use %I and %O
  441. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  442. </IfModule>
  443.  
  444. # The location and format of the access logfile (Common Logfile Format).
  445. # If you do not define any access logfiles within a <VirtualHost>
  446. # container, they will be logged here. Contrariwise, if you *do*
  447. # define per-<VirtualHost> access logfiles, transactions will be
  448. # logged therein and *not* in this file.
  449. #
  450. # CustomLog "logs/access_log" common
  451.  
  452. # If you prefer a logfile with access, agent, and referer information
  453. # (Combined Logfile Format) you can use the following directive.
  454. #
  455. CustomLog /usr/local/apps/apache2/logs/access_log combined
  456. </IfModule>
  457.  
  458. <IfModule alias_module>
  459. # Redirect: Allows you to tell clients about documents that used to
  460. # exist in your server's namespace, but do not anymore. The client
  461. # will make a new request for the document at its new location.
  462. # Example:
  463. # Redirect permanent /foo http://www.example.com/bar
  464.  
  465. # Alias: Maps web paths into filesystem paths and is used to
  466. # access content that does not live under the DocumentRoot.
  467. # Example:
  468. # Alias /webpath /full/filesystem/path
  469. # ============================================================================
  470. # Fancy directory listings
  471. # Directives controlling the display of server-generated directory listings.
  472.  
  473. # Required modules: mod_autoindex, mod_alias
  474.  
  475. # To see the listing of a directory, the Options directive for the
  476. # directory must include "Indexes", and the directory must not contain
  477. # a file matching those listed in the DirectoryIndex directive.
  478.  
  479. # IndexOptions: Controls the appearance of server-generated directory
  480. # listings.
  481.  
  482. IndexOptions FancyIndexing HTMLTable VersionSort
  483.  
  484. # We include the /icons/ alias for FancyIndexed directory listings. If
  485. # you do not use FancyIndexing, you may comment this out.
  486.  
  487. Alias /icons/ "/usr/local/apps/apache2/www/icons/"
  488.  
  489. <Directory "/usr/local/apps/apache2/www/icons">
  490. Options Indexes MultiViews
  491. AllowOverride None
  492. #Order allow,deny
  493. Require all granted
  494. </Directory>
  495.  
  496. # AddIcon* directives tell the server which icon to show for different
  497. # files or filename extensions. These are only displayed for
  498. # FancyIndexed directories.
  499.  
  500. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  501.  
  502. AddIconByType (TXT,/icons/text.gif) text/*
  503. AddIconByType (IMG,/icons/image2.gif) image/*
  504. AddIconByType (SND,/icons/sound2.gif) audio/*
  505. AddIconByType (VID,/icons/movie.gif) video/*
  506.  
  507. AddIcon /icons/binary.gif .bin .exe
  508. AddIcon /icons/binhex.gif .hqx
  509. AddIcon /icons/tar.gif .tar
  510. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  511. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  512. AddIcon /icons/a.gif .ps .ai .eps
  513. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  514. AddIcon /icons/text.gif .txt
  515. AddIcon /icons/c.gif .c
  516. AddIcon /icons/p.gif .pl .py
  517. AddIcon /icons/f.gif .for
  518. AddIcon /icons/dvi.gif .dvi
  519. AddIcon /icons/uuencoded.gif .uu
  520. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  521. AddIcon /icons/tex.gif .tex
  522. AddIcon /icons/bomb.gif core
  523.  
  524. AddIcon /icons/back.gif ..
  525. AddIcon /icons/hand.right.gif README
  526. AddIcon /icons/folder.gif ^^DIRECTORY^^
  527. AddIcon /icons/blank.gif ^^BLANKICON^^
  528.  
  529. # DefaultIcon is which icon to show for files which do not have an icon
  530. # explicitly set.
  531.  
  532. DefaultIcon /icons/unknown.gif
  533.  
  534. # AddDescription allows you to place a short description after a file in
  535. # server-generated indexes. These are only displayed for FancyIndexed
  536. # directories.
  537. # Format: AddDescription "description" filename
  538.  
  539. AddDescription "GZIP compressed document" .gz
  540. AddDescription "tar archive" .tar
  541. AddDescription "GZIP compressed tar archive" .tgz
  542. AddDescription "ZIP archive" .zip
  543. AddDescription "CAB archive" .cab
  544. AddDescription "Win32 Executable" .exe
  545.  
  546. # ReadmeName is the name of the README file the server will look for by
  547. # default, and append to directory listings.
  548.  
  549. # HeaderName is the name of a file which should be prepended to
  550. # directory indexes.
  551. ReadmeName README.html
  552. HeaderName HEADER.html
  553.  
  554. # IndexIgnore is a set of filenames which directory indexing should ignore
  555. # and not include in the listing. Shell-style wildcarding is permitted.
  556. #
  557. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  558. # ============================================================================
  559. #
  560. # If you include a trailing / on /webpath then the server will
  561. # require it to be present in the URL. You will also likely
  562. # need to provide a <Directory> section to allow access to
  563. # the filesystem path.
  564. #
  565. # ScriptAlias: This controls which directories contain server scripts.
  566. # ScriptAliases are essentially the same as Aliases, except that
  567. # documents in the target directory are treated as applications and
  568. # run by the server when requested rather than as documents sent to the
  569. # client. The same rules about trailing "/" apply to ScriptAlias
  570. # directives as to Alias.
  571. </IfModule>
  572.  
  573. ScriptAlias /cgi-bin/ /usr/local/apps/apache2/www/cgi-bin/
  574. <Directory "/usr/local/apps/apache2/www/cgi-bin">
  575. AllowOverride None
  576. Options None
  577. Require all granted
  578. </Directory>
  579.  
  580. <IfModule cgid_module>
  581. # ScriptSock: On threaded servers, designate the path to the UNIX
  582. # socket used to communicate with the CGI daemon of mod_cgid.
  583.  
  584. #Scriptsock logs/cgisock
  585. </IfModule>
  586.  
  587. <IfModule mime_module>
  588. # TypesConfig points to the file containing the list of mappings from
  589. # filename extension to MIME-type.
  590.  
  591. TypesConfig etc/mime.types
  592.  
  593. # AddType allows you to add to or override the MIME configuration
  594. # file specified in TypesConfig for specific file types.
  595. #
  596. #AddType application/x-gzip .tgz
  597. #
  598. # AddEncoding allows you to have certain browsers uncompress
  599. # information on the fly. Note: Not all browsers support this.
  600.  
  601. #AddEncoding x-compress .Z
  602. #AddEncoding x-gzip .gz .tgz
  603.  
  604. # If the AddEncoding directives above are commented-out, then you
  605. # probably should define those extensions to indicate media types:
  606.  
  607. AddType application/x-compress .Z
  608. AddType application/x-gzip .gz .tgz
  609. AddType application/x-httpd-php .php
  610. AddType application/x-tar .tgz
  611. AddType image/x-icon .ico
  612. AddType application/vnd.wap.wmlc .wmlc
  613. AddType application/x-httpd-php .phtml .pwml .php5 .php4 .php3 .php2 .php
  614. AddType text/vnd.wap.wml .wml
  615. AddType text/vnd.wap.wmlscript .wmls
  616. AddType text/vnd.wap.wmlscriptc .wmlsc
  617. AddType image/vnd.wap.wbmp .wbmp
  618.  
  619. # Handler for Perl
  620. AddHandler cgi-script .cgi .pl .plx .ppl .perl
  621.  
  622. # AddHandler allows you to map certain file extensions to "handlers":
  623. # actions unrelated to filetype. These can be either built into the server
  624. # or added with the Action directive (see below)
  625. #
  626. # To use CGI scripts outside of ScriptAliased directories:
  627. # (You will also need to add "ExecCGI" to the "Options" directive.)
  628.  
  629. # For type maps (negotiated resources):
  630. AddHandler type-map var
  631.  
  632. # Filters allow you to process content before it is sent to the client.
  633. #
  634. # To parse .shtml files for server-side includes (SSI):
  635. # (You will also need to add "Includes" to the "Options" directive.)
  636. #
  637. #AddType text/html .shtml
  638. #AddOutputFilter INCLUDES .shtml
  639. </IfModule>
  640.  
  641. # The mod_mime_magic module allows the server to use various hints from the
  642. # contents of the file itself to determine its type. The MIMEMagicFile
  643. # directive tells the module where the hint definitions are located.
  644. #
  645. #MIMEMagicFile conf/magic
  646.  
  647. # Customizable error responses come in three flavors:
  648. # 1) plain text 2) local redirects 3) external redirects
  649. #
  650. # Some examples:
  651. #ErrorDocument 500 "The server made a boo boo."
  652. #ErrorDocument 404 /missing.html
  653. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  654. #ErrorDocument 402 http://www.example.com/subscription_info.html
  655.  
  656. # EnableMMAP and EnableSendfile: On systems that support it,
  657. # memory-mapping or the sendfile syscall is used to deliver
  658. # files. This usually improves server performance, but must
  659. # be turned off when serving from networked-mounted
  660. # filesystems or if support for these functions is otherwise
  661. # broken on your system.
  662.  
  663. #EnableMMAP off
  664. #EnableSendfile off
  665.  
  666. # Supplemental configuration
  667. #
  668. # The configuration files in the conf/extra/ directory can be
  669. # included to add extra features or to modify the default configuration of
  670. # the server, or you may simply copy their contents here and change as
  671. # necessary.
  672.  
  673. Include etc/conf.d/*.conf
  674.  
  675. # Server-pool management (MPM specific)
  676. #Include conf/extra/httpd-mpm.conf
  677.  
  678. # Multi-language error messages
  679. #Include conf/extra/httpd-multilang-errordoc.conf
  680. <Location /Webuzo-server-status>
  681. SetHandler server-status
  682. Order deny,allow
  683. Deny from all
  684. Allow from 127.0.0.1 ::1 localhost
  685. </Location>
  686.  
  687. # Allow remote server configuration reports, with the URL of
  688. # http://servername/server-info (requires that mod_info.c be loaded).
  689. # Change the ".example.com" to match your domain to enable.
  690.  
  691. <Location /webuzo-server-info>
  692. SetHandler server-info
  693. Order deny,allow
  694. Deny from all
  695. Allow from 127.0.0.1 ::1 localhost
  696. </Location>
  697.  
  698. # Fancy directory listings
  699. #Include conf/extra/httpd-autoindex.conf
  700.  
  701. # Allow remote server configuration reports, with the URL of
  702. # http://servername/server-info (requires that mod_info.c be loaded).
  703. # Change the ".example.com" to match your domain to enable.
  704.  
  705. <IfModule ssl_module>
  706. SSLRandomSeed startup builtin
  707. SSLRandomSeed connect builtin
  708. </IfModule>
  709.  
  710. #
  711. # REQUEST TIME OUT module configuration section.
  712. #
  713. <IfModule mod_reqtimeout.c>
  714. RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
  715. </IfModule>
  716.  
  717. #The below line displays Apache web server signature(i.e Apache version number with OS on which it is running).
  718. #User can change the value as: On | Off | Email (Default value is On)
  719. ServerSignature Off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement