httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madere, Colin" <colin.mad...@ieminc.com>
Subject RE: [users@httpd] IP-based vhosts and domain names problem (solve d)
Date Wed, 29 Jan 2003 00:36:21 GMT
Well, it wasn't Apache at all.  I was being fooled by what was being
returned and didn't change content to be sure the request wasn't already
handed off to JK for processing by Tomcat.

The problem was that Apache and Tomcat had the servername set to a name but
JK was using an IP address.  I expected that to fail and is why I wan't
worried about it, but instead it just passed all requests along to the
"main" tomcat site which was also pointing to static content in the same
location for the "main" Apache site.  It should have been passing it on to
the Tomcat vhost with the same IP as the Apache vhost but that relationship
was lost in transit :)

My apologies for list pollution!

> -----Original Message-----
> From:	Joshua Slive [SMTP:joshua@slive.ca]
> Sent:	Tuesday, January 28, 2003 5:32 PM
> To:	'users@httpd.apache.org'
> Subject:	RE: [users@httpd] IP-based vhosts and domain names problem
> 
> 
> On Tue, 28 Jan 2003, Madere, Colin wrote:
> 
> > Nothing funny and DNS is correct.  SSL and SSI are on and working.
> >
> > Here's a less obscured httpd.conf (SSL setup is for testing and works, I
> > know I should use urandom and such):
> > > > Problem:
> > > >   When using IPs to browse to servers, all works fine.  When using
> names
> > > to
> > > > browse, requests to all domain names serve up content from the
> > > default/first
> > > > site (or vhost #1) on port 80.  With log files set up for each
> different
> > > > vhost, the hit gets recorded in that vhosts log file, but the
> content is
> > > > pulled from the DocumentRoot of the site on port 80 (vhost #1).  As
> I
> > > said
> > > > above, when IPs are used the appropriate content gets served.
> 
> So are you saying you are requesting the sites on port 443 and you are
> getting content returned from the port 80 site?  Or are you saying that
> you are requesting the sites on 80, and you are expecting the request to
> fail because apache shouldn't be listening to 80 on those IPs?
> 
> You might want to check your config for any stray Listen dirctives.
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message