IIS 8 / Windows Server 2012 R2
I am new to IIS and need some advice regarding hosting multiple sites on a server with a single IP address. Not sure if I should be using application pools or VDs, or how to configure the bindings.
My domain is example.com
.
I want to host two separate websites on this single server with a single IP address.
- example.com/cars (asp application)
- example.com/sport (php application)
So far in my IIS Sites Manager I have the following structure;
- Sites
-- Default Website
-- Cars
-- Sport
In my inetpub/wwwroot
I have created two folders Cars
and Sport
- these folders contain all the relevant files and folders for the sites.
I have tried to edit the site bindings but I can't seem to get the configuration correct. For the /cars
website I've tried;
type: http
hostname: example.com
port: 80
IP Address: *
I'm not sure how to bind this to the /cars
directory / url. Do I need to set the ANAME or CNAME?
Notes;
- I don't want to use port numbers in the urls.
- I don't want to use subdomains.
My desired result;
- someone visits
example.com
and they see a landing page - someone visits
example.com/cars
and they see the cars website - someone visits
example.com/sport
and they see the sport website