MT_

Apache_

MT_
Apr 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. root@bananaweb:/etc/apache2# nano apache2.conf
  2. GNU nano 2.9.5 apache2.conf
  3.  
  4. # AllowOverride None
  5. # Require all granted
  6. #</Directory>
  7.  
  8.  
  9.  
  10.  
  11. # AccessFileName: The name of the file to look for in each directory
  12. # for additional configuration directives. See also the AllowOverride
  13. # directive.
  14. #
  15. AccessFileName .htaccess
  16.  
  17. #
  18. # The following lines prevent .htaccess and .htpasswd files from being
  19. # viewed by Web clients.
  20. #
  21. <FilesMatch "^\.ht">
  22. Require all denied
  23. </FilesMatch>
  24.  
  25.  
  26. #
  27. # The following directives define some format nicknames for use with
  28. # a CustomLog directive.
  29. #
  30. # These deviate from the Common Log Format definitions in that they use %O
  31. # (the actual bytes sent including headers) instead of %b (the size of the
  32. # requested file), because the latter makes it impossible to detect partial
  33. # requests.
  34. #
  35. # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
  36. # Use mod_remoteip instead.
  37. #
  38. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  39. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  40. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  41. LogFormat "%{Referer}i -> %U" referer
  42. LogFormat "%{User-agent}i" agent
  43.  
  44. # Include of directories ignores editors' and dpkg's backup files,
  45. # see README.Debian for details.
  46.  
  47. # Include generic snippets of statements
  48. IncludeOptional conf-enabled/*.conf
  49.  
  50. # Include the virtual host configurations:
  51. IncludeOptional sites-enabled/
  52.  
  53. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  54.  
  55. Include /etc/phpmyadmin/apache.conf
Add Comment
Please, Sign In to add comment