Re: ipmasqadm portfw and apache

2001-08-29 Thread Jason Majors
On Wed, Aug 29, 2001 at 01:39:21PM -0700, Jason Majors scribbled...
> Does anybody have experience with multiple VirtualHost entries? Or know 
> the 
> correct format? 
> I'm doing: 
> NameVirtualHost domainone 
> NameVirtualHost domaintwo 
> NameVirtualHost domainthree 
>  
>  
> ... 
>  
>  
>  
> ... 
>  
>  
>  
> ... 
>  
>  
I got it working. I feel kinda dumb...for those who'd like to know how to do it:
NameVirtualHost 1.2.3.4 # MUST BE AN IP! (my mistake).
 # I had to put the specific one before a generic
...  # www to get the specific to come up.



... 



...




Re: ipmasqadm portfw and apache

2001-08-29 Thread Jason Majors
Jason Majors wrote: 
>I'd like to forward all requests on port 80 thru my firewall, however, I 
>use
>VirtualHosts under apache.
>Is there a way to forward the port with the desired host name?
>Or can I do it based on the hostname desired? (eg forward a request to
>www.foo.com to port 81 and a request to www.bar.com to 82).
>
>Thanks,
>Jason
>
I think I figured it out...it's not the port issue. When I add a second
"NameVirtualHost foo" and "", I get the warning from
apache "[warn] NameVirtualHost tmr.whizzird.net:80 has no VirtualHosts",
so I'd guess that there's something in the order of the httpd.conf. When
this happens the special hosts entry I created goes back to the default
page for the server, but when there's only one VirtualHost, that hosts
entry goes to the VirtualHost.
I get the same warnings on the firewall, but virtual hosting works fine.

Does anybody have experience with multiple VirtualHost entries? Or know the
correct format?
I'm doing:
NameVirtualHost domainone
NameVirtualHost domaintwo
NameVirtualHost domainthree


...



...



...


Thanks,
Jason



Re: ipmasqadm portfw and apache

2001-08-29 Thread Jason Majors
On Wed, Aug 29, 2001 at 11:51:48AM -0700, Tim Moss scribbled...
> Jason Majors wrote: 
> >I'd like to forward all requests on port 80 thru my firewall, however, I 
> >use
> >VirtualHosts under apache.
> >Is there a way to forward the port with the desired host name?
> >Or can I do it based on the hostname desired? (eg forward a request to
> >www.foo.com to port 81 and a request to www.bar.com to 82).
> >
> >Thanks,
> >Jason
> >
> >
> 
> Forwarding the port will not change the actual HTTP request which is  
> what the VirtualHosts depends on. I think it should be pretty  
> transparent (though I've never tried it). Are you having a problem doing  
> this or are you just asking in preparation of setting it up? 
> 
I already did it. When I forwarded to the internal box, all requests were
served by the default html/ directory, not the virtual host matching the
url I typed.



Re: ipmasqadm portfw and apache

2001-08-29 Thread Tim Moss

Jason Majors wrote:

I'd like to forward all requests on port 80 thru my firewall, however, I use
VirtualHosts under apache.
Is there a way to forward the port with the desired host name?
Or can I do it based on the hostname desired? (eg forward a request to
www.foo.com to port 81 and a request to www.bar.com to 82).

Thanks,
Jason




Forwarding the port will not change the actual HTTP request which is 
what the VirtualHosts depends on. I think it should be pretty 
transparent (though I've never tried it). Are you having a problem doing 
this or are you just asking in preparation of setting it up?





ipmasqadm portfw and apache

2001-08-29 Thread Jason Majors
I'd like to forward all requests on port 80 thru my firewall, however, I use
VirtualHosts under apache.
Is there a way to forward the port with the desired host name?
Or can I do it based on the hostname desired? (eg forward a request to
www.foo.com to port 81 and a request to www.bar.com to 82).

Thanks,
Jason