RE: [users@httpd] Routing \ Apache Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

If you still havent solved it, I might have a solution for you. I'm running
several vhosts behind NAT, using IP-based vhosts.
You can try this:
NameVirtualHost 192.168.1.100
<VirtualHost 192.168.1.100>
	ServerName some.domain.name.com
	* other settings you want *
</VirtualHost>

<VirtualHost 192.168.1.100>
	ServerName some.other.domain.name.com
	* other settings you want *
</VirtualHost>

Eventually, see if you have a c:\windows\system32\drivers\etc\hosts file
(Atleast WinXP has), and add your domains there like this:
192.168.1.100 some.domain.name.com
192.168.1.100 some.other.domain.name.com

Should work.

Best regards,
Martin

> -----Original Message-----
> From: Robert Zagarello [mailto:bzag0@xxxxxxxxx] 
> Sent: 31. mai 2005 16:12
> To: Apache Users
> Subject: Re: [users@httpd] Routing \ Apache Question
> 
> 
> No, this sounds good.  Are you running a DNS server? 
> (I think it is better not to run one in this
> scenario.)  What do you have in your hosts file?  Try putting 
> your FQDNs for your public IP in your hosts file (assuming 
> you aren't running a DNS server).  Even though you may have 
> HostNameLookups turned off, it still may have to translate 
> its own names and may not be doing so because it is using its 
> private LAN address to return messages instead of the public 
> one...  this may not make much sense, but I found I needed it 
> in mine (am running NetBSD on a private LAN no DNS server 
> w/dyndns FQDN but not vhosting yet). 
> I'd be interested if you had a positive result.
> 
> BZAG
> ===========================
> 
> --- Jonathan Visser <jvisser@xxxxxxxxxxxxxx> wrote:
> > I am using name based vhosts.    All of the domains
> > registered with my
> > public static IP provided by my ISP.  I then try to NAT all traffic 
> > from my Public address to the  my private LAN IP address( I.E. 
> > 192.168.1.100).
> > 
> > Are you saying that this box will always need to be outside the 
> > firewall?
> > 
> > Thanks for all of your help!
> > Jonathan
> > 
> > ----- Original Message -----
> > From: "Robert Zagarello" <bzag0@xxxxxxxxx>
> > To: "Apache Users" <users@xxxxxxxxxxxxxxxx>
> > Sent: Tuesday, May 31, 2005 8:44 AM
> > Subject: Re: [users@httpd] Routing \ Apache Question
> > 
> > 
> > >
> > > Are you using name-based or IP-based multiple
> > vhosts?
> > > Also, I've assumed you are using a private LAN
> > instead
> > > of an internet-registered IP one, so correct me if
> > I'm
> > > wrong.  The private LAN will cause DNS name
> > resolution
> > > problems, because your web server will have a
> > private
> > > IP address that doesn't match it's public IP
> > address.
> > > There are ways around this also.  With name-based 
> vhosting, each DNS 
> > > domain has to be registered
> > with
> > > the same IP address (in the private LAN scenario), which would be 
> > > the IP address on the internet
> > (WAN)
> > > side of the router.
> > >
> > > BZAG
> > >
> > > ==============================================
> > > Jonathan wrote:
> > >
> > > It will serve up the default page when it is not
> > in
> > > DMZ mode, but will not serve up the multiple
> > domains
> > > in the virtual hosts settings.
> > >
> > > I have tried to forward ports, NAT ports all
> > according
> > > to the netopia manuals and tech notes.
> > >
> > > I do temporary have it in the DMZ mode and it does work, 
> but would 
> > > like to be able to put it in NAT
> > mode.
> > > Are there others who use NAT and host multiple domains?
> > >
> > > Do I need a different router to work properly? If
> > so
> > > what are any recommendations?
> > >
> > > Thanks,
> > > Jonathan
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > The official User-To-User support forum of the
> > Apache HTTP Server Project.
> > > See <URL:http://httpd.apache.org/userslist.html>
> > for more info.
> > > To unsubscribe, e-mail:
> > users-unsubscribe@xxxxxxxxxxxxxxxx
> > >   "   from the digest:
> > users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > > For additional commands, e-mail:
> > users-help@xxxxxxxxxxxxxxxx
> > > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server 
> > Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail:
> > users-unsubscribe@xxxxxxxxxxxxxxxx
> >    "   from the digest:
> > users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail:
> > users-help@xxxxxxxxxxxxxxxx
> > 
> > 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux