Advertisement
Guest User

Untitled

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