Advertisement
Guest User

Untitled

a guest
Nov 29th, 2018
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 21.67 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. # NOTE: Where filenames are specified, you must use forward slashes
  22. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  23. # If a drive letter is omitted, the drive on which httpd.exe is located
  24. # will be used by default.  It is recommended that you always supply
  25. # an explicit drive letter in absolute paths to avoid confusion.
  26.  
  27. #
  28. # ServerRoot: The top of the directory tree under which the server's
  29. # configuration, error, and log files are kept.
  30. #
  31. # Do not add a slash at the end of the directory path.  If you point
  32. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  33. # Mutex directive, if file-based mutexes are used.  If you wish to share the
  34. # same ServerRoot for multiple httpd daemons, you will need to change at
  35. # least PidFile.
  36. #
  37. Define SRVROOT "C:/xampp/apache"
  38.  
  39. ServerRoot "C:/xampp/apache""C:/users/sv443/desktop/mamp htdocs"
  40. <Directory "C:/users/sv443/desktop/mamp htdocs">
  41. #DocumentRoot "C:/xampp/htdocs"
  42. #<Directory "C:/xampp/htdocs">
  43.     #
  44.     # Possible values for the Options directive are "None", "All",
  45.     # or any combination of:
  46.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  47.     #
  48.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
  49.     # doesn't give it to you.
  50.     #
  51.     # The Options directive is both complicated and important.  Please see
  52.     # http://httpd.apache.org/docs/2.4/mod/core.html#options
  53.     # for more information.
  54.     #
  55.     Options Indexes FollowSymLinks Includes ExecCGI
  56.  
  57.     #
  58.     # AllowOverride controls what directives may be placed in .htaccess files.
  59.     # It can be "All", "None", or any combination of the keywords:
  60.     #   AllowOverride FileInfo AuthConfig Limit
  61.     #
  62.     AllowOverride All
  63.  
  64.     #
  65.     # Controls who can get stuff from this server.
  66.     #
  67.     Require all granted
  68. </Directory>
  69.  
  70. #
  71. # DirectoryIndex: sets the file that Apache will serve if a directory
  72. # is requested.
  73. #
  74. <IfModule dir_module>
  75.     DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
  76.                    default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
  77.                    home.php home.pl home.cgi home.asp home.shtml home.html home.htm
  78. </IfModule>
  79.  
  80. #
  81. # The following lines prevent .htaccess and .htpasswd files from being
  82. # viewed by Web clients.
  83. #
  84. <Files ".ht*">
  85.     Require all denied
  86. </Files>
  87.  
  88. #
  89. # ErrorLog: The location of the error log file.
  90. # If you do not specify an ErrorLog directive within a <VirtualHost>
  91. # container, error messages relating to that virtual host will be
  92. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  93. # container, that host's errors will be logged there and not here.
  94. #
  95. ErrorLog "logs/error.log"
  96.  
  97. #
  98. # LogLevel: Control the number of messages logged to the error_log.
  99. # Possible values include: debug, info, notice, warn, error, crit,
  100. # alert, emerg.
  101. #
  102. LogLevel warn
  103.  
  104. <IfModule log_config_module>
  105.     #
  106.     # The following directives define some format nicknames for use with
  107.     # a CustomLog directive (see below).
  108.     #
  109.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  110.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  111.  
  112.     <IfModule logio_module>
  113.       # You need to enable mod_logio.c to use %I and %O
  114.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  115.     </IfModule>
  116.  
  117.     #
  118.     # The location and format of the access logfile (Common Logfile Format).
  119.     # If you do not define any access logfiles within a <VirtualHost>
  120.     # container, they will be logged here.  Contrariwise, if you *do*
  121.     # define per-<VirtualHost> access logfiles, transactions will be
  122.     # logged therein and *not* in this file.
  123.     #
  124.     #CustomLog "logs/access.log" common
  125.  
  126.     #
  127.     # If you prefer a logfile with access, agent, and referer information
  128.     # (Combined Logfile Format) you can use the following directive.
  129.     #
  130.     CustomLog "logs/access.log" combined
  131. </IfModule>
  132.  
  133. <IfModule alias_module>
  134.     #
  135.     # Redirect: Allows you to tell clients about documents that used to
  136.     # exist in your server's namespace, but do not anymore. The client
  137.     # will make a new request for the document at its new location.
  138.     # Example:
  139.     # Redirect permanent /foo http://www.example.com/bar
  140.  
  141.     #
  142.     # Alias: Maps web paths into filesystem paths and is used to
  143.     # access content that does not live under the DocumentRoot.
  144.     # Example:
  145.     # Alias /webpath /full/filesystem/path
  146.     #
  147.     # If you include a trailing / on /webpath then the server will
  148.     # require it to be present in the URL.  You will also likely
  149.     # need to provide a <Directory> section to allow access to
  150.     # the filesystem path.
  151.  
  152.     #
  153.     # ScriptAlias: This controls which directories contain server scripts.
  154.     # ScriptAliases are essentially the same as Aliases, except that
  155.     # documents in the target directory are treated as applications and
  156.     # run by the server when requested rather than as documents sent to the
  157.     # client.  The same rules about trailing "/" apply to ScriptAlias
  158.     # directives as to Alias.
  159.     #
  160.     ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
  161.  
  162. </IfModule>
  163.  
  164. <IfModule cgid_module>
  165.     #
  166.     # ScriptSock: On threaded servers, designate the path to the UNIX
  167.     # socket used to communicate with the CGI daemon of mod_cgid.
  168.     #
  169.     #Scriptsock cgisock
  170. </IfModule>
  171.  
  172. #
  173. # "C:/xampp/cgi-bin" should be changed to whatever your ScriptAliased
  174. # CGI directory exists, if you have that configured.
  175. #
  176. <Directory "C:/xampp/cgi-bin">
  177.     AllowOverride All
  178.     Options None
  179.     Require all granted
  180. </Directory>
  181.  
  182. <IfModule headers_module>
  183.     #
  184.     # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
  185.     # backend servers which have lingering "httpoxy" defects.
  186.     # 'Proxy' request header is undefined by the IETF, not listed by IANA
  187.     #
  188.     RequestHeader unset Proxy early
  189. </IfModule>
  190.  
  191. <IfModule mime_module>
  192.     #
  193.     # TypesConfig points to the file containing the list of mappings from
  194.     # filename extension to MIME-type.
  195.     #
  196.     TypesConfig conf/mime.types
  197.  
  198.     #
  199.     # AddType allows you to add to or override the MIME configuration
  200.     # file specified in TypesConfig for specific file types.
  201.     #
  202.     #AddType application/x-gzip .tgz
  203.     #
  204.     # AddEncoding allows you to have certain browsers uncompress
  205.     # information on the fly. Note: Not all browsers support this.
  206.     #
  207.     #AddEncoding x-compress .Z
  208.     #AddEncoding x-gzip .gz .tgz
  209.     #
  210.     # If the AddEncoding directives above are commented-out, then you
  211.     # probably should define those extensions to indicate media types:
  212.     #
  213.     AddType application/x-compress .Z
  214.     AddType application/x-gzip .gz .tgz
  215.  
  216.     #
  217.     # AddHandler allows you to map certain file extensions to "handlers":
  218.     # actions unrelated to filetype. These can be either built into the server
  219.     # or added with the Action directive (see below)
  220.     #
  221.     # To use CGI scripts outside of ScriptAliased directories:
  222.     # (You will also need to add "ExecCGI" to the "Options" directive.)
  223.     #
  224.     AddHandler cgi-script .cgi .pl .asp
  225.  
  226.     # For type maps (negotiated resources):
  227.     #AddHandler type-map var
  228.  
  229.     #
  230.     # Filters allow you to process content before it is sent to the client.
  231.     #
  232.     # To parse .shtml files for server-side includes (SSI):
  233.     # (You will also need to add "Includes" to the "Options" directive.)
  234.     #
  235.     AddType text/html .shtml
  236.     AddOutputFilter INCLUDES .shtml
  237. </IfModule>
  238.  
  239. #
  240. # The mod_mime_magic module allows the server to use various hints from the
  241. # contents of the file itself to determine its type.  The MIMEMagicFile
  242. # directive tells the module where the hint definitions are located.
  243. #
  244. <IfModule mime_magic_module>
  245.     #
  246.     # The mod_mime_magic module allows the server to use various hints from the
  247.     # contents of the file itself to determine its type.  The MIMEMagicFile
  248.     # directive tells the module where the hint definitions are located.
  249.     #
  250.     MIMEMagicFile "conf/magic"
  251. </IfModule>
  252.  
  253.  
  254. #
  255. # Customizable error responses come in three flavors:
  256. # 1) plain text 2) local redirects 3) external redirects
  257. #
  258. # Some examples:
  259. #ErrorDocument 500 "The server made a boo boo."
  260. #ErrorDocument 404 /missing.html
  261. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  262. #ErrorDocument 402 http://www.example.com/subscription_info.html
  263. #
  264.  
  265. #
  266. # MaxRanges: Maximum number of Ranges in a request before
  267. # returning the entire resource, or one of the special
  268. # values 'default', 'none' or 'unlimited'.
  269. # Default setting is to accept 200 Ranges.
  270. #MaxRanges unlimited
  271.  
  272. #
  273. # EnableMMAP and EnableSendfile: On systems that support it,
  274. # memory-mapping or the sendfile syscall may be used to deliver
  275. # files.  This usually improves server performance, but must
  276. # be turned off when serving from networked-mounted
  277. # filesystems or if support for these functions is otherwise
  278. # broken on your system.
  279. # Defaults: EnableMMAP On, EnableSendfile Off
  280. #
  281. #EnableMMAP off
  282. #EnableSendfile off
  283.  
  284. # Supplemental configuration
  285. #
  286. # The configuration files in the conf/extra/ directory can be
  287. # included to add extra features or to modify the default configuration of
  288. # the server, or you may simply copy their contents here and change as
  289. # necessary.
  290.  
  291. # Server-pool management (MPM specific)
  292. Include conf/extra/httpd-mpm.conf
  293.  
  294. # Multi-language error messages
  295. Include conf/extra/httpd-multilang-errordoc.conf
  296.  
  297. # Fancy directory listings
  298. Include conf/extra/httpd-autoindex.conf
  299.  
  300. # Language settings
  301. Include conf/extra/httpd-languages.conf
  302.  
  303. # User home directories
  304. Include conf/extra/httpd-userdir.conf
  305.  
  306. # Real-time info on requests and configuration
  307. Include conf/extra/httpd-info.conf
  308.  
  309. # Virtual hosts
  310. Include conf/extra/httpd-vhosts.conf
  311.  
  312. # Local access to the Apache HTTP Server Manual
  313. #Include conf/extra/httpd-manual.conf
  314.  
  315. # Distributed authoring and versioning (WebDAV)
  316. #Attention! WEB_DAV is a security risk without a new userspecific configuration for a secure authentifcation
  317. #Include conf/extra/httpd-dav.conf
  318.  
  319. # Various default settings
  320. #Include conf/extra/httpd-default.conf
  321. # Implements a proxy/gateway for Apache.
  322. Include "conf/extra/httpd-proxy.conf"
  323. # Various default settings
  324. Include "conf/extra/httpd-default.conf"
  325. # XAMPP settings
  326. Include "conf/extra/httpd-xampp.conf"
  327.  
  328. # Configure mod_proxy_html to understand HTML4/XHTML1
  329. <IfModule proxy_html_module>
  330. Include conf/extra/proxy-html.conf
  331. </IfModule>
  332.  
  333. # Secure (SSL/TLS) connections
  334. Include conf/extra/httpd-ssl.conf
  335. #
  336. # Note: The following must must be present to support
  337. #       starting without SSL on platforms with no /dev/random equivalent
  338. #       but a statically compiled-in mod_ssl.
  339. #
  340. <IfModule ssl_module>
  341. SSLRandomSeed startup builtin
  342. SSLRandomSeed connect builtin
  343. </IfModule>
  344.  
  345. # XAMPP: We disable operating system specific optimizations for a listening
  346. # socket by the http protocol here. IE 64 bit make problems without this.
  347.  
  348. AcceptFilter http none
  349. AcceptFilter https none
  350. # AJP13 Proxy
  351. <IfModule mod_proxy.c>
  352. <IfModule mod_proxy_ajp.c>
  353. Include "conf/extra/httpd-ajp.conf"
  354. </IfModule>
  355. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement