How to match a domain in a subfolder of another domain?

I have a very fast web server (IIS6, ASP.NET) that I want to use for multiple sites. Now I already have a domain that maps directly to the IP address of the server, but how can I get a different domain to map to a subfolder (i.e. a standalone ASP.NET application) on the same computer? Is it theoretically possible? (note: only port 80 is open, I cannot open others.)

Accepted answer: shown below. I really followed the tutorial and got his job. Hooray! Thanks to all!:)

+3
source share
3 answers

Of course, you could do this with domain host headers. Simply create a new website and select a different site header (for example, www.example.com) and point it to the desired folder. You can create hundreds of websites on one server if you want.

Here is a tutorial on how to do this.

  • Open IIS Manager
  • On the left side, expand the name of your computer, then click "Websites", right-click on the right side of the screen, hover over "Create" and select "Website ..."
  • Click β€œNext” in the dialog box, then enter a description of the new website you are creating (it could be anything)
  • Click Next again and go to the last text box and enter what you want the new host header to be
  • , " ".
  • " " ( ASP.NET), .
  • "" , !
+4

" IIS" - DNS .

( ) , "-" "...", HTTP/1.1 ": .

0

? iis , ip.

, ssl; .

If it should be subdir, you can create another site, as described above, and configure it to redirect to another location.

0
source

All Articles