Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

development setup with virtual hosting for Windows
Hi - I want to set up Apache, PHP and MySQL to work on my home pc so that I
can test and make changes to sites before I upload them. I've noticed that
there are a number of packages out there designed to make the installation
easier. I don't really have a problem with this part (although I would
appreciate any recommendations anyone has as to good packages that also
include PHPMyAdmin). My problem is this - I want to be able to run all of my
sites (a couple of dozen) with apache set so that each site is on a virtual
server, but when I do this with my current seup by
adding lines to
\Apache\conf\httpd.conf
along the lines of:
<VirtualHost 127.0.0.1>
DocumentRoot "C:\sites\site1"
ServerName legui
</VirtualHost>

<VirtualHost 127.0.0.1>
DocumentRoot "C:\sites\site2"
ServerName hamblys
</VirtualHost>



and adding lines to
\WINDOWS\system32\drivers\etc\hosts

along the lines of
127.0.0.1 site1.local
127.0.0.1 site2.local

Windows insists on trying to dial up before allowing me to see the sites on
my own machine, which rather defeats the point. Any advice on how to set
this up so that windows will acccess these sites offline, or any packages
that include built in facilities to modify the server set up that would
achieve the same result would be very gratefully appreciated.
Michael



Report this thread to moderator Post Follow-up to this message
Old Post
Michael
09-24-04 08:56 AM


Re: development setup with virtual hosting for Windows
On Fri, 24 Sep 2004 04:16:33 +0000 (UTC), "Michael"
<letters@britishlibrary.net> wrote:

> My problem is this - I want to be able to run all of my
>sites (a couple of dozen) with apache set so that each site is on a virtual
>server, but when I do this with my current seup by
>adding lines to
>\Apache\conf\httpd.conf
>along the lines of:
><VirtualHost 127.0.0.1>
>DocumentRoot "C:\sites\site1"
>ServerName legui
></VirtualHost>
[...]
>
>and adding lines to
>\WINDOWS\system32\drivers\etc\hosts
>
>along the lines of
>127.0.0.1 site1.local
>127.0.0.1 site2.local
>
>Windows insists on trying to dial up before allowing me to see the sites on
>my own machine, which rather defeats the point. Any advice on how to set
>this up so that windows will acccess these sites offline, or any packages
>that include built in facilities to modify the server set up that would
>achieve the same result would be very gratefully appreciated.

Can't vouch for the results of this as I've not used a machine without a
network card in years, but the following is how to install a loopback device
 so
you can have local network access without it trying to open a real network
device... which if all you have is a modem could cause a dialup.

http://support.microsoft.com/?kbid=236869

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

Report this thread to moderator Post Follow-up to this message
Old Post
Andy Hassall
09-26-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.