Redirect Subdomain to Specific Page

aka: Someone please walk me through nginx-includes :frowning:

I need to setup a subdomain on a Trellis site, and loading that subdomain needs to redirect to a specific URL. Like: =>

I’ve first added a canonical URL for the subdomain into wordpress_sites.yml (so that loading the subdomain doesn’t give an SSL error).

      - canonical:
      - canonical:

Next I’ve created a file nginx-includes/ which contains:

server {
    listen 80;
    location / {

…and this file makes it to the server. But, loading the subdomain just redirects to the home page. So I’m guessing this file is being ignored?

Help appreciated :smiley:

1 Like

I have the same issue, the subdomain is always redirect to the main domain… Even when I write the config directly in the main config file