daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Mar 4th, 2016 171 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SetEnv PHPRC "{PHPPATH}"
  2.  
  3. ServerRoot "{APACHEPATH}/"
  4. {LISTEN_VIRTUAL_HOST_PORT}
  5.  
  6. ServerName "main-serveur"
  7.  
  8.  
  9. # Timeout: The number of seconds before receives and sends time out.
  10. Timeout 300
  11.  
  12.  
  13. # KeepAlive: Whether or not to allow persistent connections (more than
  14. # one request per connection). Set to "Off" to deactivate.
  15. KeepAlive On
  16.  
  17.  
  18. # MaxKeepAliveRequests: The maximum number of requests to allow
  19. # during a persistent connection. Set to 0 to allow an unlimited amount.
  20. MaxKeepAliveRequests 100
  21.  
  22.  
  23. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  24. # same client on the same connection.
  25. KeepAliveTimeout 5
  26.  
  27.  
  28. # UseCanonicalName: Determines how Apache constructs self-referencing
  29. # URLs and the SERVER_NAME and SERVER_PORT variables.
  30. UseCanonicalName Off
  31.  
  32.  
  33. # This directive configures what you return as the Server HTTP response
  34. # Header.
  35. # Set to one of:  Full | OS | Minor | Minimal | Major | Prod
  36. ServerTokens Full
  37.  
  38.  
  39. # Optionally add a line containing the server version and virtual host
  40. # name to server-generated pages (internal error documents, FTP directory
  41. # listings, mod_status and mod_info output etc.
  42. ServerSignature On
  43.  
  44.  
  45. # HostnameLookups: Log the names of clients or just their IP addresses
  46. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  47. HostnameLookups Off
  48.  
  49. LogLevel warn
  50.  
  51. AccessFileName .htaccess
  52.  
  53. <FilesMatch "^\.ht">
  54.     Require all denied
  55. </FilesMatch>
  56.  
  57.  
  58.  
  59.  
  60. # ****************************************************************************************************************
  61. # MODULES
  62.  
  63. LoadModule access_compat_module "{APACHEPATH}/modules/mod_access_compat.so"
  64. #LoadModule actions_module "{APACHEPATH}/modules/mod_actions.so"
  65. LoadModule alias_module "{APACHEPATH}/modules/mod_alias.so"
  66. LoadModule allowmethods_module "{APACHEPATH}/modules/mod_allowmethods.so"
  67. LoadModule asis_module "{APACHEPATH}/modules/mod_asis.so"
  68. LoadModule auth_basic_module "{APACHEPATH}/modules/mod_auth_basic.so"
  69. #LoadModule auth_digest_module "{APACHEPATH}/modules/mod_auth_digest.so"
  70. #LoadModule auth_form_module "{APACHEPATH}/modules/mod_auth_form.so"
  71. #LoadModule authn_anon_module "{APACHEPATH}/modules/mod_authn_anon.so"
  72. LoadModule authn_core_module "{APACHEPATH}/modules/mod_authn_core.so"
  73. #LoadModule authn_dbd_module "{APACHEPATH}/modules/mod_authn_dbd.so"
  74. #LoadModule authn_dbm_module "{APACHEPATH}/modules/mod_authn_dbm.so"
  75. LoadModule authn_file_module "{APACHEPATH}/modules/mod_authn_file.so"
  76. #LoadModule authn_socache_module "{APACHEPATH}/modules/mod_authn_socache.so"
  77. #LoadModule authnz_fcgi_module "{APACHEPATH}/modules/mod_authnz_fcgi.so"
  78. #LoadModule authnz_ldap_module "{APACHEPATH}/modules/mod_authnz_ldap.so"
  79. LoadModule authz_core_module "{APACHEPATH}/modules/mod_authz_core.so"
  80. #LoadModule authz_dbd_module "{APACHEPATH}/modules/mod_authz_dbd.so"
  81. #LoadModule authz_dbm_module "{APACHEPATH}/modules/mod_authz_dbm.so"
  82. LoadModule authz_groupfile_module "{APACHEPATH}/modules/mod_authz_groupfile.so"
  83. LoadModule authz_host_module "{APACHEPATH}/modules/mod_authz_host.so"
  84. #LoadModule authz_owner_module "{APACHEPATH}/modules/mod_authz_owner.so"
  85. LoadModule authz_user_module "{APACHEPATH}/modules/mod_authz_user.so"
  86. LoadModule autoindex_module "{APACHEPATH}/modules/mod_autoindex.so"
  87. #LoadModule buffer_module "{APACHEPATH}/modules/mod_buffer.so"
  88. #LoadModule cache_module "{APACHEPATH}/modules/mod_cache.so"
  89. #LoadModule cache_disk_module "{APACHEPATH}/modules/mod_cache_disk.so"
  90. #LoadModule cache_socache_module "{APACHEPATH}/modules/mod_cache_socache.so"
  91. #LoadModule cern_meta_module "{APACHEPATH}/modules/mod_cern_meta.so"
  92. LoadModule cgi_module "{APACHEPATH}/modules/mod_cgi.so"
  93. #LoadModule charset_lite_module "{APACHEPATH}/modules/mod_charset_lite.so"
  94. #LoadModule data_module "{APACHEPATH}/modules/mod_data.so"
  95. #LoadModule dav_module "{APACHEPATH}/modules/mod_dav.so"
  96. #LoadModule dav_fs_module "{APACHEPATH}/modules/mod_dav_fs.so"
  97. #LoadModule dav_lock_module "{APACHEPATH}/modules/mod_dav_lock.so"
  98. #LoadModule dbd_module "{APACHEPATH}/modules/mod_dbd.so"
  99. #LoadModule deflate_module "{APACHEPATH}/modules/mod_deflate.so"
  100. LoadModule dir_module "{APACHEPATH}/modules/mod_dir.so"
  101. #LoadModule dumpio_module "{APACHEPATH}/modules/mod_dumpio.so"
  102. LoadModule env_module "{APACHEPATH}/modules/mod_env.so"
  103. #LoadModule expires_module "{APACHEPATH}/modules/mod_expires.so"
  104. #LoadModule ext_filter_module "{APACHEPATH}/modules/mod_ext_filter.so"
  105. #LoadModule file_cache_module "{APACHEPATH}/modules/mod_file_cache.so"
  106. #LoadModule filter_module "{APACHEPATH}/modules/mod_filter.so"
  107. #LoadModule headers_module "{APACHEPATH}/modules/mod_headers.so"
  108. #LoadModule heartbeat_module "{APACHEPATH}/modules/mod_heartbeat.so"
  109. #LoadModule heartmonitor_module "{APACHEPATH}/modules/mod_heartmonitor.so"
  110. #LoadModule ident_module "{APACHEPATH}/modules/mod_ident.so"
  111. #LoadModule imagemap_module "{APACHEPATH}/modules/mod_imagemap.so"
  112. LoadModule include_module "{APACHEPATH}/modules/mod_include.so"
  113. #LoadModule info_module "{APACHEPATH}/modules/mod_info.so"
  114. LoadModule isapi_module "{APACHEPATH}/modules/mod_isapi.so"
  115. #LoadModule lbmethod_bybusyness_module "{APACHEPATH}/modules/mod_lbmethod_bybusyness.so"
  116. #LoadModule lbmethod_byrequests_module "{APACHEPATH}/modules/mod_lbmethod_byrequests.so"
  117. #LoadModule lbmethod_bytraffic_module "{APACHEPATH}/modules/mod_lbmethod_bytraffic.so"
  118. #LoadModule lbmethod_heartbeat_module "{APACHEPATH}/modules/mod_lbmethod_heartbeat.so"
  119. #LoadModule ldap_module "{APACHEPATH}/modules/mod_ldap.so"
  120. #LoadModule logio_module "{APACHEPATH}/modules/mod_logio.so"
  121. LoadModule log_config_module "{APACHEPATH}/modules/mod_log_config.so"
  122. #LoadModule log_debug_module "{APACHEPATH}/modules/mod_log_debug.so"
  123. #LoadModule log_forensic_module "{APACHEPATH}/modules/mod_log_forensic.so"
  124. #LoadModule lua_module "{APACHEPATH}/modules/mod_lua.so"
  125. #LoadModule macro_module "{APACHEPATH}/modules/mod_macro.so"
  126. LoadModule mime_module "{APACHEPATH}/modules/mod_mime.so"
  127. #LoadModule mime_magic_module "{APACHEPATH}/modules/mod_mime_magic.so"
  128. LoadModule negotiation_module "{APACHEPATH}/modules/mod_negotiation.so"
  129. #LoadModule proxy_module "{APACHEPATH}/modules/mod_proxy.so"
  130. #LoadModule proxy_ajp_module "{APACHEPATH}/modules/mod_proxy_ajp.so"
  131. #LoadModule proxy_balancer_module "{APACHEPATH}/modules/mod_proxy_balancer.so"
  132. #LoadModule proxy_connect_module "{APACHEPATH}/modules/mod_proxy_connect.so"
  133. #LoadModule proxy_express_module "{APACHEPATH}/modules/mod_proxy_express.so"
  134. #LoadModule proxy_fcgi_module "{APACHEPATH}/modules/mod_proxy_fcgi.so"
  135. #LoadModule proxy_ftp_module "{APACHEPATH}/modules/mod_proxy_ftp.so"
  136. #LoadModule proxy_html_module "{APACHEPATH}/modules/mod_proxy_html.so"
  137. #LoadModule proxy_http_module "{APACHEPATH}/modules/mod_proxy_http.so"
  138. #LoadModule proxy_scgi_module "{APACHEPATH}/modules/mod_proxy_scgi.so"
  139. #LoadModule proxy_wstunnel_module "{APACHEPATH}/modules/mod_proxy_wstunnel.so"
  140. #LoadModule ratelimit_module "{APACHEPATH}/modules/mod_ratelimit.so"
  141. #LoadModule reflector_module "{APACHEPATH}/modules/mod_reflector.so"
  142. #LoadModule remoteip_module "{APACHEPATH}/modules/mod_remoteip.so"
  143. #LoadModule request_module "{APACHEPATH}/modules/mod_request.so"
  144. #LoadModule reqtimeout_module "{APACHEPATH}/modules/mod_reqtimeout.so"
  145. #LoadModule rewrite_module "{APACHEPATH}/modules/mod_rewrite.so"
  146. #LoadModule sed_module "{APACHEPATH}/modules/mod_sed.so"
  147. #LoadModule session_module "{APACHEPATH}/modules/mod_session.so"
  148. #LoadModule session_cookie_module "{APACHEPATH}/modules/mod_session_cookie.so"
  149. #LoadModule session_crypto_module "{APACHEPATH}/modules/mod_session_crypto.so"
  150. #LoadModule session_dbd_module "{APACHEPATH}/modules/mod_session_dbd.so"
  151. LoadModule setenvif_module "{APACHEPATH}/modules/mod_setenvif.so"
  152. #LoadModule slotmem_plain_module "{APACHEPATH}/modules/mod_slotmem_plain.so"
  153. #LoadModule slotmem_shm_module "{APACHEPATH}/modules/mod_slotmem_shm.so"
  154. #LoadModule socache_dbm_module "{APACHEPATH}/modules/mod_socache_dbm.so"
  155. #LoadModule socache_memcache_module "{APACHEPATH}/modules/mod_socache_memcache.so"
  156. LoadModule socache_shmcb_module "{APACHEPATH}/modules/mod_socache_shmcb.so"
  157. #LoadModule speling_module "{APACHEPATH}/modules/mod_speling.so"
  158. LoadModule ssl_module "{APACHEPATH}/modules/mod_ssl.so"
  159. #LoadModule status_module "{APACHEPATH}/modules/mod_status.so"
  160. #LoadModule substitute_module "{APACHEPATH}/modules/mod_substitute.so"
  161. #LoadModule unique_id_module "{APACHEPATH}/modules/mod_unique_id.so"
  162. #LoadModule userdir_module "{APACHEPATH}/modules/mod_userdir.so"
  163. #LoadModule usertrack_module "{APACHEPATH}/modules/mod_usertrack.so"
  164. #LoadModule version_module "{APACHEPATH}/modules/mod_version.so"
  165. #LoadModule vhost_alias_module "{APACHEPATH}/modules/mod_vhost_alias.so"
  166. #LoadModule watchdog_module "{APACHEPATH}/modules/mod_watchdog.so"
  167. #LoadModule xml2enc_module "{APACHEPATH}/modules/mod_xml2enc.so"
  168.  
  169. LoadModule {PHPMODULENAME} "{PHPPATH}/{PHPAPACHE2FILE}"
  170.  
  171. # ****************************************************************************************************************
  172. # OTHERS CONFIG
  173.  
  174. <IfModule !mpm_netware_module>
  175. <IfModule !mpm_winnt_module>
  176. User daemon
  177. Group daemon
  178. </IfModule>
  179. </IfModule>
  180.  
  181. ServerAdmin contact@exemple.com
  182.  
  183. <IfModule dir_module>
  184.     DirectoryIndex index.html index.php index.php5 index.php6
  185. </IfModule>
  186.  
  187. ErrorLog "{APACHEPATH}/logs/error.log"
  188.  
  189. <IfModule log_config_module>    
  190.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  191.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  192.  
  193.     <IfModule logio_module>      
  194.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  195.     </IfModule>
  196.    
  197.     CustomLog "{APACHEPATH}/logs/access.log" common
  198. </IfModule>
  199.  
  200. <IfModule alias_module>
  201. </IfModule>
  202.  
  203.  
  204. <IfModule mime_module>
  205.     TypesConfig "{APACHEPATH}/conf/mime.types"    
  206.     AddType application/x-compress .Z
  207.     AddType application/x-gzip .gz .tgz
  208.     AddType application/x-httpd-php .php
  209.     AddType application/x-httpd-php .php5
  210.     AddType application/x-httpd-php-source .phps
  211. </IfModule>
  212.  
  213.  
  214. #
  215. # Customizable error responses come in three flavors:
  216. # 1) plain text 2) local redirects 3) external redirects
  217. #
  218. # Some examples:
  219. #ErrorDocument 500 "The server made a boo boo."
  220. #ErrorDocument 404 /missing.html
  221. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  222. #ErrorDocument 402 http://test/subscription_info.html
  223. #
  224.  
  225.  
  226. <IfModule ssl_module>
  227.     SSLRandomSeed startup builtin
  228.     SSLRandomSeed connect builtin
  229. </IfModule>
  230.  
  231. # ****************************************************************************************************************
  232. # EXTRA CONFIG
  233. # EDIT FILE WITH conf/extra/*source.conf
  234.  
  235. # Fancy directory listings
  236. Include conf/extra/httpd-autoindex.conf
  237.  
  238. # Server-pool management (MPM specific)
  239. #Include conf/extra/httpd-mpm.conf
  240.  
  241. # Distributed authoring and versioning (WebDAV)
  242. #Include conf/extra/httpd-dav.conf
  243.  
  244. # Distributed authoring and versioning (WebDAV)
  245. #Include conf/extra/httpd-dav.conf
  246.  
  247. # Real-time info on requests and configuration
  248. #Include conf/extra/httpd-info.conf
  249.  
  250. # Language settings
  251. #Include conf/extra/httpd-languages.conf
  252.  
  253. # Multi-language error messages
  254. #Include conf/extra/httpd-multilang-errordoc.conf
  255.  
  256. # Secure (SSL/TLS) connections
  257. #Include conf/extra/httpd-ssl.conf
  258.  
  259.  
  260. # ****************************************************************************************************************
  261. # VIRTUAL HOST
  262.  
  263. <VirtualHost *:5000>
  264. #UWAMP Generate Virtual Host
  265.     DocumentRoot "{DOCUMENTPATH}/"
  266.     ServerName "main-serveur"
  267.     Alias "/mysql/" "{PHPAPPS}/phpmyadmin/"
  268.     Alias "/mysql" "{PHPAPPS}/phpmyadmin/"
  269.     Alias "/uwamp/" "{PHPAPPS}/uwamp/"
  270.     Alias "/uwamp" "{PHPAPPS}/uwamp/"
  271.     <Directory "{PHPAPPS}/phpmyadmin/">
  272.         AllowOverride All
  273.         Options FollowSymLinks Includes Indexes
  274.         Require local
  275.     </Directory>
  276.     <Directory "{PHPAPPS}/uwamp/">
  277.         AllowOverride All
  278.         Options FollowSymLinks Includes Indexes
  279.         Require local
  280.     </Directory>
  281.     <Directory "{DOCUMENTPATH}/">
  282.         AllowOverride All
  283.         Options FollowSymLinks Indexes
  284.         {ONLINE_MODE}      
  285.     </Directory>
  286. </VirtualHost>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top