Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: 2 (Web) Servers on 1 PC

06 Jun 2009   #1
iceangel89

Windows Vista/7RC
 
 
2 (Web) Servers on 1 PC

can i setup 2 servers to use 2 different Loopback IPs?

eg
127.0.0.1 IIS7.5
127.0.0.2 Apache

something like that? this is so that i can specify in the hosts file something like

127.0.0.1 iis
127.0.0.2 apache

i cant do something like ... cant specify ports in hosts file ...

127.0.0.1:80 iis
127.0.0.1:81 apache


My System SpecsSystem Spec
.

06 Jun 2009   #2
Generator

XP Pro SP3 x86/Vista SP2 x64/Win7 x64 Triple-boot
 
 

Yeah sure you can...

2 (Web) Servers on 1 PC-serversgonemad.jpg


I'm not sure why you would want to though. Twice the resources, twice the risks, twice the amount of things to go wrong... I could go on but I won't.

Don't know the in's & out's of IIS but with Apache you could just use one server and setup a virtual host on port 81 in the vhosts config file as well as the default document root on port 80. Like so...
Code:
    <VirtualHost *:81>
    DocumentRoot "c:/server/site2"
    ServerName www.site2.com
    </VirtualHost>
Theres no need to edit the windows host file at all aswell for this. If you want both sites 'live' don't forget to port forward if your machine sits behind a router, and dont forget your firewall exceptions.

Hope this helps somewhat!


My System SpecsSystem Spec
07 Jun 2009   #3
iceangel89

Windows Vista/7RC
 
 

hmm the reason why i want that is just for testing ... and i sometimes feel like trying out ASP.NET MVC apart from just PHP
My System SpecsSystem Spec
.


Reply

 2 (Web) Servers on 1 PC




Thread Tools





Similar help and support threads
Thread Forum
Steam Servers Down
Hi, just wondered if anyone knows if the Steam servers are down. I've searched on Google and the most recent threads have mentioned items and stats disappearing. I can't access community or anything, so just wanted to make sure it's not my PC. Thanks! :cool:
Gaming
bad DNS servers to be shut down
Maximum PC | FBI Preparing to Shut Down Temporary DNS Servers, Kill Unknown Number of Internet Connections check your DNS server for these bad boys
Security News
Any Print Servers for 64 ????
Hello all Can anyone tell me if anyone has a Windows 7 compatible wired print server. I just upgraded to 7 ultimate and was using the NetGear PS121V2 on XP and it worked great and thought I was OK as its on MS's approve list but this thing barely works and it took me hours to get installed...
Hardware & Devices
2 COD 4 Servers for those with Win7 64
I have 2 COD4 Server located @ 208.43.15.45:28930(-=IT=-) and the other at 208.43.23.172:28930(ROC-Realm Of Chaos) These are Linux (cent OS) servers, low ping :cool: I modified the pb_sv_Restriction to read like this: pb_sv_Restrictions 0 So that Win7 64 bit users can get on with...
Gaming

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App