Initial commit
This commit is contained in:
161
skills/typo3-ddev/assets/templates/apache/apache-site.conf
Normal file
161
skills/typo3-ddev/assets/templates/apache/apache-site.conf
Normal file
@@ -0,0 +1,161 @@
|
||||
ServerName {{DDEV_SITENAME}}.ddev.site
|
||||
|
||||
<VirtualHost *:80>
|
||||
# Workaround from https://mail-archives.apache.org/mod_mbox/httpd-users/201403.mbox/%3C49404A24C7FAD94BB7B45E86A9305F6214D04652@MSGEXSV21103.ent.wfb.bank.corp%3E
|
||||
# See also https://gist.github.com/nurtext/b6ac07ac7d8c372bc8eb
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =https
|
||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
|
||||
RewriteRule ^(.+[^/])$ https://%{HTTP_HOST}$1/ [redirect,last]
|
||||
|
||||
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
|
||||
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html
|
||||
<Directory "/var/www/html/">
|
||||
AllowOverride All
|
||||
Allow from All
|
||||
</Directory>
|
||||
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||
# error, crit, alert, emerg.
|
||||
# It is also possible to configure the loglevel for particular
|
||||
# modules, e.g.
|
||||
#LogLevel info ssl:warn
|
||||
|
||||
ErrorLog /dev/stdout
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
# For most configuration files from conf-available/, which are
|
||||
# enabled or disabled at a global level, it is possible to
|
||||
# include a line for only one particular virtual host. For example the
|
||||
# following line enables the CGI configuration for this host only
|
||||
# after it has been globally disabled with "a2disconf".
|
||||
#Include conf-available/serve-cgi-bin.conf
|
||||
# Simple ddev technique to get a phpstatus
|
||||
Alias "/phpstatus" "/var/www/phpstatus.php"
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/ssl/certs/master.crt
|
||||
SSLCertificateKeyFile /etc/ssl/certs/master.key
|
||||
|
||||
# Workaround from https://mail-archives.apache.org/mod_mbox/httpd-users/201403.mbox/%3C49404A24C7FAD94BB7B45E86A9305F6214D04652@MSGEXSV21103.ent.wfb.bank.corp%3E
|
||||
# See also https://gist.github.com/nurtext/b6ac07ac7d8c372bc8eb
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =https
|
||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
|
||||
RewriteRule ^(.+[^/])$ https://%{HTTP_HOST}$1/ [redirect,last]
|
||||
|
||||
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
|
||||
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html
|
||||
<Directory "/var/www/html/">
|
||||
AllowOverride All
|
||||
Allow from All
|
||||
</Directory>
|
||||
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||
# error, crit, alert, emerg.
|
||||
# It is also possible to configure the loglevel for particular
|
||||
# modules, e.g.
|
||||
#LogLevel info ssl:warn
|
||||
|
||||
ErrorLog /dev/stdout
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
# For most configuration files from conf-available/, which are
|
||||
# enabled or disabled at a global level, it is possible to
|
||||
# include a line for only one particular virtual host. For example the
|
||||
# following line enables the CGI configuration for this host only
|
||||
# after it has been globally disabled with "a2disconf".
|
||||
#Include conf-available/serve-cgi-bin.conf
|
||||
# Simple ddev technique to get a phpstatus
|
||||
Alias "/phpstatus" "/var/www/phpstatus.php"
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
|
||||
|
||||
DocumentRoot /var/www/{{EXTENSION_KEY}}/Documentation-GENERATED-temp
|
||||
ServerAlias docs.{{DDEV_SITENAME}}.ddev.site
|
||||
|
||||
<Directory "/var/www/{{EXTENSION_KEY}}/Documentation-GENERATED-temp/">
|
||||
AllowOverride All
|
||||
Allow from All
|
||||
|
||||
DirectoryIndex Index.html
|
||||
</Directory>
|
||||
|
||||
ErrorLog /dev/stdout
|
||||
Alias "/phpstatus" "/var/www/phpstatus.php"
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =https
|
||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
|
||||
RewriteRule ^(.+[^/])$ https://%{HTTP_HOST}$1/ [redirect,last]
|
||||
|
||||
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
|
||||
|
||||
DocumentRoot /var/www/html/v11/public
|
||||
ServerAlias v11.{{DDEV_SITENAME}}.ddev.site
|
||||
|
||||
<Directory "/var/www/html/v11/">
|
||||
AllowOverride All
|
||||
Allow from All
|
||||
</Directory>
|
||||
|
||||
ErrorLog /dev/stdout
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
Alias "/phpstatus" "/var/www/phpstatus.php"
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =https
|
||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
|
||||
RewriteRule ^(.+[^/])$ https://%{HTTP_HOST}$1/ [redirect,last]
|
||||
|
||||
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
|
||||
|
||||
DocumentRoot /var/www/html/v12/public
|
||||
ServerAlias v12.{{DDEV_SITENAME}}.ddev.site
|
||||
|
||||
<Directory "/var/www/html/v12/">
|
||||
AllowOverride All
|
||||
Allow from All
|
||||
</Directory>
|
||||
|
||||
ErrorLog /dev/stdout
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
Alias "/phpstatus" "/var/www/phpstatus.php"
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =https
|
||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
|
||||
RewriteRule ^(.+[^/])$ https://%{HTTP_HOST}$1/ [redirect,last]
|
||||
|
||||
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
|
||||
|
||||
DocumentRoot /var/www/html/v13/public
|
||||
ServerAlias v13.{{DDEV_SITENAME}}.ddev.site
|
||||
|
||||
<Directory "/var/www/html/v13/">
|
||||
AllowOverride All
|
||||
Allow from All
|
||||
</Directory>
|
||||
|
||||
ErrorLog /dev/stdout
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
Alias "/phpstatus" "/var/www/phpstatus.php"
|
||||
</VirtualHost>
|
||||
|
||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
||||
Reference in New Issue
Block a user