eneza — 2011-12-21T23:38:08-05:00 — #1
Pardon me if I got into a wrong topic....
THIS IS ALL ABOUT IIS
I am accessing my localhost through my local IP
how can I change it into something like this - http://localwebsite/ or http://localportal/
not via IP
I am in XP - running in port:8081 (I have apache installed run on port:80)
Thanks in for the help
imaginekitty — 2011-12-22T08:04:11-05:00 — #2
You could modify your hosts file
wwb_99 — 2011-12-22T10:01:38-05:00 — #3
Why not use the conventional http://localhost:8081 rather than standing up new host names? If you are on xp then you can't be running separate sites as IIS 5.1 is limited to a single site so it don't matter so much.
eneza — 2011-12-26T20:31:01-05:00 — #4
It really matters really, its about friendliness of the url they are visiting, if you are end user, localhost:8081 is alien to them it looks geeky, they like more of cuteurlforcommoner/login.aspx something like that.
eneza — 2011-12-26T20:31:49-05:00 — #5
I tried that on IIS7 for multiple sites, I will surely try this for this case. Thanks!
imaginekitty — 2011-12-26T20:41:37-05:00 — #6
Oh, are you accepting incoming requests on the XP machine? I don't think the hosts file will help with that.
I was thinking you just wanted a different name for testing apache vs IIS.
serenarules — 2011-12-26T23:07:56-05:00 — #7
Assuming you have a DNS server somewhere pointing an url to your machine, all you have to do is add a header definition to the site in question. In IIS, right click the site you wish to edit, then click "Bindings". You will see a dialog with various names and associated ports. Click "Add" to include a new definition. This is how name-based hosting works, and how IIS knows which "site" it should serve, based on the incoming request.
eneza — 2011-12-29T01:36:39-05:00 — #8
oh pardon me for the confusion, yes I am accepting request on the XP Machine.
eneza — 2011-12-29T01:46:07-05:00 — #9
This is in IIS 5/6 or 7 ? =)
Thanks for the tip...
serenarules — 2011-12-29T03:17:02-05:00 — #10
uh...all have a similar dialog, though the menu item names might not be the same. Just look through the contextual menus for a given site and look for Bindings.
A few visuals should help: http://www.hosting.com/support/iis7/create-new-sites-in-iis-7
nightstalker — 2011-12-29T03:17:17-05:00 — #11
Yes, DNS would work for any web server. It is just a way of mapping a name to an IP address. And it is the only way to do it. You going to need a domain name for each site
imaginekitty — 2011-12-29T22:48:26-05:00 — #12
Doesn't Windows only support one web site unless you are running a Server OS?
nightstalker — 2011-12-29T23:20:32-05:00 — #13
Yes, you are right. Sorry, have not used IIS6 or XP in ages. lol. OP is going to need windows server or windows 7