Add new comment

You don't say what your problem is, but that's certainly a valid trusted_host_patterns array. As I mention, you might also want to add '^localhost$' as an entry alongside your www and non-www variants.