Professional Web Applications Themes

Local apache, multiple sites - Mac Networking

Hello. I'd like to set up the local apache on OS X to reference more than one site, ie. have several name-based virtual hosts. This needs to work when not connected to a network, ie. [url]http://site1[/url] should be along the lines of 127.0.0.1 and [url]http://site2[/url] must also work from 127.0.0.1. Is there any way of doing this? I looked at /etc/hosts but there's a warning there which says it would be ignored. Cheers, Ian...

  1. #1

    Default Local apache, multiple sites

    Hello.

    I'd like to set up the local apache on OS X to reference more than one site,
    ie. have several name-based virtual hosts. This needs to work when not
    connected to a network, ie. [url]http://site1[/url] should be along the lines of
    127.0.0.1 and [url]http://site2[/url] must also work from 127.0.0.1.

    Is there any way of doing this? I looked at /etc/hosts but there's a warning
    there which says it would be ignored.


    Cheers,
    Ian


    Ian McCall Guest

  2. #2

    Default Re: Local apache, multiple sites

    In article <8a0Ma.278$nP.0newsfep4-winn.server.ntli.net>,
    "Ian McCall" <ianeruvia.org> wrote:
    > Hello.
    >
    > I'd like to set up the local apache on OS X to reference more than one site,
    > ie. have several name-based virtual hosts. This needs to work when not
    > connected to a network, ie. [url]http://site1[/url] should be along the lines of
    > 127.0.0.1 and [url]http://site2[/url] must also work from 127.0.0.1.
    Standard Apache stuff; see
    <http://httpd.apache.org/docs/vhosts/index.html> for detailed help.
    > Is there any way of doing this? I looked at /etc/hosts but there's a warning
    > there which says it would be ignored.
    If you're running 10.2 or better, that warning is no longer accurate.

    --
    Tom "Tom" Harrington
    Macaroni, Automated System Maintenance for Mac OS X.
    Version 1.4: Best cleanup yet, gets files other tools miss.
    See [url]http://www.atomicbird.com/[/url]
    Tom Harrington Guest

  3. #3

    Default Re: Local apache, multiple sites


    "Tom Harrington" <tphpcisys.no.spam.dammit.net> wrote in message
    news:tph-AF425D.16423330062003localhost...
    > Standard Apache stuff; see
    > <http://httpd.apache.org/docs/vhosts/index.html> for detailed help.
    I read that guide - perhaps I'm missing something but it seems as if I must
    first set up my machine to understand it can have two names. After that, I
    allow the standard name-based virtual hosting to take over. However, first I
    have to get the two names to resolve to 127.0.0.1 - right? That's the bit
    I'm stuck on.


    Cheers,
    Ian


    Ian McCall Guest

  4. #4

    Default Re: Local apache, multiple sites

    In article <ad3Ma.471$nP.6newsfep4-winn.server.ntli.net>, Ian McCall
    <ianeruvia.org> wrote:
    > "Tom Harrington" <tphpcisys.no.spam.dammit.net> wrote in message
    > news:tph-AF425D.16423330062003localhost...
    > > Standard Apache stuff; see
    > > <http://httpd.apache.org/docs/vhosts/index.html> for detailed help.
    >
    > I read that guide - perhaps I'm missing something but it seems as if I must
    > first set up my machine to understand it can have two names. After that, I
    > allow the standard name-based virtual hosting to take over. However, first I
    > have to get the two names to resolve to 127.0.0.1 - right? That's the bit
    > I'm stuck on.
    That is a trivial matter of editing the /etc/hosts file.

    --
    Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>

    When replying by e-mail, use plain text ONLY to make sure I read it.
    Due to spam and viruses, I filter all mail with HTML or attachments.
    Jerry Kindall Guest

  5. Moderated Post

    Default Re: Local apache, multiple sites

    Removed by Administrator
    Tim McNamara Guest
    Moderated Post

Similar Threads

  1. Multiple Sites + Multiple Languages + Unicode with Adobe Contribute ?
    By The Night Blogger in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: September 29th, 12:38 AM
  2. #40493 [NEW]: PHP segfaults apache on about half our sites
    By rick at revenew dot nl in forum PHP Bugs
    Replies: 5
    Last Post: February 15th, 03:31 PM
  3. #40493 [Fbk->Opn]: PHP segfaults apache on about half our sites
    By rick at revenew dot nl in forum PHP Bugs
    Replies: 0
    Last Post: February 15th, 09:22 AM
  4. Replies: 0
    Last Post: February 15th, 09:16 AM
  5. Multiple users on multiple sites
    By oldsueb in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: March 30th, 02:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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