Skip to content

Instantly share code, notes, and snippets.

@mandrasch
Last active January 12, 2022 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandrasch/922e15260176d6d03c67d62d5c405c8b to your computer and use it in GitHub Desktop.
Save mandrasch/922e15260176d6d03c67d62d5c405c8b to your computer and use it in GitHub Desktop.
DDEV "ERR_TOO_MANY_REDIRECTS" because HTTPS is not available (because SSL proxy?)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
# .ddev/config.yaml
name: temp-test-htacess-https
type: wordpress
docroot: ""
php_version: "7.4"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
mariadb_version: "10.3"
mysql_version: ""
nfs_mount_enabled: false
mutagen_enabled: false
use_dns_when_possible: true
composer_version: "2"
web_environment: []
<?php
echo "Hello DDEV! <3";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment