frontend-apache.conf 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. ServerRoot "/usr/local/apache2"
  2. Listen 80
  3. LoadModule mpm_event_module modules/mod_mpm_event.so
  4. LoadModule authn_core_module modules/mod_authn_core.so
  5. LoadModule authz_core_module modules/mod_authz_core.so
  6. LoadModule access_compat_module modules/mod_access_compat.so
  7. LoadModule mime_module modules/mod_mime.so
  8. LoadModule log_config_module modules/mod_log_config.so
  9. LoadModule env_module modules/mod_env.so
  10. #LoadModule expires_module modules/mod_expires.so
  11. #LoadModule headers_module modules/mod_headers.so
  12. #LoadModule setenvif_module modules/mod_setenvif.so
  13. #LoadModule remoteip_module modules/mod_remoteip.so
  14. LoadModule proxy_module modules/mod_proxy.so
  15. LoadModule proxy_http_module modules/mod_proxy_http.so
  16. LoadModule unixd_module modules/mod_unixd.so
  17. LoadModule status_module modules/mod_status.so
  18. LoadModule autoindex_module modules/mod_autoindex.so
  19. LoadModule dir_module modules/mod_dir.so
  20. LoadModule alias_module modules/mod_alias.so
  21. #LoadModule rewrite_module modules/mod_rewrite.so
  22. <IfModule unixd_module>
  23. #
  24. # If you wish httpd to run as a different user or group, you must run
  25. # httpd as root initially and it will switch.
  26. #
  27. # User/Group: The name (or #number) of the user/group to run httpd as.
  28. # It is usually good practice to create a dedicated user and group for
  29. # running httpd, as with most system services.
  30. #
  31. User daemon
  32. Group daemon
  33. </IfModule>
  34. ServerAdmin you@example.com
  35. ServerName feedati-fe:80
  36. <Directory />
  37. AllowOverride none
  38. Require all denied
  39. </Directory>
  40. DocumentRoot "/usr/local/apache2/htdocs"
  41. <Directory "/usr/local/apache2/htdocs">
  42. #
  43. # Possible values for the Options directive are "None", "All",
  44. # or any combination of:
  45. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  46. #
  47. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  48. # doesn't give it to you.
  49. #
  50. # The Options directive is both complicated and important. Please see
  51. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  52. # for more information.
  53. #
  54. Options Indexes FollowSymLinks
  55. #
  56. # AllowOverride controls what directives may be placed in .htaccess files.
  57. # It can be "All", "None", or any combination of the keywords:
  58. # AllowOverride FileInfo AuthConfig Limit
  59. #
  60. AllowOverride None
  61. #
  62. # Controls who can get stuff from this server.
  63. #
  64. Require all granted
  65. </Directory>
  66. <Files ".ht*">
  67. Require all denied
  68. </Files>
  69. # ErrorLog: The location of the error log file.
  70. # If you do not specify an ErrorLog directive within a <VirtualHost>
  71. # container, error messages relating to that virtual host will be
  72. # logged here. If you *do* define an error logfile for a <VirtualHost>
  73. # container, that host's errors will be logged there and not here.
  74. #
  75. ErrorLog /proc/self/fd/2
  76. # LogLevel: Control the number of messages logged to the error_log.
  77. # Possible values include: debug, info, notice, warn, error, crit,
  78. # alert, emerg.
  79. LogLevel warn
  80. <IfModule log_config_module>
  81. #
  82. # The following directives define some format nicknames for use with
  83. # a CustomLog directive (see below).
  84. #
  85. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  86. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  87. <IfModule logio_module>
  88. # You need to enable mod_logio.c to use %I and %O
  89. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  90. </IfModule>
  91. #
  92. # The location and format of the access logfile (Common Logfile Format).
  93. # If you do not define any access logfiles within a <VirtualHost>
  94. # container, they will be logged here. Contrariwise, if you *do*
  95. # define per-<VirtualHost> access logfiles, transactions will be
  96. # logged therein and *not* in this file.
  97. #
  98. CustomLog /proc/self/fd/1 common
  99. #
  100. # If you prefer a logfile with access, agent, and referer information
  101. # (Combined Logfile Format) you can use the following directive.
  102. #
  103. #CustomLog "logs/access_log" combined
  104. </IfModule>
  105. <IfModule headers_module>
  106. #
  107. # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
  108. # backend servers which have lingering "httpoxy" defects.
  109. # 'Proxy' request header is undefined by the IETF, not listed by IANA
  110. #
  111. RequestHeader unset Proxy early
  112. </IfModule>
  113. <IfModule mime_module>
  114. #
  115. # TypesConfig points to the file containing the list of mappings from
  116. # filename extension to MIME-type.
  117. #
  118. TypesConfig conf/mime.types
  119. #
  120. # AddType allows you to add to or override the MIME configuration
  121. # file specified in TypesConfig for specific file types.
  122. #
  123. #AddType application/x-gzip .tgz
  124. #
  125. # AddEncoding allows you to have certain browsers uncompress
  126. # information on the fly. Note: Not all browsers support this.
  127. #
  128. #AddEncoding x-compress .Z
  129. #AddEncoding x-gzip .gz .tgz
  130. #
  131. # If the AddEncoding directives above are commented-out, then you
  132. # probably should define those extensions to indicate media types:
  133. #
  134. AddType application/x-compress .Z
  135. AddType application/x-gzip .gz .tgz
  136. #
  137. # AddHandler allows you to map certain file extensions to "handlers":
  138. # actions unrelated to filetype. These can be either built into the server
  139. # or added with the Action directive (see below)
  140. #
  141. # To use CGI scripts outside of ScriptAliased directories:
  142. # (You will also need to add "ExecCGI" to the "Options" directive.)
  143. #
  144. #AddHandler cgi-script .cgi
  145. # For type maps (negotiated resources):
  146. #AddHandler type-map var
  147. #
  148. # Filters allow you to process content before it is sent to the client.
  149. #
  150. # To parse .shtml files for server-side includes (SSI):
  151. # (You will also need to add "Includes" to the "Options" directive.)
  152. #
  153. #AddType text/html .shtml
  154. #AddOutputFilter INCLUDES .shtml
  155. </IfModule>
  156. ProxyPreserveHost On
  157. <Location /tt-rss/>
  158. ProxyPass http://tt-rss/tt-rss/
  159. ProxyPassReverse http://tt-rss/tt-rss/
  160. </Location>
  161. <Location /rss-bridge/>
  162. ProxyPass http://rss-bridge/
  163. ProxyPassReverse http://rss-bridge/
  164. </Location>
  165. # vim: set ft=apache bkc=yes: