Advertisement
Guest User

httpd.conf

a guest
Apr 6th, 2019
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ServerRoot "/etc/httpd"
  2. Listen 80
  3. Include conf.modules.d/*.conf
  4.  
  5. User apache
  6. Group apache
  7.  
  8. ServerAdmin root@localhost
  9.  
  10. <Directory />
  11. AllowOverride none
  12. Require all denied
  13. </Directory>
  14.  
  15. DocumentRoot "/var/www/html"
  16.  
  17. <Directory "/var/www">
  18. AllowOverride None
  19. Require all granted
  20. </Directory>
  21.  
  22. <Directory "/var/www/html">
  23. Options Indexes FollowSymLinks
  24. AllowOverride None
  25. Require all granted
  26. </Directory>
  27.  
  28. <IfModule dir_module>
  29. DirectoryIndex index.html
  30. </IfModule>
  31.  
  32. <Files ".ht*">
  33. Require all denied
  34. </Files>
  35.  
  36. ErrorLog "logs/error_log"
  37. LogLevel warn
  38.  
  39. <IfModule log_config_module>
  40. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  41. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  42.  
  43. <IfModule logio_module>
  44. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  45. </IfModule>
  46.  
  47. CustomLog "logs/access_log" combined
  48. </IfModule>
  49.  
  50. <IfModule alias_module>
  51. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  52. </IfModule>
  53.  
  54. <Directory "/var/www/cgi-bin">
  55. AllowOverride None
  56. Options None
  57. Require all granted
  58. </Directory>
  59.  
  60. <IfModule mime_module>
  61. TypesConfig /etc/mime.types
  62.  
  63. AddType application/x-compress .Z
  64. AddType application/x-gzip .gz .tgz
  65. AddType text/html .shtml
  66. AddOutputFilter INCLUDES .shtml
  67. </IfModule>
  68.  
  69. AddDefaultCharset UTF-8
  70.  
  71. <IfModule mime_magic_module>
  72. MIMEMagicFile conf/magic
  73. </IfModule>
  74.  
  75. EnableMMAP off
  76. EnableSendfile on
  77.  
  78. IncludeOptional conf.d/*.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement