Professional Web Applications Themes

Multiple NameVirtualHost ? - Linux Setup, Configuration & Administration

Hi, I'd like to be able to reach my virtual hosts even from inside my network and I thought the trick was to use NameVirtualHost twice, once for each NIC but it's not working, neither is putting the IP's on the same row after the directive. Is it possible?!?!? TIA Kejpa...

  1. #1

    Default Multiple NameVirtualHost ?

    Hi,
    I'd like to be able to reach my virtual hosts even from inside my
    network and I thought the trick was to use NameVirtualHost twice, once
    for each NIC but it's not working, neither is putting the IP's on the
    same row after the directive.
    Is it possible?!?!?

    TIA
    Kejpa

    Kejpa Guest

  2. #2

    Default Re: Multiple NameVirtualHost ?

    Kejpa <net> wrote: 

    ....are you talking about... what exactly?

    Davide

    --
    | General Protection Fault! [ Ignore ] [ Reboot ] [ Install Linux ]
    | -- From a Slashdot.org post
    Davide Guest

  3. #3

    Default Re: Multiple NameVirtualHost ?



    Davide Bianchi wrote: 
    >
    >
    > ...are you talking about... what exactly?
    >
    > Davide
    >[/ref]

    I'm talking about Apache 2 hosted on a server that I need to be able to
    test from within a network.
    I have multiple (www.defaultsite.com, www.thissite.com,
    www.thatsite.com...) and I need to be able to have a look at them from
    my development computer as well as from the internet. Right now the only
    one I can reach from within is www.defaultsite.com :(

    Sorry for not making it clearer at the beginning.

    Regards
    Kejpa

    Kejpa Guest

  4. #4

    Default Re: Multiple NameVirtualHost ?

    On Sat, 17 Jan 2004 20:31:54 +0200, Kejpa <net> wrote: 

    You repeat the directive for each IP (or simply one 'NameVirtualHost *'
    for wildcard). But if you want the same virtual hostname to work from
    either IP, you would have to use wildcard <VirtualHost *> section for
    each ServerName.

    My only problem is that I have to put the server's public vhosts in
    /etc/hosts of client in order to access them from LAN IPs. But I have to
    comment that out in my laptop if accessing them from dialup outside my
    network.

    --
    David Efflandt - All spam ignored http://www.de-srv.com/
    http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
    http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
    David Guest

  5. Moderated Post

    Default Re: Multiple NameVirtualHost ?

    Removed by Administrator
    Davide Guest
    Moderated Post

  6. #6

    Default Re: Multiple NameVirtualHost ?

    Ok,
    so I added another line with NameVirtualHost 192.168.0.1 and changed the
    directives to be <VirtualHost *> instead of any particular IP-address
    but when I try any of my virtual hosts from inside I only get the
    default website :(

    What directives am I missing ?!?

    Regards
    /Kjell
     

    Kjell Guest

Similar Threads

  1. Difficulties to send multiple object in multiple objectwith SOAP (WebService)
    By laurent pinson in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: May 19th, 01:17 PM
  2. 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
  3. Replies: 8
    Last Post: February 28th, 03:45 AM
  4. Replies: 0
    Last Post: August 25th, 09:25 AM
  5. Replies: 4
    Last Post: May 22nd, 05:58 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