Cannot get / if I use an actual domain for URL

I’ve installed Ghost on WSL on my Windows server. I’ve got a site blah.com setup in IIS, with a URL redirect for blah.com/blog. The URL I use in the prod config for Ghost matches what I’m redirecting for, but I get “Cannot get /” if I use that domain/URL. If I put in the IP of the WSL instance and the port, of course that works, but all of the links and references are wrong. I don’t know what else is really applicable here… I’m using MySQL which seems to be fine, and the default port.

This issue seems similar for me but it doesn’t work for me with 127.0.0.1 for host and domain in the URL.

The official doc and the post may help you:

If I’m already doing a URL Rewrite with IIS, from what I’ve read I don’t really need to use nginx?

My ghost config:

  "url": "https://www.mydomain.com/blog",
  "server": {
    "port": 2368,
    "host": "localhost"

  },

  "database": {
    "client": "mysql",
    "connection": {
      "host": "192.168.0.127",
      "user": "ghost-591",
      "password": "blahblahblah",
      "database": "ghost_5"
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "local",
  "paths": {
    "contentPath": "/home/michaelkb/ghost/content"
  }
}

My rewrite rule in IIS:

<rule name="Reverse Proxy to Ghost" stopProcessing="true">
	<match url="^blog(/.*)?$" />
	<action type="Rewrite" url="http://127.0.0.1:2368{R:1}" />
	<serverVariables>                        
		<set name="HTTP_X_FORWARDED_PROTO" value="https" />
	</serverVariables>
</rule>

Thoughts? Weird that it works for URL with the IP plugged in… bah.

After about a week of this I’ve decided to abandon Ghost for something that I can get running. Thanks for your help anyway, @Raki !