Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Multiple "localhost"s?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Shaggy Posted - 26 February 2009 : 11:28:41
I'm trying to figure out how to set up additional local "domains" (don't know the proper name) on IIS5 and can't find anything in the help files.

I'm currently working on 4 different sites that each need to run from the root directory and it's becoming a right pain the in the proverbial having to go in to IIS and change the home directory of the default website every time I want to proof something.

Anyone know how I would go about setting it up so I could just have http://sitename/ point to a local directory for each site?

On a related note, because my websites need to run from the root directory, before uploading the proofs to a subdirectory on our server for our clients every evening, I have to go through each file for the site and change all the includes, links, CSS, etc. from pointing to the root directory to pointing to the subdirectory on our server. Any suggestions for working around this so I wouldn't have to make any changes? As you can imagine, it's quite a tedious & time consuming process, even more so when you're working on 4 sites simultaneously.

<
12   L A T E S T    R E P L I E S    (Newest First)
SiSL Posted - 27 February 2009 : 10:23:20
quote:
Originally posted by Shaggy

quote:
Originally posted by HuwR
ah, you should have mentioned you had XP

you are buggered since you can't create more than one website
Ah, knackers! Bit of a silly restriction, that.

SiSL, can't see the boss throwing a hundred bucks at some software to solve what is, essentially, just a minor inconvenience. Would the light (spell it properly, ****it!) version do the job for me, maybe?





Actually there is a freeware version that works on enviroments of a single web site lik XP...

http://www.helicontech.com/download-isapi_rewrite3.htm
<
Shaggy Posted - 27 February 2009 : 08:56:44
Cheers, buddy. Will give it a whirl this evening.

<
HuwR Posted - 27 February 2009 : 08:22:48
you can download it from here http://www.codeplex.com/iisadmin as well<
Shaggy Posted - 27 February 2009 : 08:19:06
Thanks, Huw; looks like that's exactly what I need Can't get on to my server at the moment to create and e-mail address to register with so I'll have to wait 'til Monday to try it out.

<
HuwR Posted - 27 February 2009 : 08:08:49
check this out Shaggy

http://www.codeproject.com/KB/cs/iisadminnet.aspx<
Shaggy Posted - 27 February 2009 : 07:51:57
quote:
Originally posted by HuwR
ah, you should have mentioned you had XP

you are buggered since you can't create more than one website
Ah, knackers! Bit of a silly restriction, that.

SiSL, can't see the boss throwing a hundred bucks at some software to solve what is, essentially, just a minor inconvenience. Would the light (spell it properly, ****it!) version do the job for me, maybe?

<
SiSL Posted - 27 February 2009 : 07:43:28
yeah, you are stucked with one site in XP :)

Alright, here is your solution:

http://www.helicontech.com/isapi_rewrite/

Basic idea is to forward incoming different type of hosts to different folders in your site...
<
HuwR Posted - 27 February 2009 : 07:07:18
ah, you should have mentioned you had XP

you are buggered since you can't create more than one website<
Shaggy Posted - 27 February 2009 : 04:40:53
Thanks for the suggestions, guys. Think the host headers might be the way to go for me, saves me trying to remember which port is for which site.

I already know how to edit the hosts file as SiSL posted above (our ISP in work is obscenely slow at updating their DNS) so I' just need to know how to set the home directory for each of my new fake domains. Note that in IIS, all I have available is the default web site and the context menu for the "Web sites" node doesn't have the option to create a new site (IIS 5.1 running on XP SP3).

<
Classicmotorcycling Posted - 27 February 2009 : 02:11:53
Or you can use "host headers" which has been around from IIS4 and is quite easy to use. It allows you to use the 1 local host IP (or any other IP Address) with multiple sites and the host file is the easiest way to point the extra sites to your host header like so:

127.0.0.1 myfakedomain.com fakedomain.com anotherfakedomain.com morefakedomain.com

I can do a quick doc to show you how to use host headers if you want.
<
HuwR Posted - 26 February 2009 : 14:26:51
or just assign a different portnumber for each website and then
use
http://localhost:8080
http://localhost:8081

etc.<
SiSL Posted - 26 February 2009 : 14:13:53
Simple, go to C:\Windows\system32\drivers\etc folder and edit "hosts" file...

Such as adding lines:
127.0.0.1 myfakedomain.com
127.0.0.1 fakedomain.com

Then from IIS options, just add "host headers" of myfakedomain.com or fakedomain.com and you'll be able to see them as http://myfakedomain.com from local...
<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000 Version 3.4.07