development setup with virtual hosting for Windows

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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


    Michael Guest

  2. Similar Questions and Discussions

    1. Cold Fusion / MySQL development setup NIGHTMARE!
      Please, somebody, anybody.. I have tried many possible combinations of MySQL Server and the J connector. Nothing works. I have two DSN that I've...
    2. Virtual Flash Communication Server Hosting
      I think I understand now how to create seperate virtual hosts within FCS. The problem now is I need to be able to measure bandwidth by each...
    3. Session Variables / IIS Virtual Hosting
      i am working on setting up a website that is on a shared windows server we have and coldfusion won't hold the session variables. ie. if i set the...
    4. Virtual hosting with WEBrick?
      Hi, I'm checking out WEBrick and it looks great. I wonder if there is some easy way to do "virtual hosting" so that I can host several domains...
    5. NETWROK SETUP FROM WINDOWS 2000 PRO TO WINDOWS XP PRO
      Please help... I recently purchased a new system that runs windows xp and have no idea on how to set up a network to my old system which runs...
  3. #2

    Default 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.

    [url]http://support.microsoft.com/?kbid=236869[/url]

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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139