github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/containers/ddev-webserver/ddev-webserver-base-files/etc/apache2/sites-enabled/apache-site.conf (about) 1 # ddev generic/default/php config for apache2 2 3 <VirtualHost *:80> 4 # Workaround from https://mail-archives.apache.org/mod_mbox/httpd-users/201403.mbox/%3C49404A24C7FAD94BB7B45E86A9305F6214D04652@MSGEXSV21103.ent.wfb.bank.corp%3E 5 # See also https://gist.github.com/nurtext/b6ac07ac7d8c372bc8eb 6 7 RewriteEngine On 8 RewriteCond %{HTTP:X-Forwarded-Proto} =https 9 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d 10 RewriteRule ^(.+[^/])$ https://%{HTTP_HOST}$1/ [redirect,last] 11 12 SetEnvIf X-Forwarded-Proto "https" HTTPS=on 13 14 ServerAdmin webmaster@localhost 15 DocumentRoot /var/www/html 16 <Directory "/var/www/html/"> 17 AllowOverride All 18 Allow from All 19 </Directory> 20 21 # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, 22 # error, crit, alert, emerg. 23 # It is also possible to configure the loglevel for particular 24 # modules, e.g. 25 #LogLevel info ssl:warn 26 27 ErrorLog /dev/stdout 28 CustomLog ${APACHE_LOG_DIR}/access.log combined 29 30 # For most configuration files from conf-available/, which are 31 # enabled or disabled at a global level, it is possible to 32 # include a line for only one particular virtual host. For example the 33 # following line enables the CGI configuration for this host only 34 # after it has been globally disabled with "a2disconf". 35 #Include conf-available/serve-cgi-bin.conf 36 # Simple ddev technique to get a phpstatus 37 Alias "/phpstatus" "/var/www/phpstatus.php" 38 Alias "/xhprof" "/var/xhprof/xhprof_html" 39 <Directory "/var/xhprof"> 40 Options Indexes 41 AllowOverride None 42 Require all granted 43 </Directory> 44 45 # Double the default LimitRequestFieldSize for large header payloads 46 LimitRequestFieldSize 16380 47 48 </VirtualHost> 49 50 <VirtualHost *:443> 51 SSLEngine on 52 SSLCertificateFile /etc/ssl/certs/master.crt 53 SSLCertificateKeyFile /etc/ssl/certs/master.key 54 55 # Workaround from https://mail-archives.apache.org/mod_mbox/httpd-users/201403.mbox/%3C49404A24C7FAD94BB7B45E86A9305F6214D04652@MSGEXSV21103.ent.wfb.bank.corp%3E 56 # See also https://gist.github.com/nurtext/b6ac07ac7d8c372bc8eb 57 58 RewriteEngine On 59 RewriteCond %{HTTP:X-Forwarded-Proto} =https 60 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d 61 RewriteRule ^(.+[^/])$ https://%{HTTP_HOST}$1/ [redirect,last] 62 63 SetEnvIf X-Forwarded-Proto "https" HTTPS=on 64 65 ServerAdmin webmaster@localhost 66 DocumentRoot /var/www/html 67 <Directory "/var/www/html/"> 68 AllowOverride All 69 Allow from All 70 </Directory> 71 # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, 72 # error, crit, alert, emerg. 73 # It is also possible to configure the loglevel for particular 74 # modules, e.g. 75 #LogLevel info ssl:warn 76 77 ErrorLog /dev/stdout 78 CustomLog ${APACHE_LOG_DIR}/access.log combined 79 80 # For most configuration files from conf-available/, which are 81 # enabled or disabled at a global level, it is possible to 82 # include a line for only one particular virtual host. For example the 83 # following line enables the CGI configuration for this host only 84 # after it has been globally disabled with "a2disconf". 85 #Include conf-available/serve-cgi-bin.conf 86 # Simple ddev technique to get a phpstatus 87 Alias "/phpstatus" "/var/www/phpstatus.php" 88 Alias "/xhprof" "/var/xhprof/xhprof_html" 89 <Directory "/var/xhprof"> 90 Options Indexes 91 AllowOverride None 92 Require all granted 93 </Directory> 94 95 # Double the default LimitRequestFieldSize for large header payloads 96 LimitRequestFieldSize 16380 97 98 </VirtualHost> 99 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet