vats_paster

Apache config

Sep 7th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.86 KB | None | 0 0
  1. ServerRoot "/etc/httpd"
  2.  
  3.  
  4. Listen 80
  5.  
  6. LoadModule mpm_event_module modules/mod_mpm_event.so
  7. LoadModule authn_file_module modules/mod_authn_file.so
  8. LoadModule authn_core_module modules/mod_authn_core.so
  9. LoadModule authz_host_module modules/mod_authz_host.so
  10. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  11. LoadModule authz_user_module modules/mod_authz_user.so
  12. LoadModule authz_core_module modules/mod_authz_core.so
  13. LoadModule access_compat_module modules/mod_access_compat.so
  14. LoadModule auth_basic_module modules/mod_auth_basic.so
  15. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  16. LoadModule include_module modules/mod_include.so
  17. LoadModule filter_module modules/mod_filter.so
  18. LoadModule wsgi_module modules/mod_wsgi.so
  19. LoadModule mime_module modules/mod_mime.so
  20. LoadModule log_config_module modules/mod_log_config.so
  21. LoadModule env_module modules/mod_env.so
  22. LoadModule headers_module modules/mod_headers.so
  23. LoadModule setenvif_module modules/mod_setenvif.so
  24. LoadModule version_module modules/mod_version.so
  25. LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  26. LoadModule unixd_module modules/mod_unixd.so
  27. LoadModule status_module modules/mod_status.so
  28. LoadModule autoindex_module modules/mod_autoindex.so
  29. <IfModule !mpm_prefork_module>
  30. #LoadModule cgid_module modules/mod_cgid.so
  31. </IfModule>
  32. <IfModule mpm_prefork_module>
  33. #LoadModule cgi_module modules/mod_cgi.so
  34. </IfModule>
  35. LoadModule negotiation_module modules/mod_negotiation.so
  36. LoadModule dir_module modules/mod_dir.so
  37. LoadModule userdir_module modules/mod_userdir.so
  38. LoadModule alias_module modules/mod_alias.so
  39.  
  40. <IfModule unixd_module>
  41. User http
  42. Group http
  43.  
  44. </IfModule>
  45.  
  46.  
  47. ServerAdmin [email protected]
  48.  
  49.  
  50.  
  51.  
  52. WSGIScriptAlias / /srv/http/Q/index.py
  53. WSGIPythonHome /srv/http/Q/Q/q
  54. <Directory /srv/http/Q>
  55. Order allow,deny
  56. Allow from all
  57. </Directory>
  58. <Directory /srv/http/Q>
  59. #
  60. # Possible values for the Options directive are "None", "All",
  61. # or any combination of:
  62. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  63. #
  64. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  65. # doesn't give it to you.
  66. #
  67. # The Options directive is both complicated and important. Please see
  68. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  69. # for more information.
  70. #
  71. Options Indexes FollowSymLinks
  72.  
  73. #
  74. # AllowOverride controls what directives may be placed in .htaccess files.
  75. # It can be "All", "None", or any combination of the keywords:
  76. # AllowOverride FileInfo AuthConfig Limit
  77. #
  78. AllowOverride None
  79.  
  80. #
  81. # Controls who can get stuff from this server.
  82. #
  83. Require all granted
  84. Allow from all
  85. </Directory>
  86. <IfModule dir_module>
  87. DirectoryIndex index.html
  88. </IfModule>
  89.  
  90. <Files ".ht*">
  91. Require all denied
  92. </Files>
  93.  
  94. ErrorLog "/var/log/httpd/error_log"
  95.  
  96. LogLevel warn
  97.  
  98. <IfModule log_config_module>
  99. #
  100. # The following directives define some format nicknames for use with
  101. # a CustomLog directive (see below).
  102. #
  103. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  104. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  105.  
  106. <IfModule logio_module>
  107. # You need to enable mod_logio.c to use %I and %O
  108. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  109. </IfModule>
  110.  
  111. #
  112. # The location and format of the access logfile (Common Logfile Format).
  113. # If you do not define any access logfiles within a <VirtualHost>
  114. # container, they will be logged here. Contrariwise, if you *do*
  115. # define per-<VirtualHost> access logfiles, transactions will be
  116. # logged therein and *not* in this file.
  117. #
  118. CustomLog "/var/log/httpd/access_log" common
  119.  
  120. #
  121. # If you prefer a logfile with access, agent, and referer information
  122. # (Combined Logfile Format) you can use the following directive.
  123. #
  124. #CustomLog "/var/log/httpd/access_log" combined
  125. </IfModule>
  126.  
  127. <IfModule alias_module>
  128. #
  129. # Redirect: Allows you to tell clients about documents that used to
  130. # exist in your server's namespace, but do not anymore. The client
  131. # will make a new request for the document at its new location.
  132. # Example:
  133. # Redirect permanent /foo http://www.example.com/bar
  134.  
  135. #
  136. # Alias: Maps web paths into filesystem paths and is used to
  137. # access content that does not live under the DocumentRoot.
  138. # Example:
  139. # Alias /webpath /full/filesystem/path
  140. #
  141. # If you include a trailing / on /webpath then the server will
  142. # require it to be present in the URL. You will also likely
  143. # need to provide a <Directory> section to allow access to
  144. # the filesystem path.
  145.  
  146. #
  147. # ScriptAlias: This controls which directories contain server scripts.
  148. # ScriptAliases are essentially the same as Aliases, except that
  149. # documents in the target directory are treated as applications and
  150. # run by the server when requested rather than as documents sent to the
  151. # client. The same rules about trailing "/" apply to ScriptAlias
  152. # directives as to Alias.
  153. #
  154. ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
  155.  
  156. </IfModule>
  157.  
  158. <IfModule cgid_module>
  159. #
  160. # ScriptSock: On threaded servers, designate the path to the UNIX
  161. # socket used to communicate with the CGI daemon of mod_cgid.
  162. #
  163. #Scriptsock cgisock
  164. </IfModule>
  165.  
  166. <Directory "/srv/http/cgi-bin">
  167. AllowOverride None
  168. Options None
  169. Require all granted
  170. </Directory>
  171.  
  172. <IfModule headers_module>
  173. #
  174. # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
  175. # backend servers which have lingering "httpoxy" defects.
  176. # 'Proxy' request header is undefined by the IETF, not listed by IANA
  177. #
  178. RequestHeader unset Proxy early
  179. </IfModule>
  180.  
  181. <IfModule mime_module>
  182. #
  183. # TypesConfig points to the file containing the list of mappings from
  184. # filename extension to MIME-type.
  185. #
  186. TypesConfig conf/mime.types
  187.  
  188. #
  189. # AddType allows you to add to or override the MIME configuration
  190. # file specified in TypesConfig for specific file types.
  191. #
  192. #AddType application/x-gzip .tgz
  193. #
  194. # AddEncoding allows you to have certain browsers uncompress
  195. # information on the fly. Note: Not all browsers support this.
  196. #
  197. #AddEncoding x-compress .Z
  198. #AddEncoding x-gzip .gz .tgz
  199. #
  200. # If the AddEncoding directives above are commented-out, then you
  201. # probably should define those extensions to indicate media types:
  202. #
  203. AddType application/x-compress .Z
  204. AddType application/x-gzip .gz .tgz
  205.  
  206. #
  207. # AddHandler allows you to map certain file extensions to "handlers":
  208. # actions unrelated to filetype. These can be either built into the server
  209. # or added with the Action directive (see below)
  210. #
  211. # To use CGI scripts outside of ScriptAliased directories:
  212. # (You will also need to add "ExecCGI" to the "Options" directive.)
  213. #
  214. #AddHandler cgi-script .cgi
  215.  
  216. # For type maps (negotiated resources):
  217. #AddHandler type-map var
  218.  
  219. #
  220. # Filters allow you to process content before it is sent to the client.
  221. #
  222. # To parse .shtml files for server-side includes (SSI):
  223. # (You will also need to add "Includes" to the "Options" directive.)
  224. #
  225. #AddType text/html .shtml
  226. #AddOutputFilter INCLUDES .shtml
  227. </IfModule>
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234. Include conf/extra/httpd-mpm.conf
  235.  
  236. Include conf/extra/httpd-multilang-errordoc.conf
  237.  
  238. Include conf/extra/httpd-autoindex.conf
  239.  
  240. Include conf/extra/httpd-languages.conf
  241.  
  242. Include conf/extra/httpd-userdir.conf
  243.  
  244.  
  245.  
  246.  
  247.  
  248. Include conf/extra/httpd-default.conf
  249.  
  250. <IfModule proxy_html_module>
  251. Include conf/extra/proxy-html.conf
  252. </IfModule>
  253.  
  254. <IfModule ssl_module>
  255. SSLRandomSeed startup builtin
  256. SSLRandomSeed connect builtin
  257. </IfModule>
Add Comment
Please, Sign In to add comment