Hello, I am trying to add a subdomain pointing to a directory on the same server

I am hosting asp.net with iis.
I am using the free plan.
The current domain is example.com
I plan to host multiple sites on one server.

But there are some problems.
Currently, wwwroot is configured as follows.

wwwroot/blog
wwwroot/shop

example.com/blog
example.com/shop

but here

I 'd like to connect to blog.example.com & shop.example.com
What should I set in iis or cloudflare in this case??

For iis configuration questions, I suggest you check Serverfault or Stackoverflow.

But to do such a rewrite here would require a Worker. Here’s an example script that performs a similar function:
https://developers.cloudflare.com/workers/examples/respond-with-another-site

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.