Can I run two localhost sites at once? | Bytes (2024)

darrel

I'm trying to figure out if I can run to localhost sites at once. Such as
'localhost' and 'site2.localhos t'.

It appears I can set both of them up, but not run them at the same time. Is
that true? If so, what was MS thinking? Ugh.

Alternatively, is there a practical way to have a site run from a directory
within your root folder and somehow have it still obey root-relative links?

-Darrel

Nov 19 '05

Subscribe Reply

23 Can I run two localhost sites at once? | Bytes (1) 1730 Can I run two localhost sites at once? | Bytes (2)

  • <
  • 1
  • 2
  • 3
  • >

Jon Paal

this might get you close to what you need and there are other similar tools available like it via google.

http://www.codeproject.com/csharp/II...54#xx1142254xx
----------------------------------
I would much rather chew on tinfoil than try and code in C#.

Nov 19 '05 #11

Bruce Barker

sure, you just have to setup the name resolution in your hosts file.
localhost set set to 127.0.0.1 just add an entry :

site2.localhost 127.0.0.1

then in iismgr create a new site with the new hostname. you could also use
different port numbers instead of different host names.

note: only nt server supports creating more than 1 site per server, so be
sure your dev box is running nt server (2000 or 2003).
-- bruce (sqlwork.com)

"darrel" <no*****@hotmai l.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...

I'm trying to figure out if I can run to localhost sites at once. Such as
'localhost' and 'site2.localhos t'.

It appears I can set both of them up, but not run them at the same time.
Is
that true? If so, what was MS thinking? Ugh.

Alternatively, is there a practical way to have a site run from a
directory
within your root folder and somehow have it still obey root-relative
links?

-Darrel


Nov 19 '05 #12

darrel

> then in iismgr create a new site with the new hostname.

How? As far as I can tell, this is a feature that has been stripped out of
Win2k/XP.

note: only nt server supports creating more than 1 site per server, so be
sure your dev box is running nt server (2000 or 2003).

Oh, yea...exactly. So I guess the answer is to get IT to upgrade our
workstations to server OSes. I'll see if they bite. ;o)

-Darrel

Nov 19 '05 #13

darrel

> > Or get one of the many free ones, or OSX. Or...


It's your choice.
Unfortunately, it's not. I'm but one frustrated voice amongst a
long-entrenched MS-shop. :|

Maybe someday, though...there' s some cracks forming as we're looking at all
the upgrade licenses coming through.
Sorry to see you'll miss out on a bunch of web server improvements,
only because you think that a client OS should be as cheap, or be
as equally-featured, as a server OS.
It's not an OS issue. The web server is just a program running on the OS.
This is just arbitrary slicing and dicing by MS. Its competitors all seem to
be able to run multiple sites in their servers...are you saying the richest
software company on the planet can't offer the same? ;o)
Go with the "free" ( which are not so "free" ).
You'll get what you pay for.
No, you really don't get what you pay for these days with software. In fact,
more often than not, you end up just paying for headaches. Lately, I'm
finding that if the decision is between an OS product and a commercial
project, you might as well pick the OS because half of the time, even if
it's 'free', it will have better peer support and more frequent upgrades
than the commercial option.

I like .net. It's a nice technology, but this silly IIS restriction is just
another strike against it.
I wish you luck with your decision.

Thanks!

-Darrel

Nov 19 '05 #14

John Timney \(ASP.NET MVP\)

Its not been stripped out - its just never been included in it.........

if your trying to develop subdomains/subsites on a workstation product,
which its not designed for by the manufacturer - why not just install
virtualPC and put a server image on it. Then you wont break your
workstation.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"darrel" <no*****@hotmai l.com> wrote in message
news:us******** ******@TK2MSFTN GP09.phx.gbl...

then in iismgr create a new site with the new hostname.

How? As far as I can tell, this is a feature that has been stripped out of
Win2k/XP.

note: only nt server supports creating more than 1 site per server, so be
sure your dev box is running nt server (2000 or 2003).

Oh, yea...exactly. So I guess the answer is to get IT to upgrade our
workstations to server OSes. I'll see if they bite. ;o)

-Darrel


Nov 19 '05 #15

Kevin Spencer

You just don't get it. Microsoft makes no secret whatsoever about what comes
bundled with the various OS's they produce and sell. Neither is Microsoft
under any "moral" obligation to sell any feature in any software package,
any more than any company selling any product has a "moral" or "ethical"
obligation to include any feature in any product they sell. You get what
Microsoft indicates you will get if you buy the package, and that is the
agreement you make by purchasing the package, just as with any other product
made by any other company. Microsoft advertises that you will get thus and
such when you buy thus and such a product. You agree to buy the product for
the price that Microsoft is selling the product for. In other words, "you
get what you pay for."

It would be just as logical, by your argument, to complain that a cheaper
model of an automobile doesn't include Cruise Control. Yet, the automobile
company makes no claim that it will include Cruise Control. Of course, if
the company made both versions of the automobile the same, why would anyone
buy the more expensive one? Why would they need to make 2 versions? And why
would they cost 2 different prices?

You claim to be a programmer, yet your argument lacks logic, and when
confronted with logic, you bullishly defend your illogical position. For a
programmer, the only thing worse than making a logical mistake, is defending
the illogical mistake, and not fixing it. This leads to bad software.

It is illogical to dislike Microsoft without logical reason. It is also
illogical to maintain that you "really don't get what you pay for these days
with software. In fact more often than not, you end up just paying for
headaches." As I have pointed out, you get exactly what you pay for when
buying software (at least from reputable companies like Microsoft). As for
"headaches, " that is simply part of the programmer's landscape. Software is
written by humans, quite a few of them as illogical as you are. And the
complexity of software and computing technology makes it difficult to keep
up with. If you were not aware of these environmental factors when you
decided to become a developer, hopefully you are now.

If you think that the grass is greener on the "non-Microsoft" side of the
fence, you're in good company. Perhaps a stint there would help you figure
out what you really want to do with your life. Of course, there are 2 ways
to obtain wisdom: by experience, and by listening to those with experience.
The first way is the more painful of the two, but they work equally well.
Take your pick.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
I'd rather be a hammer than a nail.

"darrel" <no*****@hotmai l.com> wrote in message
news:%2******** **********@TK2M SFTNGP14.phx.gb l...

> Or get one of the many free ones, or OSX. Or...

It's your choice.

Unfortunately, it's not. I'm but one frustrated voice amongst a
long-entrenched MS-shop. :|

Maybe someday, though...there' s some cracks forming as we're looking at
all
the upgrade licenses coming through.

Sorry to see you'll miss out on a bunch of web server improvements,
only because you think that a client OS should be as cheap, or be
as equally-featured, as a server OS.

It's not an OS issue. The web server is just a program running on the OS.
This is just arbitrary slicing and dicing by MS. Its competitors all seem
to
be able to run multiple sites in their servers...are you saying the
richest
software company on the planet can't offer the same? ;o)

Go with the "free" ( which are not so "free" ).
You'll get what you pay for.

No, you really don't get what you pay for these days with software. In
fact,
more often than not, you end up just paying for headaches. Lately, I'm
finding that if the decision is between an OS product and a commercial
project, you might as well pick the OS because half of the time, even if
it's 'free', it will have better peer support and more frequent upgrades
than the commercial option.

I like .net. It's a nice technology, but this silly IIS restriction is
just
another strike against it.

I wish you luck with your decision.

Thanks!

-Darrel


Nov 19 '05 #16

George

Take a look at my article
http://www.codeproject.com/aspnet/Multisite.asp

I think it's exactly what you are looking for.

George

"darrel" <no*****@hotmai l.com> wrote in message news:%2******** **********@TK2M SFTNGP12.phx.gb l...
I'm trying to figure out if I can run to localhost sites at once. Such as
'localhost' and 'site2.localhos t'.

It appears I can set both of them up, but not run them at the same time. Is
that true? If so, what was MS thinking? Ugh.

Alternatively, is there a practical way to have a site run from a directory
within your root folder and somehow have it still obey root-relative links?

-Darrel

Nov 19 '05 #17

darrel

> this might get you close to what you need and there are other similar
tools available like it via google.


http://www.codeproject.com/csharp/II...54#xx1142254xx

Jon...EXCELLENT ! That is a *slick* little app. I can't run both sites at
once, but it makes switching between them a snap. NICE!

-Darrel

Nov 19 '05 #18

darrel

> Its not been stripped out - its just never been included in it.........

That might be an issue of semantics. From what I've been reading, the
capabilities are there in the form of various config files, but the
interface to do this via IIS Manager isn't there.

if your trying to develop subdomains/subsites on a workstation product,
which its not designed for by the manufacturer - why not just install
virtualPC and put a server image on it.

It's really an issue of comparison. When every other modern OS/web server on
the planet can do this out of the box, but MS's can't, one gets the feeling
that MS is just holding back for more cash. ;o)

More power to them, I suppose. ;o)

VPC would be nice, though.

-Darrel

Nov 19 '05 #19

darrel

> You just don't get it. Microsoft makes no secret whatsoever about what
comes

bundled with the various OS's they produce and sell. Neither is Microsoft
under any "moral" obligation to sell any feature in any software package
You'd think MS would want to compete in the marketplace based on features
and quality of product, though. Of course, if they make money doing it the
old MS way, I can't knock them for it. Business is business.
It would be just as logical, by your argument, to complain that a cheaper
model of an automobile doesn't include Cruise Control.
No. The analogy would be if the 50k Cadillac Escalade required an upgrade to
use the reverse gear while the Honda Civic had it built in at 10K. ;o)

Granted, they'd still be selling 50K Cadillacs...
You claim to be a programmer
I program. Not sure if I'd call myself a programmer.
yet your argument lacks logic, and when
confronted with logic, you bullishly defend your illogical position. For a
programmer, the only thing worse than making a logical mistake, isdefending the illogical mistake, and not fixing it. This leads to bad software.
Letting the marketing department dictate your companies product lines also
leads to bad software (yes, I'm pointing at you Microsoft. ;o)
It is illogical to dislike Microsoft without logical reason.
They don't put quality of product at the forefront of their mission. Any
company that does that begins to get on my nerves. MS isn't alone in this,
many of the large software companies do this...namely anyone selling
'enterprise' software.

MS does some great things, they also do some infuriating things. I praise
their great things but don't defend their infuriating things. Besides, they
can take some criticism.
It is also
illogical to maintain that you "really don't get what you pay for thesedays with software.
It's completely logical when you work in an organization that has spent
millions on some truly horrendous enterprise software products. It's
completely logical when you spend a year researching content management
tools and getting a pretty good look at the bloated, craptastic products out
there. It's completely logical when you find an OS product that does the
same things, but costs a fraction, and has a much livelier P2P support
group.

Now, I'm not saying commercial software = crap and OS software = great. I'm
saying price is not usually an indicator of quality of product in the
software world these days. There's truly crappy expensive software just as
there are truly amazing mid-priced software products.
As I have pointed out, you get exactly what you pay for when
buying software (at least from reputable companies like Microsoft).
We bought IIS, VS.net licenses, server licenses, workstation licenses, yet
the richest software company on the planet can't get VS.net to stop spitting
out invalid HTML nor their browser to support it. It's the simple things
like that discredot the 'reputable' comment a bit. ;o)
As for
"headaches, " that is simply part of the programmer's landscape.
True, true.
If you think that the grass is greener on the "non-Microsoft" side of the
fence, you're in good company.

Yea, that was kind of my point. ;o)

It's not necessarily greener, but there's more people playing on that lawn,
it seems. ;o)

-Darrel

Nov 19 '05 #20

  • <
  • 1
  • 2
  • 3
  • >

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6 2346

mysql: localhost

by: Rich |last post by:

Hi. Whenever I connect to a mysql database, I always connect to 'localhost'. Does that mean that you can connect to a database on another host? If you can, does that mean that I could use the same database for both of my websites (which are hosted with different people)? And if you can, how please? I assume that I would have to create another...

PHP

1 1868

Web Site(s) Architecture Help! (Multiple sites)

by: developerqs |last post by:

I have developed an engine that I use for all of my clients web sites. They are all the same type of site, some use features A, B, & C. Some web sites just use features A & B. My issue is that in order for me to make a new site, I am copying the files and then adding in the design/unique look. This makes developing new features and fixing...

PHP

3 2369

sessions with localhost

by: Simon K |last post by:

Hi I am working with sessions to check if the user is logged in. This usually works fine and all my .asp-pages checks if: <% session.Contents("loggedIn")=True %> But this only works on my web-hotel When I run the same pages on my localhost, it can't find any sessions and I appear to not be logged In. I have tried to set my localhost on the...

ASP / Active Server Pages

7 1863

connecting to localhost

by: Christoph Lutz |last post by:

Hi, I have got a scenario where an asp script needs to request via xmlhttp a file sitting on the same server. The code all works find on my local machine. However, on the hosting server, it does not. The problem is that I am on a shared server and the server can't "see itself", i.e. it's probably blocked by the host to receive request from...

ASP / Active Server Pages

6 3615

VS2005 - Unable to open local iis site other than localhost

by: Brad |last post by:

I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web...

ASP.NET

9 4286

asynchronous socket problem when connecting to localhost

by: darthghandi |last post by:

I am trying to create a server application using asynchronous sockets. I run into a problem when I try to connect to my server using a non-.net program. I can establish the connection, and send some packets in response to the programs first message, but when I receive a response back, it's the last packet I sent. After that packet, I...

C# / C Sharp

9 2933

Dynamic Content in High-Traffic Sites

by: pbd22 |last post by:

Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I got the core of the javascript from here: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm I noticed in the demo that sometimes the...

Javascript

1 2351

PHP/Apache setup for localhost

by: maflatoun |last post by:

Hi all, I've been doing ASP.NET C# for 4 years now and that's around the same # of years I've been away from PHP. But now I'm looking at this PHP position that looks really interesting to me. However, I have some unresolved questions setting up my own test enviroment having bunch of sites relative to http://localhost with each site having...

PHP

7 2378

Sessions under localhost

by: pek |last post by:

OK, I've been having this problem for quite some time but never until now I really needed a solution. I have never thought of a work around, so I really need your help. Sorry if this has been mentioned already. You can point me to the post and I'll gladly read. I googled this a lot but, first, most people have tutorials for sharing sessions in...

PHP

7618

Changing the language in Windows 10

by: Hystou |last post by:

Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...

Windows Server

7926

Problem With Comparison Operator <=> in G++

by: Oralloy |last post by:

Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...

C / C++

8138

Maximizing Business Potential: The Nexus of Website Design and Digital Marketing

by: jinu1996 |last post by:

In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...

Online Marketing

1 7679

The easy way to turn off automatic updates for Windows 10/11

by: Hystou |last post by:

Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...

Windows Server

7983

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

by: tracyyun |last post by:

Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...

General

6287

AI Job Threat for Devs

by: agi2029 |last post by:

Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...

Career Advice

1 5514

Access Europe - Using VBA to create a class based on a table - Wed 1 May

by: isladogs |last post by:

The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...

Microsoft Access / VBA

1 1228

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

946

Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy

by: bsmnconsultancy |last post by:

In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

General

Can I run two localhost sites at once? | Bytes (2024)

References

Top Articles
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 5720

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.