madwulf

http.conf

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