cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

apache-vhost.conf (892B)


      1 <VirtualHost *:80>
      2     ServerName wiki.mtrnord.blog
      3     DocumentRoot /var/www/html
      4 
      5     AllowEncodedSlashes NoDecode
      6 
      7     <Directory /var/www/html>
      8         Options -Indexes +FollowSymLinks
      9         AllowOverride All
     10         Require all granted
     11     </Directory>
     12 
     13     # Pass X-Forwarded-For and X-Forwarded-Proto headers from Envoy to PHP
     14     SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
     15     RequestHeader set X-Forwarded-For "%{X-Forwarded-For}e" env=forwarded
     16     RequestHeader set X-Forwarded-Proto "%{X-Forwarded-Proto}e" env=X-Forwarded-Proto
     17 
     18     # Timeouts for long-running imports (900s = 15 min)
     19     TimeOut 900
     20     ProxyTimeout 900
     21 
     22     RewriteEngine On
     23     RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
     24     RewriteRule ^/?$ %{DOCUMENT_ROOT}/index.php [L]
     25 
     26     ErrorLog ${APACHE_LOG_DIR}/error.log
     27     CustomLog ${APACHE_LOG_DIR}/access.log combined
     28 </VirtualHost>