SetEnv PHPRC "{PHPPATH}" ServerRoot "{APACHEPATH}/" {LISTEN_VIRTUAL_HOST_PORT} ServerName "main-serveur" # Timeout: The number of seconds before receives and sends time out. Timeout 300 # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. KeepAlive On # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. MaxKeepAliveRequests 100 # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. KeepAliveTimeout 5 # UseCanonicalName: Determines how Apache constructs self-referencing # URLs and the SERVER_NAME and SERVER_PORT variables. UseCanonicalName Off # This directive configures what you return as the Server HTTP response # Header. # Set to one of: Full | OS | Minor | Minimal | Major | Prod ServerTokens Full # Optionally add a line containing the server version and virtual host # name to server-generated pages (internal error documents, FTP directory # listings, mod_status and mod_info output etc. ServerSignature On # HostnameLookups: Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). HostnameLookups Off LogLevel warn AccessFileName .htaccess Require all denied # **************************************************************************************************************** # MODULES LoadModule access_compat_module "{APACHEPATH}/modules/mod_access_compat.so" #LoadModule actions_module "{APACHEPATH}/modules/mod_actions.so" LoadModule alias_module "{APACHEPATH}/modules/mod_alias.so" LoadModule allowmethods_module "{APACHEPATH}/modules/mod_allowmethods.so" LoadModule asis_module "{APACHEPATH}/modules/mod_asis.so" LoadModule auth_basic_module "{APACHEPATH}/modules/mod_auth_basic.so" #LoadModule auth_digest_module "{APACHEPATH}/modules/mod_auth_digest.so" #LoadModule auth_form_module "{APACHEPATH}/modules/mod_auth_form.so" #LoadModule authn_anon_module "{APACHEPATH}/modules/mod_authn_anon.so" LoadModule authn_core_module "{APACHEPATH}/modules/mod_authn_core.so" #LoadModule authn_dbd_module "{APACHEPATH}/modules/mod_authn_dbd.so" #LoadModule authn_dbm_module "{APACHEPATH}/modules/mod_authn_dbm.so" LoadModule authn_file_module "{APACHEPATH}/modules/mod_authn_file.so" #LoadModule authn_socache_module "{APACHEPATH}/modules/mod_authn_socache.so" #LoadModule authnz_fcgi_module "{APACHEPATH}/modules/mod_authnz_fcgi.so" #LoadModule authnz_ldap_module "{APACHEPATH}/modules/mod_authnz_ldap.so" LoadModule authz_core_module "{APACHEPATH}/modules/mod_authz_core.so" #LoadModule authz_dbd_module "{APACHEPATH}/modules/mod_authz_dbd.so" #LoadModule authz_dbm_module "{APACHEPATH}/modules/mod_authz_dbm.so" LoadModule authz_groupfile_module "{APACHEPATH}/modules/mod_authz_groupfile.so" LoadModule authz_host_module "{APACHEPATH}/modules/mod_authz_host.so" #LoadModule authz_owner_module "{APACHEPATH}/modules/mod_authz_owner.so" LoadModule authz_user_module "{APACHEPATH}/modules/mod_authz_user.so" LoadModule autoindex_module "{APACHEPATH}/modules/mod_autoindex.so" #LoadModule buffer_module "{APACHEPATH}/modules/mod_buffer.so" #LoadModule cache_module "{APACHEPATH}/modules/mod_cache.so" #LoadModule cache_disk_module "{APACHEPATH}/modules/mod_cache_disk.so" #LoadModule cache_socache_module "{APACHEPATH}/modules/mod_cache_socache.so" #LoadModule cern_meta_module "{APACHEPATH}/modules/mod_cern_meta.so" LoadModule cgi_module "{APACHEPATH}/modules/mod_cgi.so" #LoadModule charset_lite_module "{APACHEPATH}/modules/mod_charset_lite.so" #LoadModule data_module "{APACHEPATH}/modules/mod_data.so" #LoadModule dav_module "{APACHEPATH}/modules/mod_dav.so" #LoadModule dav_fs_module "{APACHEPATH}/modules/mod_dav_fs.so" #LoadModule dav_lock_module "{APACHEPATH}/modules/mod_dav_lock.so" #LoadModule dbd_module "{APACHEPATH}/modules/mod_dbd.so" #LoadModule deflate_module "{APACHEPATH}/modules/mod_deflate.so" LoadModule dir_module "{APACHEPATH}/modules/mod_dir.so" #LoadModule dumpio_module "{APACHEPATH}/modules/mod_dumpio.so" LoadModule env_module "{APACHEPATH}/modules/mod_env.so" #LoadModule expires_module "{APACHEPATH}/modules/mod_expires.so" #LoadModule ext_filter_module "{APACHEPATH}/modules/mod_ext_filter.so" #LoadModule file_cache_module "{APACHEPATH}/modules/mod_file_cache.so" #LoadModule filter_module "{APACHEPATH}/modules/mod_filter.so" #LoadModule headers_module "{APACHEPATH}/modules/mod_headers.so" #LoadModule heartbeat_module "{APACHEPATH}/modules/mod_heartbeat.so" #LoadModule heartmonitor_module "{APACHEPATH}/modules/mod_heartmonitor.so" #LoadModule ident_module "{APACHEPATH}/modules/mod_ident.so" #LoadModule imagemap_module "{APACHEPATH}/modules/mod_imagemap.so" LoadModule include_module "{APACHEPATH}/modules/mod_include.so" #LoadModule info_module "{APACHEPATH}/modules/mod_info.so" LoadModule isapi_module "{APACHEPATH}/modules/mod_isapi.so" #LoadModule lbmethod_bybusyness_module "{APACHEPATH}/modules/mod_lbmethod_bybusyness.so" #LoadModule lbmethod_byrequests_module "{APACHEPATH}/modules/mod_lbmethod_byrequests.so" #LoadModule lbmethod_bytraffic_module "{APACHEPATH}/modules/mod_lbmethod_bytraffic.so" #LoadModule lbmethod_heartbeat_module "{APACHEPATH}/modules/mod_lbmethod_heartbeat.so" #LoadModule ldap_module "{APACHEPATH}/modules/mod_ldap.so" #LoadModule logio_module "{APACHEPATH}/modules/mod_logio.so" LoadModule log_config_module "{APACHEPATH}/modules/mod_log_config.so" #LoadModule log_debug_module "{APACHEPATH}/modules/mod_log_debug.so" #LoadModule log_forensic_module "{APACHEPATH}/modules/mod_log_forensic.so" #LoadModule lua_module "{APACHEPATH}/modules/mod_lua.so" #LoadModule macro_module "{APACHEPATH}/modules/mod_macro.so" LoadModule mime_module "{APACHEPATH}/modules/mod_mime.so" #LoadModule mime_magic_module "{APACHEPATH}/modules/mod_mime_magic.so" LoadModule negotiation_module "{APACHEPATH}/modules/mod_negotiation.so" #LoadModule proxy_module "{APACHEPATH}/modules/mod_proxy.so" #LoadModule proxy_ajp_module "{APACHEPATH}/modules/mod_proxy_ajp.so" #LoadModule proxy_balancer_module "{APACHEPATH}/modules/mod_proxy_balancer.so" #LoadModule proxy_connect_module "{APACHEPATH}/modules/mod_proxy_connect.so" #LoadModule proxy_express_module "{APACHEPATH}/modules/mod_proxy_express.so" #LoadModule proxy_fcgi_module "{APACHEPATH}/modules/mod_proxy_fcgi.so" #LoadModule proxy_ftp_module "{APACHEPATH}/modules/mod_proxy_ftp.so" #LoadModule proxy_html_module "{APACHEPATH}/modules/mod_proxy_html.so" #LoadModule proxy_http_module "{APACHEPATH}/modules/mod_proxy_http.so" #LoadModule proxy_scgi_module "{APACHEPATH}/modules/mod_proxy_scgi.so" #LoadModule proxy_wstunnel_module "{APACHEPATH}/modules/mod_proxy_wstunnel.so" #LoadModule ratelimit_module "{APACHEPATH}/modules/mod_ratelimit.so" #LoadModule reflector_module "{APACHEPATH}/modules/mod_reflector.so" #LoadModule remoteip_module "{APACHEPATH}/modules/mod_remoteip.so" #LoadModule request_module "{APACHEPATH}/modules/mod_request.so" #LoadModule reqtimeout_module "{APACHEPATH}/modules/mod_reqtimeout.so" #LoadModule rewrite_module "{APACHEPATH}/modules/mod_rewrite.so" #LoadModule sed_module "{APACHEPATH}/modules/mod_sed.so" #LoadModule session_module "{APACHEPATH}/modules/mod_session.so" #LoadModule session_cookie_module "{APACHEPATH}/modules/mod_session_cookie.so" #LoadModule session_crypto_module "{APACHEPATH}/modules/mod_session_crypto.so" #LoadModule session_dbd_module "{APACHEPATH}/modules/mod_session_dbd.so" LoadModule setenvif_module "{APACHEPATH}/modules/mod_setenvif.so" #LoadModule slotmem_plain_module "{APACHEPATH}/modules/mod_slotmem_plain.so" #LoadModule slotmem_shm_module "{APACHEPATH}/modules/mod_slotmem_shm.so" #LoadModule socache_dbm_module "{APACHEPATH}/modules/mod_socache_dbm.so" #LoadModule socache_memcache_module "{APACHEPATH}/modules/mod_socache_memcache.so" LoadModule socache_shmcb_module "{APACHEPATH}/modules/mod_socache_shmcb.so" #LoadModule speling_module "{APACHEPATH}/modules/mod_speling.so" LoadModule ssl_module "{APACHEPATH}/modules/mod_ssl.so" #LoadModule status_module "{APACHEPATH}/modules/mod_status.so" #LoadModule substitute_module "{APACHEPATH}/modules/mod_substitute.so" #LoadModule unique_id_module "{APACHEPATH}/modules/mod_unique_id.so" #LoadModule userdir_module "{APACHEPATH}/modules/mod_userdir.so" #LoadModule usertrack_module "{APACHEPATH}/modules/mod_usertrack.so" #LoadModule version_module "{APACHEPATH}/modules/mod_version.so" #LoadModule vhost_alias_module "{APACHEPATH}/modules/mod_vhost_alias.so" #LoadModule watchdog_module "{APACHEPATH}/modules/mod_watchdog.so" #LoadModule xml2enc_module "{APACHEPATH}/modules/mod_xml2enc.so" LoadModule {PHPMODULENAME} "{PHPPATH}/{PHPAPACHE2FILE}" # **************************************************************************************************************** # OTHERS CONFIG User daemon Group daemon ServerAdmin contact@exemple.com DirectoryIndex index.html index.php index.php5 index.php6 ErrorLog "{APACHEPATH}/logs/error.log" LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio CustomLog "{APACHEPATH}/logs/access.log" common TypesConfig "{APACHEPATH}/conf/mime.types" AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .php5 AddType application/x-httpd-php-source .phps # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://test/subscription_info.html # SSLRandomSeed startup builtin SSLRandomSeed connect builtin # **************************************************************************************************************** # EXTRA CONFIG # EDIT FILE WITH conf/extra/*source.conf # Fancy directory listings Include conf/extra/httpd-autoindex.conf # Server-pool management (MPM specific) #Include conf/extra/httpd-mpm.conf # Distributed authoring and versioning (WebDAV) #Include conf/extra/httpd-dav.conf # Distributed authoring and versioning (WebDAV) #Include conf/extra/httpd-dav.conf # Real-time info on requests and configuration #Include conf/extra/httpd-info.conf # Language settings #Include conf/extra/httpd-languages.conf # Multi-language error messages #Include conf/extra/httpd-multilang-errordoc.conf # Secure (SSL/TLS) connections #Include conf/extra/httpd-ssl.conf # **************************************************************************************************************** # VIRTUAL HOST #UWAMP Generate Virtual Host DocumentRoot "{DOCUMENTPATH}/" ServerName "main-serveur" Alias "/mysql/" "{PHPAPPS}/phpmyadmin/" Alias "/mysql" "{PHPAPPS}/phpmyadmin/" Alias "/uwamp/" "{PHPAPPS}/uwamp/" Alias "/uwamp" "{PHPAPPS}/uwamp/" AllowOverride All Options FollowSymLinks Includes Indexes Require local AllowOverride All Options FollowSymLinks Includes Indexes Require local AllowOverride All Options FollowSymLinks Indexes {ONLINE_MODE} #UWAMP Generate Virtual Host DocumentRoot "{DOCUMENTPATH}/myhost-exemple/" ServerName "www.myhost-exemple.com" ServerAlias "www.myhost-exemple.com" AllowOverride All Options FollowSymLinks Indexes {ONLINE_MODE}